Permalink
Browse files

bump to Alpine 3.8

Fixes #14
  • Loading branch information...
bontibon committed Jul 6, 2018
1 parent c316759 commit 4efb2d96f59efceb805940ce07f7fc23dfbc3beb
Showing with 6 additions and 6 deletions.
  1. +1 −1 apk/Makefile
  2. +5 −5 digitalocean-alpine.sh
@@ -1,6 +1,6 @@
PRIVATE_KEY = $(wildcard *.rsa)
PUBLIC_KEY = $(wildcard *.rsa.pub)
ALPINE_VERSION = 3.7
ALPINE_VERSION = 3.8
repository:
docker build --build-arg privatekey=$(PRIVATE_KEY) --build-arg publickey=$(PUBLIC_KEY) --build-arg alpineversion=$(ALPINE_VERSION) -t digitalocean-alpine-builder .
@@ -21,14 +21,14 @@ ntnM2l6VIxMDHCxbZ9/cu4o/KjW2iT3802D4EWxPT3eksdZERgSVPTJrKskMzey+
VwIDAQAB
-----END PUBLIC KEY-----
EOF
echo "https://cdn.layeh.com/alpine/3.7/" >> /etc/apk/repositories
echo "https://cdn.layeh.com/alpine/3.8/" >> /etc/apk/repositories
apk update >>"$logfile" 2>>"$logfile"
if [ "$?" -ne 0 ]; then
echo
exit 1
fi
apk add alpine-base linux-virthardened syslinux grub grub-bios e2fsprogs eudev openssh digitalocean-alpine >>"$logfile" 2>>"$logfile"
apk add alpine-base linux-virt syslinux grub grub-bios e2fsprogs eudev openssh digitalocean-alpine >>"$logfile" 2>>"$logfile"
if [ "$?" -ne 0 ]; then
echo
exit 1
@@ -98,16 +98,16 @@ if [ \! -x "$SCRIPTPATH" ]; then
exit 1
fi
echo -n "Downloading Alpine 3.7.0..." >&2
wget -q -O /tmp/rootfs.tar.gz http://dl-cdn.alpinelinux.org/alpine/v3.7/releases/x86_64/alpine-minirootfs-3.7.0-x86_64.tar.gz
echo -n "Downloading Alpine 3.8.0..." >&2
wget -q -O /tmp/rootfs.tar.gz http://dl-cdn.alpinelinux.org/alpine/v3.8/releases/x86_64/alpine-minirootfs-3.8.0-x86_64.tar.gz
if [ "$?" -ne 0 ]; then
echo " Failed!" >&2
exit 1
fi
echo " Done" >&2
echo -n "Verifying SHA256 checksum..." >&2
echo "17e8275545aca7a6eaf4e43759a091d33bd9eb9cf11805118773dc940c8b94ac /tmp/rootfs.tar.gz" | sha256sum -c >/dev/null 2>&1
echo "ae36d6ea2033131cfc649afa13d7271367c386e7a0dbd5b3d0671a2ede22a2f1 /tmp/rootfs.tar.gz" | sha256sum -c >/dev/null 2>&1
if [ "$?" -ne 0 ]; then
echo " Failed!" >&2
exit 1

0 comments on commit 4efb2d9

Please sign in to comment.