You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Bug: Docker image build kwargs is not working #706
The PIP_EXTRA_INDEX_URL fails to register in the docker image build process:
E docker.errors.BuildError: The command '/bin/sh -c pip3 install --no-cache-dir -r requirements.txt --extra-index-url ${PIP_EXTRA_INDEX_URL}' returned a non-zero code: 2
deftest_something():
image=DockerImage(path="./", tag="new:test")
image.build(buildargs={"PIP_EXTRA_INDEX_URL": PIP_EXTRA_INDEX_URL})
withAWSLambdaContainer(image=image, port=8080) asfunc:
# Do Something with the containerimage.remove()
Activity
Tranquility2 commentedon Oct 1, 2024
As can be seen
kwargsis not passed/used correctly...This is ofc my bad, sorry.
Will create a fix asap.
maybe also take the time to add something like #614
Tranquility2 commentedon Oct 1, 2024
Workaround
Just use the lower level methods
black-snow commentedon Oct 1, 2024
I feel like this was my original issue with build args exactly :D
fix(core): Add kwargs to image build (testcontainers#708)