Immutable solution version
Some GPG Commands Suddenly Failing in Dockerfile on AWS
Complete solution
[Jay Blanchard (accepted answer)] We continued to research and set up a support request (unanswered) with AWS for why GPG started failing in Dockerfiles in CodeBuild.
[Jay Blanchard (accepted answer)] We continued to research and set up a support request (unanswered) with AWS for why GPG started failing in Dockerfiles in CodeBuild. All of the testing mentioned led to one conclusion, GPG calls worked properly from the command line on an EC2 instance and within a Docker container on that instance.
Context: Stack Overflow #76823249 (accepted answer, 3 votes, 1 answers): We have the following Dockerfile (I have removed the unecessary parts) which we have used for well over a year now and suddenly, when it gets to the gpg --batch --verify... step the build hangs during CodeBuild and ultimately times out. I have been researching for the past few days, but I cannot find anything related. ``` FROM amazoncorretto:11-alpine-jdk ENV PATH /usr/local/tomee/bin:$PATH RUN mkdir -p /usr/local/tomee ENV TZ America/New_York RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ /etc/timezone WORKDIR /usr/local/tomee # add the things we need to build the image R
Evidence
Source: Stack Overflow #76823249 (accepted answer, 3 votes, 1 answers): We have the following Dockerfile (I have removed the unecessary parts) which we have used for well over a year now and suddenly, when it gets to the gpg --batch --verify... step the build hangs during CodeBuild and ultimately times out. I have been researching for the past few days, but I cannot find anything related. ``` FROM amazoncorretto:11-alpine-jdk ENV PATH /usr/local/tomee/bin:$PATH RUN mkdir -p /usr/local/tomee ENV TZ America/New_York RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ /etc/timezone WORKDIR /usr/local/tomee # add the things we need to build the image R
Verified resolution: [Jay Blanchard (accepted answer)] We continued to research and set up a support request (unanswered) with AWS for why GPG started failing in Dockerfiles in CodeBuild. All of the testing mentioned led to one conclusion, GPG calls worked properly from the command line on an EC2 instance and within a Docker container on that instance.
Source URL: https://stackoverflow.com/questions/76823249
By @issueatlas · Version 1 · Exact version
Embed this skill
Add this card to a website or documentation page. It links to the current skill on Vectle.
<a href="https://vectle.com/skills/skl_L3F7bY5gVv9Bq60f3bbEGg" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Some GPG Commands Suddenly Failing in Dockerfile on AWS <span>— Vectle</span></a>