Skip to content
Snippets Groups Projects
Commit 4ede2246 authored by Tomas Krizek's avatar Tomas Krizek
Browse files

Merge branch 'improve-docker' into 'master'

docker: enable building selected version/tags

See merge request !21
parents 92a07d23 688fa468
Branches
1 merge request!21docker: enable building selected version/tags
Pipeline #69002 passed with stage
in 19 seconds
Docker Build
------------
```
$ export SHOTGUN_VERSION=v20200914
$ docker build --no-cache -t registry.nic.cz/knot/shotgun:$SHOTGUN_VERSION --build-arg SHOTGUN_VERSION=$SHOTGUN_VERSION shotgun
$ docker build --no-cache -t registry.nic.cz/knot/shotgun/pellet:$SHOTGUN_VERSION --build-arg SHOTGUN_VERSION=$SHOTGUN_VERSION pellet
$ docker login registry.nic.cz
$ docker push registry.nic.cz/knot/shotgun:$SHOTGUN_VERSION
$ docker push registry.nic.cz/knot/shotgun/pellet:$SHOTGUN_VERSION
```
FROM ubuntu:focal
ARG SHOTGUN_VERSION=v20200914
ENV DEBIAN_FRONTEND=noninteractive
......@@ -12,6 +13,6 @@ RUN \
RUN pip3 install dnspython
RUN pip3 install git+git://github.com/kbandla/dpkt.git@2c6aada35c38c93061ac6d4c47862174ffcc4799
RUN git clone https://gitlab.labs.nic.cz/knot/shotgun.git
RUN git clone -b $SHOTGUN_VERSION --depth=1 https://gitlab.labs.nic.cz/knot/shotgun.git
ENTRYPOINT ["shotgun/pellet.py"]
FROM ubuntu:focal
ARG SHOTGUN_VERSION=v20200914
ENV DEBIAN_FRONTEND=noninteractive
......@@ -30,6 +31,7 @@ RUN \
cd ..
RUN \
git clone https://gitlab.labs.nic.cz/knot/shotgun.git
git clone -b $SHOTGUN_VERSION --depth=1 \
https://gitlab.labs.nic.cz/knot/shotgun.git
ENTRYPOINT ["dnsjit/src/dnsjit", "shotgun/shotgun.lua"]
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment