Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[scamper]: added scamper dockerfile #1

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ jobs:
platforms: linux/amd64,linux/arm64
- image: "tracebox"
platforms: linux/amd64
- image: "scamper"
platforms: linux/amd64
steps:
- uses: actions/checkout@v2
with:
Expand Down
2 changes: 2 additions & 0 deletions scamper/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*
!scamper/
29 changes: 29 additions & 0 deletions scamper/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
FROM ubuntu:22.04
ENV DEBIAN_FRONTEND=noninteractive

ARG scamper_version=scamper-cvs-20211212d

RUN apt-get update && \
apt-get install --yes --quiet \
build-essential \
ca-certificates \
gcc \
g++ \
git \
wget && \
apt-get clean && \
rm --force --recursive /var/lib/apt/lists/*

# download and extract source code
RUN mkdir -p scamper-src && \
cd scamper-src && \
wget https://www.caida.org/catalog/software/scamper/code/${scamper_version}.tar.gz && \
tar xzf ${scamper_version}.tar.gz && cd ${scamper_version}

# create build dir
WORKDIR /scamper-src/${scamper_version}/

# build scamper
RUN ./configure --enable-debug
RUN make -j16
RUN make install