Skip to content

Commit 805922e

Browse files
committed
Fix py27 in Test workflow
1 parent af33155 commit 805922e

File tree

3 files changed

+38
-2
lines changed

3 files changed

+38
-2
lines changed

py27/Dockerfile

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
FROM ubuntu:20.04
2+
3+
ENV DEBIAN_FRONTEND=noninteractive
4+
5+
RUN apt update && apt-get install -y \
6+
curl \
7+
gcc \
8+
libssl-dev \
9+
python3-pip \
10+
pkg-config \
11+
&& rm -rf /var/lib/apt/lists/*
12+
13+
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
14+
ENV PATH="/root/.cargo/bin:${PATH}"
15+
16+
RUN /root/.cargo/bin/rustup update \
17+
&& /root/.cargo/bin/rustup target add aarch64-unknown-linux-gnu
18+
19+
RUN rustup default stable
20+
21+
WORKDIR /var/task
22+
23+
ENV CRYPTEIA_BUILD_OS=debian
24+
ENV CRYPTEIA_BUILD_TARGET=x86_64-unknown-linux-gnu
25+

py27/Dockerfile-test

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@ RUN curl https://bootstrap.pypa.io/pip/2.7/get-pip.py --output get-pip.py \
1313
&& apt-get clean \
1414
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
1515

16-
COPY ./package/opt /opt
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
1719

1820
ENV CRYPTEIA_BUILD_OS=debian
1921
ENV SKIP_CARGO_TEST=1

py27/setup

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

4-
./bin/setup
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
514

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

0 commit comments

Comments
 (0)