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
Use case:
I'm building a docker image where I install packages from AWS CodeArtifact repository. Authentication to CodeArtifact is based on the token that expires every X minutes.
Dockerfile:
FROM python:3.9.10-slim
ARG CODEARTIFACT_PIP_URL
COPY python/ ./
RUN apt-get update \
&& apt-get install -y gcc python3-dev libev-dev
RUN python -m pip install --upgrade pip
RUN pip install -r requirements.txt --extra-index-url=${CODEARTIFACT_PIP_URL}
EXPOSE 8080
CMD [ "python", "./run.py" ]
So I must pass codeArtifact url (that contains token) as a buildArg to Dockerfile.
I have a task that generates a url as below:
Running a task returns correct result however issuing 'gradle docker' doesn't pass buildArgs to docker build command. Any idea how to solve this?
I don't want to set it up in configuration block
docker {
}
because it will run on every gradle run.
The text was updated successfully, but these errors were encountered:
Use case:
I'm building a docker image where I install packages from AWS CodeArtifact repository. Authentication to CodeArtifact is based on the token that expires every X minutes.
Dockerfile:
So I must pass codeArtifact url (that contains token) as a buildArg to Dockerfile.
I have a task that generates a url as below:
Running a task returns correct result however issuing 'gradle docker' doesn't pass buildArgs to docker build command. Any idea how to solve this?
I don't want to set it up in configuration block
docker {
}
because it will run on every gradle run.
The text was updated successfully, but these errors were encountered: