Skip to content

build-docker.sh does not assume PWD=<repo root>#302

Merged
XECDesign merged 4 commits intoRPi-Distro:masterfrom
macisamuele:maci-remove-run-directory-assumption
Jul 2, 2019
Merged

build-docker.sh does not assume PWD=<repo root>#302
XECDesign merged 4 commits intoRPi-Distro:masterfrom
macisamuele:maci-remove-run-directory-assumption

Conversation

@macisamuele
Copy link
Copy Markdown
Contributor

The build-docker.sh script should not assume that is executed from the repository root especially as the assumption is only used to build the docker-container.

Allowing the script to "auto-determine" its directory allows users to create configurations on their desired directories and then run something like bash ${RPi-Distro/pi-gen/build-docker.sh} -c config.

@macisamuele macisamuele force-pushed the maci-remove-run-directory-assumption branch from 171dacf to 2ddd7c1 Compare July 1, 2019 19:15
@XECDesign
Copy link
Copy Markdown
Member

Thanks

@XECDesign XECDesign merged commit ae4ec64 into RPi-Distro:master Jul 2, 2019
@macisamuele macisamuele deleted the maci-remove-run-directory-assumption branch July 2, 2019 17:56
fuji246 pushed a commit to lomorage/pi-gen that referenced this pull request Sep 17, 2019
* bash variables in build-docker.sh are wrapped by curly brackets

* Ensure presence of config file while running build-docker.sh

* Do not assume that build-docker.sh is run from the repository root directory

* Mount config file in predictable location in docker container
general-wedge pushed a commit to HQapp/hq-os that referenced this pull request Jan 5, 2020
* bash variables in build-docker.sh are wrapped by curly brackets

* Ensure presence of config file while running build-docker.sh

* Do not assume that build-docker.sh is run from the repository root directory

* Mount config file in predictable location in docker container
alexgg pushed a commit to balena-os/pi-gen that referenced this pull request Jul 12, 2021
* bash variables in build-docker.sh are wrapped by curly brackets

* Ensure presence of config file while running build-docker.sh

* Do not assume that build-docker.sh is run from the repository root directory

* Mount config file in predictable location in docker container
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants