Skip to content

Commit af298c8

Browse files
committed
Add nodejs to amzn2023, revert py27 for debug
1 parent 68a1cc7 commit af298c8

File tree

5 files changed

+13
-49
lines changed

5 files changed

+13
-49
lines changed

amzn2023/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
FROM public.ecr.aws/amazonlinux/amazonlinux:2023
22

3-
# Install required build dependencies
4-
RUN dnf install -y gcc openssl-devel python3-pip util-linux && \
3+
# Install required build dependencies and Node.js for testing
4+
RUN dnf install -y gcc openssl-devel python3-pip util-linux nodejs && \
55
pip3 install setuptools && \
66
dnf clean all
77

amzn2023/Dockerfile-arm64

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
FROM public.ecr.aws/amazonlinux/amazonlinux:2023
22

3-
# Install required build dependencies
4-
RUN dnf install -y gcc openssl-devel python3-pip util-linux && \
3+
# Install required build dependencies and Node.js for testing
4+
RUN dnf install -y gcc openssl-devel python3-pip util-linux nodejs && \
55
pip3 install setuptools && \
66
dnf clean all
77

py27/Dockerfile

Lines changed: 0 additions & 26 deletions
This file was deleted.

py27/Dockerfile-test

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
1-
FROM ubuntu:20.04
1+
FROM ubuntu:22.04
22

33
ENV SHELL=/bin/sh
44

5-
RUN apt update \
6-
&& apt-get install -y curl util-linux \
7-
&& apt-get install -y python2.7 python2.7-dev \
5+
RUN apt-get update && apt-get install -y software-properties-common && add-apt-repository ppa:deadsnakes/ppa && apt-get update
6+
RUN apt-get install -y --no-install-recommends \
7+
ca-certificates \
8+
curl \
9+
python2.7 \
10+
python2.7-dev \
811
&& update-alternatives --install /usr/bin/python python /usr/bin/python2.7 2
912

1013
RUN curl https://bootstrap.pypa.io/pip/2.7/get-pip.py --output get-pip.py \
@@ -13,11 +16,7 @@ RUN curl https://bootstrap.pypa.io/pip/2.7/get-pip.py --output get-pip.py \
1316
&& apt-get clean \
1417
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
1518

16-
COPY build/crypteia-debian /opt/extensions/crypteia
17-
COPY build/libcrypteia-debian.so /opt/lib/libcrypteia.so
18-
COPY package/opt/crypteia /opt/crypteia
19-
20-
WORKDIR /var/task
19+
COPY ./package/opt /opt
2120

2221
ENV CRYPTEIA_BUILD_OS=debian
2322
ENV SKIP_CARGO_TEST=1

py27/setup

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,7 @@
11
#!/bin/sh
22
set -e
33

4-
echo "== [py27/Dockerfile] building... =="
5-
docker build --tag crypteia-debian-py27 --file py27/Dockerfile .
6-
7-
echo "== [py27/Dockerfile] bin/setup =="
8-
docker run \
9-
--rm \
10-
--user root \
11-
--entrypoint "./bin/setup" \
12-
--volume "${PWD}:/var/task" \
13-
crypteia-debian-py27
4+
./bin/setup
145

156
echo "== [py27/Dockerfile-test] building... =="
167
docker build --tag crypteia-debian-py27-test --file py27/Dockerfile-test .

0 commit comments

Comments
 (0)