Page MenuHomePhabricator

[Services] Make build_service.sh PWD independent
ClosedPublic

Authored by jon on Jul 29 2022, 3:00 PM.
Tags
None
Referenced Files
F2131423: D4685.id15116.diff
Thu, Jun 27, 6:29 PM
Unknown Object (File)
Wed, Jun 26, 6:39 AM
Unknown Object (File)
Tue, Jun 25, 1:58 AM
Unknown Object (File)
Sun, Jun 23, 4:42 PM
Unknown Object (File)
Sun, Jun 23, 4:42 PM
Unknown Object (File)
Sun, Jun 23, 4:42 PM
Unknown Object (File)
Sun, Jun 23, 4:41 PM
Unknown Object (File)
Sun, Jun 23, 4:29 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.