Skip to content

Updating cimg-node-awscli to node 18.18.0 #6

@LiorB-D

Description

@LiorB-D

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions