Initial commit

This commit is contained in:
Olaf Meeuwissen 2017-08-07 21:22:10 +09:00
commit 0e7c45db5f
3 changed files with 61 additions and 0 deletions

23
.gitlab-ci.yml Normal file
View File

@ -0,0 +1,23 @@
# .gitlab-ci.yml -- to automate Docker Devuan image builds
# Copyright (C) 2017 Olaf Meeuwissen
#
# License: GPL-3.0+
variables:
DEBIAN_VERSION: jessie-20170723
image: docker:latest
services:
- docker:dind
before_script:
- docker login -u gitlab-ci-token -p "$CI_JOB_TOKEN" registry.gitlab.com
migrate:
stage: build
script:
- docker pull "$CI_REGISTRY_IMAGE":"$DEBIAN_VERSION"-migrated || true
- docker build --build-arg DEBIAN_VERSION="$DEBIAN_VERSION"
-t "$CI_REGISTRY_IMAGE":"$DEBIAN_VERSION"-migrated
- < migrate.df
- docker push "$CI_REGISTRY_IMAGE":"$DEBIAN_VERSION"-migrated

17
README.md Normal file
View File

@ -0,0 +1,17 @@
Devuan Docker Base Images
=========================
Not quite happy with the state of [Devuan][1] [Docker][2] images on
the [Docker Hub][3], I decided to roll my own. First cut is just a
migration from the Debian images following the [instructions][4].
You can pull this image with
``` sh
docker pull registry.gitlab.com/paddy-hack/devuan
```
[1]: https://devuan.org/
[2]: https://docker.com/
[3]: https://hub.docker.com/
[4]: https://devuan.org/os/documentation/dev1fanboy/Upgrade-to-Devuan

21
migrate.df Normal file
View File

@ -0,0 +1,21 @@
# migrate.df -- a Debian base image to Devuan
# Copyright (C) 2017 Olaf Meeuwissen
#
# License: GPL-3.0+
ARG DEBIAN_VERSION
FROM debian:${DEBIAN_VERSION}
LABEL maintainer="Olaf Meeuwissen <paddy-hack@member.fsf.org>"
RUN url=http://auto.mirror.devuan.org/merged \
&& echo "deb $url jessie main" > /etc/apt/sources.list \
&& echo "deb $url jessie-updates main" >> /etc/apt/sources.list \
&& echo "deb $url jessie-security main" >> /etc/apt/sources.list \
&& (rm /etc/apt/sources.list.d/* || true) \
&& apt-key adv \
--keyserver hkp://pool.sks-keyservers.net \
--recv-keys 72E3CB773315DFA2E464743D94532124541922FB \
&& apt-get update \
&& DEBIAN_FRONTEND=noninteractive apt-get dist-upgrade -y \
&& DEBIAN_FRONTEND=noninteractive apt-get --purge autoremove -y \
&& rm /var/lib/apt/lists/*