Public Repository

Last pushed: 6 months ago
Short Description
Short description is empty for this repo.
Full Description

Build script

#!/bin/sh

ARCH=armhf
VERSION=3.5.2

# The resulting image name
IMAGE=ttobias/alpine-rpi

SHORT_VERSION=$(echo ${VERSION} | cut -c1-3)
FILENAME=alpine-minirootfs-${VERSION}-${ARCH}.tar.gz
URL=https://nl.alpinelinux.org/alpine/v${SHORT_VERSION}/releases/armhf/${FILENAME}

# Get files
wget ${URL}
wget ${URL}.sha256

# Verify
shasum -a 256 -c ${FILENAME}.sha256
if [ $? -ne 0 ]; then
    exit 1
fi

# Create image
docker import ${FILENAME} ${IMAGE}:${VERSION}

# Remove files
rm ${FILENAME} ${FILENAME}.sha256

# Login to dockerhub and push image
docker login --username ${DOCKERHUB_USER} --password ${DOCKERHUB_PASS}
docker push ${IMAGE}:${VERSION}
Docker Pull Command
Owner
ttobias