Commit 146a75c4 authored by Paul Cammish's avatar Paul Cammish
Browse files

Move to Virtualbox for gitlab-runner

Virtualbox is more representative of an actual running machine than Docker is, so this swaps to running the install on a standard netboot Debian 9 image with SSH, gitlab-runner, and minimal changes.

Closes #19

See merge request sympl.host/sympl!12
parents e284d115 5387b4a4
......@@ -6,6 +6,8 @@ stages:
# TODO: Add new test suite which checks created packages.
.package: &package
tags:
- docker
image: registry.gitlab.com/sympl.host/sympl/util/package:v1
stage: package
script:
......@@ -57,6 +59,8 @@ package:xmpp:
# We publish to an artifact that should be usable as a Debian repository as-is
publish:
tags:
- docker
image: debian:stretch
stage: publish
script:
......@@ -68,7 +72,9 @@ publish:
- cp deb/b*.deb repo/pool/main/b
- cp deb/s*.deb repo/pool/main/s
- cp deb/l*.deb repo/pool/main/l
- cd repo; dpkg-scanpackages -m pool | gzip > dists/stretch/main/binary-amd64/Packages.gz ; cd -
- cd repo
- dpkg-scanpackages -m pool | gzip > dists/stretch/main/binary-amd64/Packages.gz
- dpkg-scanpackages -m pool > dists/stretch/main/binary-amd64/Packages
artifacts:
paths:
- deb/*
......@@ -86,18 +92,22 @@ publish:
# unzip artifacts.zip
.install: &install
image: debian:stretch
tags:
- vbox:stretch
stage: install
script:
- echo "skipping export DEBIAN_FRONTEND=noninteractive"
- echo "deb file:$(pwd)/repo stretch main" | tee /etc/apt/sources.list.d/local.list
- echo "deb http://deb.debian.org/debian stretch-backports main" | tee /etc/apt/sources.list.d/stretch-backports.list
- apt-get update
- apt-get -y --allow-unauthenticated install --install-recommends $( find repo/pool/main/ -name '*.deb' | sed -e 's|^.*/||' -e 's|_.*$||' | tr '\n' ' ' )
- cp -r repo/ /
- chmod -R 664 /repo ; chmod -R +X /repo
- echo "deb file:/repo stretch main" | sudo tee /etc/apt/sources.list.d/local.list
- echo "deb http://deb.debian.org/debian stretch-backports main" | sudo tee /etc/apt/sources.list.d/stretch-backports.list
- apt-get -qq update
- apt-get -y --allow-unauthenticated install --install-recommends bytemark-symbiosis
- echo '## Install Complete!'
- chmod -x $( which gitlab-runner )
variables: &installvars
DEBIAN_RELEASE: stretch
OLD_DEBIAN_RELEASE: jessie
CI_DEBUG_TRACE: "false"
artifacts:
paths:
- deb/*
......
......@@ -6,6 +6,7 @@ set -e
echo "phpmyadmin phpmyadmin/dbconfig-install boolean true" | debconf-set-selections
echo "phpmyadmin phpmyadmin/mysql/app-pass password" | debconf-set-selections
echo "phpmyadmin phpmyadmin/reconfigure-webserver multiselect apache2" | debconf-set-selections
echo "phpmyadmin phpmyadmin/database-type select mysql" | debconf-set-selections
# docker doesnt seem to like having stuff running during installs.
# maybe detaching it will help...?
......
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