Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged

Conversation

macisamuele
Copy link
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
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
UmeshMohan-Dozee pushed a commit to DozeeRnD/pi-gen that referenced this pull request Sep 18, 2024
* 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