Add support for Docker. New targets: docker,dockerbuild,dockerrun,dockerpoc and dockerclean.

Add the poc target as well.
This commit is contained in:
Samuel Aubertin
2022-04-12 11:21:57 +02:00
parent 141173d252
commit 781faf53e5
4 changed files with 80 additions and 84 deletions

13
Dockerfile Normal file
View File

@@ -0,0 +1,13 @@
FROM alpine
RUN apk update
# Copy everything, except executables listed in .dockerignore
COPY . /octopus
WORKDIR /octopus
# Install runtime dependencies
RUN apk add --no-cache make git openssh-client-default util-linux-misc util-linux-dev
# Install build dependencies, compile and uninstall dependencies
RUN apk add --no-cache --virtual build-dependencies gcc clang musl-dev lld coreutils \
&& make -j$(nproc) build \
&& apk del build-dependencies
# Run all experiment per default
CMD make all