Commit 1672a91e authored by Ondřej Surý's avatar Ondřej Surý

Merge branch 'gitlab-registry' into 'master'

Utilize GitLab registry to create local docker (cached) images for building Knot DNS

See merge request !778
parents ecc81f16 cbf2f80a
variables:
DEBIAN_FRONTEND: noninteractive
LC_ALL: C.UTF-8
LC_ALL: en_DK.UTF-8
GIT_STRATEGY: fetch
stages:
- image
- build
- test
- documentation
- deploy
docker:knot-dns:debian:
stage: image
allow_failure: true
before_script:
- docker info
script:
- docker login -u gitlab-ci-token -p $CI_BUILD_TOKEN registry.labs.nic.cz
- docker build -t "knot-dns/debian:latest" "scripts/docker/debian:latest"
- docker tag "knot-dns/debian:latest" "registry.labs.nic.cz/knot/knot-dns/debian:latest"
- docker push "registry.labs.nic.cz/knot/knot-dns/debian:latest"
tags:
- shell
- linux
docker:knot-dns:ubuntu:
stage: image
allow_failure: true
before_script:
- docker info
script:
- docker login -u gitlab-ci-token -p $CI_BUILD_TOKEN registry.labs.nic.cz
- docker build -t "knot-dns/ubuntu:latest" "scripts/docker/ubuntu:latest"
- docker tag "knot-dns/ubuntu:latest" "registry.labs.nic.cz/knot/knot-dns/ubuntu:latest"
- docker push "registry.labs.nic.cz/knot/knot-dns/ubuntu:latest"
tags:
- shell
- linux
docker:knot-dns:centos:
stage: image
allow_failure: true
before_script:
- docker info
script:
- docker login -u gitlab-ci-token -p $CI_BUILD_TOKEN registry.labs.nic.cz
- docker build -t "knot-dns/centos:latest" "scripts/docker/centos:latest"
- docker tag "knot-dns/centos:latest" "registry.labs.nic.cz/knot/knot-dns/centos:latest"
- docker push "registry.labs.nic.cz/knot/knot-dns/centos:latest"
tags:
- shell
- linux
docker:knot-dns:fedora:
stage: image
allow_failure: true
before_script:
- docker info
script:
- docker login -u gitlab-ci-token -p $CI_BUILD_TOKEN registry.labs.nic.cz
- docker build -t "knot-dns/fedora:latest" "scripts/docker/fedora:latest"
- docker tag "knot-dns/fedora:latest" "registry.labs.nic.cz/knot/knot-dns/fedora:latest"
- docker push "registry.labs.nic.cz/knot/knot-dns/fedora:latest"
tags:
- shell
- linux
.freebsd_i386: &freebsd_i386
tags:
- freebsd
......@@ -27,60 +84,29 @@ stages:
- triggers
- tags
.dnf_build_depends: &dnf_build_depends
before_script:
- dnf -y upgrade
- dnf -y install 'dnf-command(builddep)' -y
- dnf -y install curl
- curl -L http://pkgs.fedoraproject.org/cgit/rpms/knot.git/plain/knot.spec -o knot.spec
- dnf -y builddep knot.spec
- dnf -y install autoconf automake libtool pkgconfig
.yum_build_depends: &yum_build_depends
before_script:
- yum -y upgrade
- yum -y install epel-release
- yum -y install curl
- curl -L http://pkgs.fedoraproject.org/cgit/rpms/knot.git/plain/knot.spec -o knot.spec
- yum-builddep knot.spec -y
- yum -y install autoconf automake libtool pkgconfig
.fedora_latest: &fedora_latest
<<: *dnf_build_depends
image: fedora:latest
image: "registry.labs.nic.cz/knot/knot-dns/fedora:latest"
tags:
- docker
- linux
- amd64
.centos_latest: &centos_latest
<<: *yum_build_depends
image: centos:latest
image: "registry.labs.nic.cz/knot/knot-dns/centos:latest"
tags:
- docker
- linux
- amd64
.deb_build_depends: &deb_build_depends
before_script:
- sed -i 's/deb\.debian\.org/ftp.cz.debian.org/g' /etc/apt/sources.list
- apt-get -y update
- apt-get -y dist-upgrade
- apt-get -y install build-essential
- apt-get -y install ghostscript python-sphinx texinfo texlive texlive-font-utils texlive-generic-extra texlive-latex-extra
- apt-get -y install autoconf automake libtool autotools-dev bash-completion bison flex libedit-dev libfstrm-dev libgnutls28-dev libidn2-0-dev liblmdb-dev libprotobuf-c-dev libsystemd-dev libsystemd-dev liburcu-dev pkg-config protobuf-c-compiler
.debian_stable: &debian_stable
<<: *deb_build_depends
image: debian:stable-slim
image: "registry.labs.nic.cz/knot/knot-dns/debian:latest"
tags:
- docker
- linux
- amd64
.ubuntu_latest: &ubuntu_latest
<<: *deb_build_depends
image: ubuntu:latest
image: "registry.labs.nic.cz/knot/knot-dns/ubuntu:latest"
tags:
- docker
- linux
......
FROM centos:latest
MAINTAINER Knot DNS <knot-dns@labs.nic.cz>
ENV DEBIAN_FRONTEND noninteractive
ENV LC_ALL=C.UTF-8
RUN yum -y upgrade
RUN yum -y install epel-release
RUN yum -y install \
'autoconf' \
'automake' \
'libtool' \
'lmdb-devel' \
'pkgconfig' \
'pkgconfig(gnutls)' \
'pkgconfig(jansson)' \
'pkgconfig(libcap-ng)' \
'pkgconfig(libedit)' \
'pkgconfig(libfstrm)' \
'pkgconfig(libidn2)' \
'pkgconfig(libprotobuf-c)' \
'pkgconfig(libsystemd)' \
'pkgconfig(liburcu)' \
'pkgconfig(nettle)' \
'python-sphinx' \
'systemd'
FROM debian:stable-slim
MAINTAINER Knot DNS <knot-dns@labs.nic.cz>
ENV DEBIAN_FRONTEND noninteractive
ENV LC_ALL=C.UTF-8
RUN sed -i 's/deb.debian.org/ftp.cz.debian.org/' /etc/apt/sources.list
RUN apt-get -y update
RUN apt-get -y dist-upgrade
RUN apt-get -y install \
apt-utils \
autoconf \
automake \
autotools-dev \
bash-completion \
build-essential \
curl \
ghostscript \
git \
libedit-dev \
libfstrm-dev \
libgnutls28-dev \
libidn11-dev \
liblmdb-dev \
libprotobuf-c-dev \
libsystemd-dev \
libtool \
liburcu-dev \
locales-all \
pkg-config \
protobuf-c-compiler \
python-sphinx \
texinfo texlive \
texlive-font-utils \
texlive-generic-extra \
texlive-latex-extra \
unzip
FROM fedora:latest
MAINTAINER Knot DNS <knot-dns@labs.nic.cz>
ENV DEBIAN_FRONTEND noninteractive
ENV LC_ALL=C.UTF-8
RUN dnf -y upgrade
RUN dnf -y install \
'autoconf' \
'automake' \
'libtool' \
'lmdb-devel' \
'pkgconfig' \
'pkgconfig(gnutls)' \
'pkgconfig(jansson)' \
'pkgconfig(libcap-ng)' \
'pkgconfig(libedit)' \
'pkgconfig(libfstrm)' \
'pkgconfig(libidn2)' \
'pkgconfig(libprotobuf-c)' \
'pkgconfig(libsystemd)' \
'pkgconfig(liburcu)' \
'pkgconfig(nettle)' \
'python-sphinx'
FROM ubuntu:latest
MAINTAINER Knot DNS <knot-dns@labs.nic.cz>
ENV DEBIAN_FRONTEND noninteractive
ENV LC_ALL=en_DK.UTF-8
RUN apt-get -y update
RUN apt-get -y dist-upgrade
RUN apt-get -y install \
autoconf \
automake \
autotools-dev \
bash-completion \
build-essential \
curl \
ghostscript \
git \
language-pack-en \
libedit-dev \
libgnutls28-dev \
libidn11-dev \
liblmdb-dev \
libsystemd-dev \
libtool \
liburcu-dev \
pkg-config \
python-sphinx \
texinfo \
texlive \
texlive-font-utils \
texlive-generic-extra \
texlive-latex-extra \
unzip
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