Commit b803e490 authored by jdgleaver's avatar jdgleaver
Browse files

Add xenial-gcc9 build container

parent 7af93399
Pipeline #8634 failed with stage
in 8 minutes and 51 seconds
......@@ -11,6 +11,8 @@ docker-build-master:
- docker push "$CI_REGISTRY_IMAGE"
- docker build --pull -t "$CI_REGISTRY_IMAGE:dosbox-core" --file Dockerfile.dosbox-core .
- docker push "$CI_REGISTRY_IMAGE:dosbox-core"
- docker build --pull -t "$CI_REGISTRY_IMAGE:xenial-gcc9" --file Dockerfile.xenial-gcc9 .
- docker push "$CI_REGISTRY_IMAGE:xenial-gcc9"
only:
- master
......@@ -27,5 +29,7 @@ docker-build:
- docker push "$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG"
- docker build --pull -t "$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG-dosbox-core" --file Dockerfile.dosbox-core .
- docker push "$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG-dosbox-core"
- docker build --pull -t "$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG-xenial-gcc9" --file Dockerfile.xenial-gcc9 .
- docker push "$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG-xenial-gcc9"
except:
- master
FROM ubuntu:xenial
ENV DEBIAN_FRONTEND="noninteractive"
ARG uid
ARG branch=master
ENV branch=$branch
ENV PACKAGES \
build-essential \
bash \
bc \
bzip2 \
diffutils \
ccache \
curl \
doxygen \
gcc \
g++ \
g++-multilib \
gettext \
git \
gnupg \
gnupg2 \
gawk \
make \
cmake \
nsis \
python \
python2.7 \
python-pip \
python-mako \
python3-pip \
python3-yaml \
python3-sphinx \
python3-setuptools \
texinfo \
autoconf \
automake \
autopoint \
bison \
bzip2 \
gzip \
flex \
gettext \
gperf \
intltool \
less \
libasound2 \
libass-dev \
libc6-dev-i386 \
libgdk-pixbuf2.0-dev \
libglib2.0-dev \
libglu1-mesa-dev \
libltdl-dev \
libpcap-dev \
libssl-dev \
libtool \
libtool-bin \
libxml-parser-perl \
libjson-perl \
libncurses5-dev \
libssl-dev \
libx11-dev \
lzip \
lzop \
mesa-common-dev \
meson \
ninja-build \
openssl \
p7zip-full \
patch \
patchutils \
perl \
pkg-config \
ruby \
sed \
sudo \
swig \
software-properties-common \
tar \
texinfo \
unzip \
u-boot-tools \
wget \
nasm \
bsdmainutils \
xfonts-utils \
xsltproc \
xz-utils \
xxd
RUN set -eux; \
apt-get -y update; \
apt-get -y install -y unzip; \
useradd -d /developer -m developer; \
chown -R developer:developer /developer
RUN set -eux; \
echo "###### Ubuntu Main Repos" > /etc/apt/sources.list; \
echo "deb http://de.archive.ubuntu.com/ubuntu/ xenial main restricted universe multiverse " >> /etc/apt/sources.list; \
echo "deb-src http://de.archive.ubuntu.com/ubuntu/ xenial main restricted universe multiverse " >> /etc/apt/sources.list; \
echo >> /etc/apt/sources.list; \
echo "###### Ubuntu Update Repos" >> /etc/apt/sources.list && \
echo "deb http://de.archive.ubuntu.com/ubuntu/ xenial-security main restricted universe multiverse " >> /etc/apt/sources.list; \
echo "deb http://de.archive.ubuntu.com/ubuntu/ xenial-updates main restricted universe multiverse " >> /etc/apt/sources.list; \
echo "deb http://de.archive.ubuntu.com/ubuntu/ xenial-proposed main restricted universe multiverse " >> /etc/apt/sources.list; \
echo "deb http://de.archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe multiverse " >> /etc/apt/sources.list; \
echo "deb-src http://de.archive.ubuntu.com/ubuntu/ xenial-security main restricted universe multiverse " >> /etc/apt/sources.list; \
echo "deb-src http://de.archive.ubuntu.com/ubuntu/ xenial-updates main restricted universe multiverse " >> /etc/apt/sources.list; \
echo "deb-src http://de.archive.ubuntu.com/ubuntu/ xenial-proposed main restricted universe multiverse " >> /etc/apt/sources.list; \
echo "deb-src http://de.archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe multiverse " >> /etc/apt/sources.list
RUN set -eux; \
apt-get update -y; \
apt-get -y install $PACKAGES; \
apt-get -y autoremove; \
apt-get -y clean; \
rm -rf /var/lib/apt/lists/*
RUN set -eux; \
apt-get update -y;
apt-get build-dep -y retroarch;
rm -rf /var/lib/apt/lists/*
RUN set -eux; \
apt-get upgrade -y; \
apt-get dist-upgrade -y; \
add-apt-repository -y ppa:ubuntu-toolchain-r/test; \
apt-get -y install gcc-9 g++-9; \
rm -rf /var/lib/apt/lists/*
RUN set -eux; \
echo "1" | update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-9 60 --slave /usr/bin/g++ g++ /usr/bin/g++-9; \
echo "1" | update-alternatives --config gcc
RUN echo "developer:developer" | chpasswd && adduser developer sudo
ENV HOME=/developer
USER root
WORKDIR /developer
VOLUME /developer
CMD /bin/bash
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