Browse Source

clean up docker/justfiles for building diff versions

master
Andrew Zah 11 months ago
parent
commit
3abc7c09f5
Signed by: andrewzah GPG Key ID: 23A65DACB7CAA68B
  1. 8
      Dockerfile
  2. 2
      README.md
  3. 18
      justfile

8
Dockerfile

@ -1,9 +1,9 @@
ARG BASE_VERSION=3.12
ARG BASE_VERSION="3.12"
FROM alpine:$BASE_VERSION
ENV OVERLAY_VERSION "v2.1.0.2"
ENV OVERLAY_ARCH "amd64"
ENV OVERLAY_RELEASE_URL "https://github.com/just-containers/s6-overlay/releases/download/${OVERLAY_VERSION}/s6-overlay-${OVERLAY_ARCH}-installer"
ARG OVERLAY_VERSION="v2.1.0.2"
ARG OVERLAY_ARCH="amd64"
ARG OVERLAY_RELEASE_URL="https://github.com/just-containers/s6-overlay/releases/download/${OVERLAY_VERSION}/s6-overlay-${OVERLAY_ARCH}-installer"
WORKDIR /tmp
RUN apk add --no-cache \

2
README.md

@ -1,3 +1,5 @@
[![Docker Pulls](https://img.shields.io/docker/pulls/andrewzah/base-alpine)](https://hub.docker.com/r/andrewzah/base-alpine)
# s6-alpine
alpine + [s6 overlay](https://skarnet.org/software/s6/overview.html)

18
justfile

@ -1,10 +1,14 @@
set positional-arguments := true
alpine_version := '3.12'
@build BASE_VERSION:
build v=alpine_version:
docker build . \
--build-arg "BASE_VERSION=$1" \
-t "andrewzah/base-alpine:$1"
--build-arg="BASE_VERSION={{v}}" \
-t "andrewzah/base-alpine:{{v}}"
@push BASE_VERSION:
just build $1
docker push "andrewzah/base-alpine:$1"
buildall:
just build 3.12
just build 3.13
pushall:
docker push "andrewzah/base-alpine:3.12"
docker push "andrewzah/base-alpine:3.13"
Loading…
Cancel
Save