Skip to content

Commit

Permalink
Merge pull request #25 from lpearson-trek10/updates
Browse files Browse the repository at this point in the history
Update to latest AL v2, highest stable version of python and node, latest SAM and Serverless
  • Loading branch information
lpearson-trek10 authored Aug 3, 2021
2 parents f20e472 + 4cca80e commit 2d45b63
Show file tree
Hide file tree
Showing 3 changed files with 55 additions and 18 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,7 @@
- npm
- Serverless
- Python
- AWS CLI
- AWS CLI v1 as `awsv1` and v2 as `aws`
- jq
- libxml
- Org Formation CLI
33 changes: 26 additions & 7 deletions default/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,24 +1,43 @@
FROM amazonlinux:2017.09-with-sources
LABEL maintainer="Jared Short <jshort@trek10.com>"
FROM public.ecr.aws/amazonlinux/amazonlinux:2.0.20201111.0
LABEL maintainer="Lucas Pearson <lpearson@trek10.com>"

RUN yum update -y
# add nodejs repo
RUN curl --silent --location https://rpm.nodesource.com/setup_8.x | bash -
RUN curl --silent --location https://rpm.nodesource.com/setup_14.x | bash -
RUN yum -y install \
zip \
unzip \
git \
jq \
nodejs \
openssl-devel \
python27-devel.x86_64 \
python36-devel \
python3 \
python3-devel \
gcc \
libxml2-devel \
libxslt-devel \
zlib-devel

# install pip + aws cli
# install pip + aws cli + libxml
RUN curl -O https://bootstrap.pypa.io/get-pip.py && \
python3 get-pip.py
RUN pip install awscli --upgrade
RUN pip install aws-sam-cli
RUN pip install lxml

# Move aws v1 to its own command awsv1
RUN mv /usr/local/bin/aws /usr/local/bin/awsv1

# Latest version of aws cli
RUN curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" && \
unzip awscliv2.zip && \
./aws/install && \
rm -rf awscliv2.zip ./aws

# update npm to latest version
RUN npm install -g npm

# Install sam cli
RUN pip install aws-sam-cli

# install org formation
RUN npm install -g --production [email protected]
36 changes: 26 additions & 10 deletions serverless/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,27 +1,43 @@
FROM amazonlinux:with-sources
LABEL maintainer="Jared Short <jshort@trek10.com>"
FROM public.ecr.aws/amazonlinux/amazonlinux:2.0.20201111.0
LABEL maintainer="Lucas Pearson <lpearson@trek10.com>"

RUN yum update -y
# add nodejs repo
RUN curl --silent --location https://rpm.nodesource.com/setup_8.x | bash -
RUN curl --silent --location https://rpm.nodesource.com/setup_14.x | bash -
RUN yum -y install \
zip \
unzip \
git \
jq \
nodejs \
openssl-devel \
python-devel.x86_64 \
python27-devel.x86_64 \
python3 \
python3-devel \
gcc \
libxml2-devel \
libxslt-devel \
zlib-devel

# install pip + aws cli
# install pip + aws cli + libxml
RUN curl -O https://bootstrap.pypa.io/get-pip.py && \
python get-pip.py
python3 get-pip.py
RUN pip install awscli --upgrade
RUN pip install lxml

# install python 3
RUN amazon-linux-extras install python3
# Move aws v1 to its own command awsv1
RUN mv /usr/local/bin/aws /usr/local/bin/awsv1

# Latest version of aws cli
RUN curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" && \
unzip awscliv2.zip && \
./aws/install && \
rm -rf awscliv2.zip ./aws

# update npm to latest version
RUN npm install -g npm

# install serverless framework
RUN npm install -g [email protected]
RUN npm install -g [email protected]

# install org formation
RUN npm install -g --production [email protected]

0 comments on commit 2d45b63

Please sign in to comment.