Skip to content

Commit 758f6ee

Browse files
committed
Add master docker build
1 parent b273b0d commit 758f6ee

File tree

2 files changed

+30
-6
lines changed

2 files changed

+30
-6
lines changed

.github/workflows/docker.yml

+7
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,10 @@ jobs:
1414
uses: named-data/actions/.github/workflows/docker-image.yml@v1
1515
with:
1616
name: http-ca-server
17+
target: http-ca-server
18+
19+
testbed-master:
20+
uses: named-data/actions/.github/workflows/docker-image.yml@v1
21+
with:
22+
name: testbed-master
23+
target: testbed-master

Dockerfile

+23-6
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,32 @@
11
# syntax=docker/dockerfile:1
22

3+
FROM python:3-alpine AS testbed-master
4+
5+
RUN <<EOF
6+
apk add docker-cli docker-cli-compose
7+
pip install --no-cache-dir --disable-pip-version-check \
8+
PyYAML \
9+
python-ndn==0.4.2 \
10+
Jinja2==3.1.4
11+
EOF
12+
13+
VOLUME /repo
14+
WORKDIR /repo
15+
16+
317
ARG NDN_CXX_VERSION=latest
418
FROM ghcr.io/named-data/ndn-cxx-runtime:${NDN_CXX_VERSION} AS http-ca-server
519

6-
RUN apt-get install -Uy --no-install-recommends \
20+
RUN <<EOF
21+
apt-get install -Uy --no-install-recommends \
722
python3 \
8-
python3-pip \
9-
&& apt-get distclean \
10-
&& pip install --no-cache-dir --disable-pip-version-check --break-system-packages \
11-
pyyaml \
12-
python-ndn
23+
python3-pip
24+
apt-get distclean
25+
26+
pip install --no-cache-dir --disable-pip-version-check --break-system-packages \
27+
PyYAML \
28+
python-ndn==0.4.2
29+
EOF
1330

1431
COPY http-ca-server.py /app/http-ca-server.py
1532

0 commit comments

Comments
 (0)