Page MenuHomePhabricator

[Services] Make build_service.sh PWD independent
ClosedPublic

Authored by jon on Jul 29 2022, 3:00 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Nov 23, 11:26 PM
Unknown Object (File)
Sun, Oct 27, 6:36 AM
Unknown Object (File)
Sun, Oct 27, 6:36 AM
Unknown Object (File)
Sun, Oct 27, 6:36 AM
Unknown Object (File)
Sun, Oct 27, 6:35 AM
Unknown Object (File)
Sun, Oct 27, 6:30 AM
Unknown Object (File)
Oct 12 2024, 11:03 PM
Unknown Object (File)
Oct 10 2024, 6:29 AM

Details

Summary

This allows for the script to be invoked from another directory
Nice quality of docker scripts to avoid having to issue another WORKDIR.

Also should allow for dev workflow to call script from anywhere (including root)

Depends on D4684

Test Plan

Follow test plan from blob or backup diff in this stack

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Just a basic review using ShellCheck. Will get it added to the CI soon, sorry for the delay!

services/lib/docker/build_service.sh
11–13 ↗(On Diff #15116)
24–25 ↗(On Diff #15116)
This revision now requires changes to proceed.Jul 30 2022, 8:53 AM
jon added inline comments.
services/lib/docker/build_service.sh
11–13 ↗(On Diff #15116)

I remove all of this in https://phab.comm.dev/D4671

24–25 ↗(On Diff #15116)

Fair enough

jon marked 2 inline comments as done.

Double quote SCRIPT_DIR

Look ok to me.

services/lib/docker/build_service.sh
22 ↗(On Diff #15152)

Not sure we need this comment.

jon added inline comments.
services/lib/docker/build_service.sh
22 ↗(On Diff #15152)

The command is very... unusual. So I would like to keep the comment. Eventually we should be able to get rid of calling the other scripts altogether.

This revision is now accepted and ready to land.Aug 3 2022, 2:39 AM
This revision was automatically updated to reflect the committed changes.
jon marked an inline comment as done.