-
Notifications
You must be signed in to change notification settings - Fork 551
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
Multiple build-args not resulting in correct docker build syntax #380
Comments
As explained in the README, build-args: |
"FIRST_ARG=First"
"SECOND_ARG=Second" |
MrOrz
added a commit
to cofacts/rumors-line-bot
that referenced
this issue
Jun 30, 2021
lapplislazuli
added a commit
to Tritlo/PropR
that referenced
this issue
Jul 21, 2021
Changed Build-Args according to docker/build-push-action#380
puria
added a commit
to dyne/fabchain
that referenced
this issue
Jan 5, 2022
puria
added a commit
to dyne/fabchain
that referenced
this issue
Jan 5, 2022
Parse project conf to pass to build args according to docker/build-push-action#380 (comment) and https://github.community/t/set-output-truncates-multiline-strings/16852/3
Merged
bitofhope
added a commit
to modeemi/website
that referenced
this issue
Jun 26, 2022
LukeWeidenwalker
added a commit
to Open-EO/openeo-processes-python
that referenced
this issue
Jul 1, 2022
* add pyproject.toml * update .gitignore to full list from github/gitignore * add poetry.lock to .gitignore * add odc-algo dependency * add github actions workflow * minor cleanups to trigger workflow * actually there is no debian GH runner :( * attempt at installing gdal in ci * remove extra python versions for now * remove another cheeky sudo * add sudo back in, seems necessary * allow failrue for pytest to check rest of pipeline * add name to test * add devcontainer * add python3-venv to devcontainer * Correctly install the openeo_package * fix venv location * tests now work in devcontainer * update tests with matrix strategy * add mypy * add mypy config * add poetry.lock to check how much it speeds up build * add gdal python dependency * add older python versions for nox to docker image * get rid of unnecessary stage * add workflow for building devcontainer * name and add workflow_dispatch trigger * update image name to work on forks * fix image name templating * fix typo * minor edit to test workflow trigger * change devcontainer name * merge pipelines * add the latest tag * fix using output of non-existant job * fix docker tag lowercasing * fix syntax error * specify that we want to use ghcr.io cache! * fix ghcr.io/ reference for tests job too * try different cache-from config * edit cache-to * add login step to allow caching * pull image if missing * remove writing to cache in first step again * explicitly pull image before * also build with cache in tests * output to local docker to be available to run * mount GITHUB_WORKSPACE into devcontainer * pass NOXSESSION into container too! * Update README to new install * fix user permissions issues * add shebang to bashscript * minor formatting * try passing user id etc as build arg * fix curly brackets * ls statement for debugging permissions issue * fix wrong syntax on COPY layer and get rid of 3.5 in image * add a few debugging statements * fix bracket type .. * provide build args as strings (see docker/build-push-action#380 (comment)) * try other type of bracket * try with manually set env variables * provide as strings * use = * uff, need to do that in both places ! * remove debugging echo statements again * add UID things to readme. * Update readme with local docker build * update README with additional instructions * update devcontainer.json with intial settings * Skip broken tests * get_time_dimension_from_data: raise exception instead of returning None * Ignore typing failures to get CI towards green * add missing import for pyyaml * update dependencies for pyyaml to resolve * fix mypy failures * update image build workflow to build the whole devcontainer * change .venv location to in-project * add $HOME/.local to path to get rid of pip warnings * add another folder to path * try username instead * syntax fix * set PATH after changing user * mount files to correct dir * add missing slash * Skip failing test * get rid of push step and use gha cache * add load back in * get rid of postCreateCommand * Update readme to reflect latest changes * change order in readme. * change user to ubuntu * remove remote user field, I misunderstood what this does * add optional dependencies with extras * Revert "add optional dependencies with extras" This reverts commit b305423.
Closed
sfuhrm
added a commit
to sfuhrm/linux-python-docker
that referenced
this issue
Apr 21, 2023
For me lines in double quotes didn't work, but error was shown
Command without double quotes works
Remove quote was suggested by https://chatgpt.com/share/daf20a04-3975-44fe-8fac-4be89a2c5ece |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Troubleshooting
Before sumbitting a bug report please read the Troubleshooting doc.
Behaviour
Steps to reproduce this issue
Using the following Dockerfile and Github Action:
Dockerfile
Github Action
Expected behaviour
The correct docker syntax is to have a separate
--build-arg
for each argument.which gives me the following output:
Source from docker documentation
Actual behaviour
When the action is run, the resulting docker build command is:
With the echos in the provided Dockerfile, we get the steps:
Syntax errors are thrown if you try to include the
build-arg
key more than onceor if you pass in a list
Configuration
Logs
Relevant log snippets included above.
The text was updated successfully, but these errors were encountered: