Skip to content

Commit

Permalink
Add master docker build
Browse files Browse the repository at this point in the history
  • Loading branch information
pulsejet committed May 6, 2024
1 parent b273b0d commit 758f6ee
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 6 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,10 @@ jobs:
uses: named-data/actions/.github/workflows/docker-image.yml@v1
with:
name: http-ca-server
target: http-ca-server

testbed-master:
uses: named-data/actions/.github/workflows/docker-image.yml@v1
with:
name: testbed-master
target: testbed-master
29 changes: 23 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,15 +1,32 @@
# syntax=docker/dockerfile:1

FROM python:3-alpine AS testbed-master

RUN <<EOF
apk add docker-cli docker-cli-compose
pip install --no-cache-dir --disable-pip-version-check \
PyYAML \
python-ndn==0.4.2 \
Jinja2==3.1.4
EOF

VOLUME /repo
WORKDIR /repo


ARG NDN_CXX_VERSION=latest
FROM ghcr.io/named-data/ndn-cxx-runtime:${NDN_CXX_VERSION} AS http-ca-server

RUN apt-get install -Uy --no-install-recommends \
RUN <<EOF
apt-get install -Uy --no-install-recommends \
python3 \
python3-pip \
&& apt-get distclean \
&& pip install --no-cache-dir --disable-pip-version-check --break-system-packages \
pyyaml \
python-ndn
python3-pip
apt-get distclean

pip install --no-cache-dir --disable-pip-version-check --break-system-packages \
PyYAML \
python-ndn==0.4.2
EOF

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

Expand Down

0 comments on commit 758f6ee

Please sign in to comment.