I’m using docker in a step of buldkite scipt
dockerfile of docker image
FROM node:16.18.1
RUN apt-get update && apt-get install zip unzip -y
# aws
RUN curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" && unzip awscliv2.zip
RUN ./aws/install && aws --version
# google zx
RUN yarn global add zx
CMD [ "node" ]
Then I publish this image and use it in buildkite scipt
steps:
# unit testing (all branches)
- label: ":hammer: Build app and run tests"
command:
- "npm install"
plugins:
- docker#v3.3.0:
image: "predictivehireadmin/node-awscli:16.18.1"
environment:
- "NODE_OPTIONS=--max-old-space-size=4096"
volumes:
- "$HOME/.aws:/root/.aws:ro"
agents:
queue: "new-infra-medium-instance"
- wait
The buildkite agent hanging there forever
Note:
- It was working fine with node 14.17.0
- The docker image with node 16.18.1 work fine in other project
Anyone got same issue and have any solution?