Sign inSign up

ttobias/alpine-rpi

By ttobias

•Updated over 9 years ago

Image
0

108

ttobias/alpine-rpi repository overview

⁠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}

Tag summary

Content type

Image

Digest

Size

1.9 MB

Last updated

over 9 years ago

docker pull ttobias/alpine-rpi:3.5.2