mirror of
https://gitlab.gnome.org/GNOME/libxml2
synced 2025-03-28 21:33:13 +00:00
Move Dockerfile to .gitlab-ci directory
This commit is contained in:
parent
02e1237196
commit
efc0e85c02
@ -1,20 +1,4 @@
|
||||
.test:
|
||||
# The image was generated with the following Dockerfile. It is also used
|
||||
# for libxslt, that's why we need git and libgcrypt-dev.
|
||||
#
|
||||
# FROM ubuntu:20.04
|
||||
# ENV DEBIAN_FRONTEND=noninteractive
|
||||
# RUN apt-get update && \
|
||||
# apt-get upgrade -y && \
|
||||
# apt-get install -y --no-install-recommends \
|
||||
# curl git ca-certificates \
|
||||
# autoconf automake libtool pkg-config \
|
||||
# make gcc clang llvm \
|
||||
# zlib1g-dev liblzma-dev libgcrypt-dev \
|
||||
# python-dev python3-dev \
|
||||
# cmake
|
||||
# WORKDIR /tests
|
||||
# RUN curl https://www.w3.org/XML/Test/xmlts20080827.tar.gz |tar xz
|
||||
image: registry.gitlab.gnome.org/gnome/libxml2
|
||||
variables:
|
||||
BASE_CONFIG: "--with-ftp --with-legacy --with-xptr-locs"
|
||||
|
16
.gitlab-ci/Dockerfile
Normal file
16
.gitlab-ci/Dockerfile
Normal file
@ -0,0 +1,16 @@
|
||||
# The image is also used for libxslt, that's why we need git and
|
||||
# libgcrypt-dev.
|
||||
|
||||
FROM ubuntu:22.04
|
||||
ENV DEBIAN_FRONTEND=noninteractive
|
||||
RUN apt-get update && \
|
||||
apt-get upgrade -y && \
|
||||
apt-get install -y --no-install-recommends \
|
||||
curl git ca-certificates \
|
||||
autoconf automake libtool pkg-config \
|
||||
make gcc clang llvm \
|
||||
zlib1g-dev liblzma-dev libgcrypt-dev \
|
||||
python2-dev python3-dev \
|
||||
cmake
|
||||
WORKDIR /tests
|
||||
RUN curl https://www.w3.org/XML/Test/xmlts20080827.tar.gz |tar xz
|
@ -56,25 +56,10 @@ xml@gnome.org.
|
||||
## Updating the CI Docker image
|
||||
|
||||
Note that the CI image is used for libxslt as well. Run the following
|
||||
commands with the Dockerfile passed as heredoc:
|
||||
commands with the Dockerfile in the .gitlab-ci directory:
|
||||
|
||||
docker login registry.gitlab.gnome.org
|
||||
|
||||
docker build -t registry.gitlab.gnome.org/gnome/libxml2 - <<'EOF'
|
||||
FROM ubuntu:22.04
|
||||
ENV DEBIAN_FRONTEND=noninteractive
|
||||
RUN apt-get update && \
|
||||
apt-get upgrade -y && \
|
||||
apt-get install -y --no-install-recommends \
|
||||
curl git ca-certificates \
|
||||
autoconf automake libtool pkg-config \
|
||||
make gcc clang llvm \
|
||||
zlib1g-dev liblzma-dev libgcrypt-dev \
|
||||
python2-dev python3-dev \
|
||||
cmake
|
||||
WORKDIR /tests
|
||||
RUN curl https://www.w3.org/XML/Test/xmlts20080827.tar.gz |tar xz
|
||||
EOF
|
||||
|
||||
docker build -t registry.gitlab.gnome.org/gnome/libxml2 - \
|
||||
< .gitlab-ci/Dockerfile
|
||||
docker push registry.gitlab.gnome.org/gnome/libxml2
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user