diff options
author | Karel Kočí <cynerd@email.cz> | 2018-09-01 20:43:23 +0200 |
---|---|---|
committer | Karel Kočí <cynerd@email.cz> | 2018-09-01 21:10:03 +0200 |
commit | 68a776e88d83602c43d34636b7abde5196e50f37 (patch) | |
tree | a4f4fade21879f7918bbad0dc7d3c3502453e3eb /jobs | |
parent | 50162678eb467b16970a3bdeed0a477f08c4025c (diff) | |
download | laminar-cnf-68a776e88d83602c43d34636b7abde5196e50f37.tar.gz laminar-cnf-68a776e88d83602c43d34636b7abde5196e50f37.tar.bz2 laminar-cnf-68a776e88d83602c43d34636b7abde5196e50f37.zip |
alpinelinux-amd64: add initial implementation
Diffstat (limited to 'jobs')
-rw-r--r-- | jobs/alpine-amd64.conf | 2 | ||||
-rwxr-xr-x | jobs/alpine-amd64.run | 38 |
2 files changed, 40 insertions, 0 deletions
diff --git a/jobs/alpine-amd64.conf b/jobs/alpine-amd64.conf new file mode 100644 index 0000000..04e6713 --- /dev/null +++ b/jobs/alpine-amd64.conf @@ -0,0 +1,2 @@ +TAGS=heavy +TIMEOUT=14400 diff --git a/jobs/alpine-amd64.run b/jobs/alpine-amd64.run new file mode 100755 index 0000000..83c6717 --- /dev/null +++ b/jobs/alpine-amd64.run @@ -0,0 +1,38 @@ +#!/bin/sh +# vim: ft=sh +set -e +. common + +if [ -n "$CLEAN" ]; then + echo_stage "Remove root" + flock --exclusive "$WORKSPACE/root.lock" uroot rm -rf "$WORKSPACE/root" + exit 0 +fi + +# TODO get latest uri from latest-releases.yml file +flock --exclusive "$WORKSPACE/root.lock" /bin/sh -se <<EOF + . utils + if [ ! -d "$WORKSPACE/root" ]; then + echo_stage "Setting up new root" + wget "http://dl-cdn.alpinelinux.org/alpine/edge/releases/x86_64/alpine-minirootfs-3.8.0-x86_64.tar.gz" -O alpine.tar.gz + gunzip alpine.tar.gz + tar -f alpine.tar --delete ./dev/null + mkdir "$WORKSPACE/root" + uroot tar -xf alpine.tar -C "$WORKSPACE/root" + uchroot "$WORKSPACE/root" /bin/sh -sxe <<EEOF + apk update + apk add alpine-sdk + adduser -D -h /build build + addgroup build abuild + # TODO more setup +EEOF + fi + + echo_stage "Update system" + uchroot "$WORKSPACE/root" /bin/sh -ce 'apk update && apk upgrade' + + echo_stage "Update package sources" + # TODO +EOF + +# TODO |