Please provide "official" pureos:green, pureos:landing and pureos:purple docker containers
Open, NormalPublic

Description

Tools like gitlab's CI or Jenkins handle builds and tests on docker containers nicely. It would be great if one could just say:

image: pureos:green

there and test against a current image.

Any image created ought to be reproducible.

guido created this task.Jun 22 2018, 6:41 AM
guido changed the title from "Please provide "official" add pureos:gree, pureos:landing and pureos:purple docker containers" to "Please provide "official" pureos:green, pureos:landing and pureos:purple docker containers".Jul 10 2018, 6:17 PM
guido added a comment.Aug 2 2018, 11:17 AM

I'm wondering if this is on anyone's horizon yet? If not I would put it on my TODO list since it would be good to have this running so we can test phone stuff on PureOS in gitlab's CI as well (instead of "only" Debian testing).

guido added a project: Restricted Project.Oct 17 2018, 12:44 PM
guido added a comment.May 7 2019, 1:29 PM

I've added support to debuerreotype for that https://github.com/debuerreotype/debuerreotype/pull/63 and put current images here: https://hub.docker.com/r/godiug/pureos/tags

The only thing missing is running this continously and either uploading the images to our gitlab instance or dockerhub. Could someone on the PureOS side take that from here?

mak claimed this task.Jun 13 2019, 5:46 PM
jeremiah.foster triaged this task as "Normal" priority.
jeremiah.foster edited the task description. (Show Details)
jeremiah.foster added a subscriber: mak.

@guido If you were to outline the steps you took for creating the 'green' docker image, I could follow that and put them into a pureos.sh script to submit upstream. I'm also setting this up to be automated.

guido added a comment.Wed, Aug 21, 4:42 PM
#!/bin/bash

set -e

rm -rf output

DIST=green
TAG="godiug/pureos"

DATE=$(date +'%Y%m%d')

function build()
{
  ./pureos.sh output "${DIST}"
}

function import()
{
  docker image import output/pureos/amd64/green/rootfs.tar.xz "${TAG}:${DIST}-${DATE}"
  docker image import output/pureos/amd64/green/slim/rootfs.tar.xz "${TAG}:${DIST}-slim-${DATE}"
  docker tag "${TAG}:${DIST}-slim-${DATE}" "${TAG}:${DIST}-slim"
  docker tag "${TAG}:${DIST}-${DATE}" "${TAG}:${DIST}"
}

function push()
{
  for image in "${TAG}:${DIST}-slim-${DATE}" "${TAG}:${DIST}-${DATE}" "${TAG}:${DIST}-slim" "${TAG}:${DIST}"; do
    docker push "${image}"
  done
}

build
import
push

Add Comment