ci: Use the new CI image builder for eoan

pull/6843/head
Daniel Mensinger 5 years ago
parent 6801beee6b
commit aa3cb4a9bb
No known key found for this signature in database
GPG Key ID: 54DD94C131E277D4
  1. 36
      ci/ciimage/eoan/Dockerfile
  2. 7
      ci/ciimage/eoan/image.json
  3. 53
      ci/ciimage/eoan/install.sh

@ -1,36 +0,0 @@
FROM ubuntu:eoan
ENV DEBIAN_FRONTEND noninteractive
ENV LANG='C.UTF-8'
ENV DC=gdc
RUN sed -i '/^#\sdeb-src /s/^#//' "/etc/apt/sources.list" \
&& apt-get -y update && apt-get -y upgrade \
&& apt-get -y install eatmydata \
&& eatmydata apt-get -y build-dep meson \
&& eatmydata apt-get -y install python3-pytest-xdist \
&& eatmydata apt-get -y install python3-pip libxml2-dev libxslt1-dev libyaml-dev libjson-glib-dev \
&& eatmydata python3 -m pip install hotdoc codecov \
&& eatmydata apt-get -y install wget unzip \
&& eatmydata apt-get -y install qt5-default clang \
&& eatmydata apt-get -y install pkg-config-arm-linux-gnueabihf \
&& eatmydata apt-get -y install qt4-linguist-tools \
&& eatmydata apt-get -y install python-dev \
&& eatmydata apt-get -y install libomp-dev \
&& eatmydata apt-get -y install dub ldc \
&& eatmydata apt-get -y install mingw-w64 mingw-w64-tools nim \
&& eatmydata apt-get -y install --no-install-recommends wine-stable \
&& eatmydata apt-get -y install libclang-dev \
&& eatmydata apt-get -y install libgcrypt20-dev \
&& eatmydata apt-get -y install libgpgme-dev \
&& eatmydata apt-get -y install libhdf5-dev \
&& eatmydata apt-get -y install libboost-python-dev libboost-regex-dev \
&& eatmydata apt-get -y install libblocksruntime-dev \
&& eatmydata apt-get -y install libperl-dev \
&& eatmydata apt-get -y install liblapack-dev libscalapack-mpi-dev \
&& eatmydata dub fetch urld && dub build urld --compiler=gdc \
&& eatmydata dub fetch dubtestproject \
&& eatmydata dub build dubtestproject:test1 --compiler=ldc2 \
&& eatmydata dub build dubtestproject:test2 --compiler=ldc2
# OpenSSH client is needed to run openmpi binaries.

@ -0,0 +1,7 @@
{
"base_image": "ubuntu:eoan",
"env": {
"CI": "1",
"DC": "gdc"
}
}

@ -0,0 +1,53 @@
#!/bin/bash
set -e
export DEBIAN_FRONTEND=noninteractive
export LANG='C.UTF-8'
export DC=gdc
pkgs=(
python3-pytest-xdist
python3-pip libxml2-dev libxslt1-dev libyaml-dev libjson-glib-dev
wget unzip
qt5-default clang
pkg-config-arm-linux-gnueabihf
qt4-linguist-tools
python-dev
libomp-dev
dub ldc
mingw-w64 mingw-w64-tools nim
libclang-dev
libgcrypt20-dev
libgpgme-dev
libhdf5-dev
libboost-python-dev libboost-regex-dev
libblocksruntime-dev
libperl-dev
liblapack-dev libscalapack-mpi-dev
)
sed -i '/^#\sdeb-src /s/^#//' "/etc/apt/sources.list"
apt-get -y update
apt-get -y upgrade
apt-get -y install eatmydata
# Base stuff
eatmydata apt-get -y build-dep meson
# packages
eatmydata apt-get -y install "${pkgs[@]}"
eatmydata apt-get -y install --no-install-recommends wine-stable # Wine is special
eatmydata python3 -m pip install hotdoc codecov jsonschema
# dub stuff
dub fetch urld
dub build urld --compiler=gdc
dub fetch dubtestproject
dub build dubtestproject:test1 --compiler=ldc2
dub build dubtestproject:test2 --compiler=ldc2
# cleanup
apt-get -y clean
apt-get -y autoclean
Loading…
Cancel
Save