Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updating cimg-node-awscli to node 18.18.0 #6

Open
LiorB-D opened this issue Sep 26, 2023 · 0 comments
Open

Updating cimg-node-awscli to node 18.18.0 #6

LiorB-D opened this issue Sep 26, 2023 · 0 comments

Comments

@LiorB-D
Copy link
Contributor

LiorB-D commented Sep 26, 2023

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 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant