enkidevs / enkidevs/dockerfiles
Updating cimg-node-awscli to node 18.18.0
- Dominant language
- Dockerfile
- Stars
- 3
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Description
There were a couple blockers to creating a node 18.18.0 image.
1) Our Ubuntu image doesn't seem to support "python-dev" anymore, we need to use "python3-dev"
2) There are some [known issues with the elasticbean CLI](https://github.com/CircleCI-Public/aws-elastic-beanstalk-orb/issues/31) that require preinstalling specific versions of pyyaml, and setuptools.
Old Dockerfile:
```
ARG NODE_VERSION=latest
FROM cimg/node:$NODE_VERSION
RUN sudo apt-get update && \
sudo apt-get install -y python3 python3-pip python-dev && \
sudo pip3 install awscli && \
sudo pip3 install awsebcli --upgrade && \
sudo apt-get clean
ENV AWS_ACCESS_KEY_ID=dummy
ENV AWS_SECRET_ACCESS_KEY=dummy
ENV AWS_REGION=dummy
```
New Dockerfile:
```
ARG NODE_VERSION=latest
FROM cimg/node:$NODE_VERSION
RUN sudo apt-get update
RUN sudo apt-get install -y python3 python3-pip python3-dev
RUN sudo pip3 install awscli
RUN sudo pip install "pyyaml<5.4"
RUN sudo pip install --upgrade setuptools
RUN sudo pip3 install awsebcli --upgrade
ENV AWS_ACCESS_KEY_ID=dummy
ENV AWS_SECRET_ACCESS_KEY=dummy
ENV AWS_REGION=dummy
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.