Commit dbe5b7e8 authored by Pavel Doležal's avatar Pavel Doležal
Browse files

Add Dockerfile

parent 50400432
image: registry.nic.cz/adam/dns-probe:latest
variables:
IMAGE_TAG: $CI_REGISTRY_IMAGE:latest
stages:
- build_docker
- build_and_test
- deploy
build_docker_image:
stage: build_docker
image: docker:latest
tags:
- dind
before_script:
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
script:
- docker build --no-cache -t $IMAGE_TAG .
- docker push $IMAGE_TAG
only:
changes:
- Dockerfile
build_and_test:
stage: build_and_test
image: $IMAGE_TAG
script:
- mkdir build
- cd build
......@@ -16,6 +33,7 @@ build_and_test:
pages:
stage: deploy
image: $IMAGE_TAG
script:
- mkdir build
- cd build
......
FROM debian:10
MAINTAINER Pavel Doležal (pavel.dolezal@nic.cz)
LABEL version="stable"
LABEL description="Debian 10 with pre-installed DNS Probe"
RUN apt-get update -yqq &&\
apt-get install -yqq gnupg curl ca-certificates lsb-release wget &&\
wget https://apache.bintray.com/arrow/$(lsb_release --id --short | tr 'A-Z' 'a-z')/apache-arrow-archive-keyring-latest-$(lsb_release --codename --short).deb &&\
apt-get install -yqq -V ./apache-arrow-archive-keyring-latest-$(lsb_release --codename --short).deb &&\
echo 'deb http://download.opensuse.org/repositories/home:/CZ-NIC:/dns-probe/Debian_10/ /' | tee /etc/apt/sources.list.d/dns-probe.list &&\
curl -fsSL https://download.opensuse.org/repositories/home:CZ-NIC:/dns-probe/Debian_10/Release.key | gpg --dearmor | tee /etc/apt/trusted.gpg.d/dns-probe.gpg > /dev/null &&\
apt-get update -yqq &&\
apt-get install -yqq --no-install-recommends \
pkg-config \
git \
g++ \
make \
cmake \
procps \
doxygen \
python3 \
python3-pip \
python3-pandas \
python3-sphinx \
libssl-dev \
libboost-all-dev \
libcdns-dev \
libpcap-dev \
libarrow-dev \
libarrow-python-dev \
libparquet-dev \
libcryptopant-dev \
libyaml-cpp-dev \
libprotobuf-dev \
protobuf-compiler \
libfstrm-dev \
dpdk-dev \
dns-probe-af \
dns-probe-dpdk &&\
pip3 install pyarrow==2.0.* &&\
apt-get -qy autoremove &&\
apt-get -y clean
Markdown is supported
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