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)
Tue, Dec 17, 11:46 PM
Unknown Object (File)
Wed, Dec 11, 9:32 PM
Unknown Object (File)
Fri, Dec 6, 5:15 AM
Unknown Object (File)
Mon, Dec 2, 10:50 AM
Unknown Object (File)
Tue, Nov 26, 9:28 PM
Unknown Object (File)
Tue, Nov 26, 4:54 AM
Unknown Object (File)
Mon, Nov 25, 7:02 PM
Unknown Object (File)
Mon, Nov 25, 2:31 PM

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.