From ca202ced8d38447431aeb94a0c562f9f2f8d146e Mon Sep 17 00:00:00 2001 From: Markus Pesch Date: Thu, 18 Apr 2019 17:33:44 +0200 Subject: [PATCH] Initial Commit --- Dockerfile | 8 ++++++++ Makefile | 17 +++++++++++++++++ 2 files changed, 25 insertions(+) create mode 100644 Dockerfile create mode 100644 Makefile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..43a455c --- /dev/null +++ b/Dockerfile @@ -0,0 +1,8 @@ +FROM archlinux/base:latest + +RUN pacman --sync \ + --refresh \ + --noconfirm \ + --sysupgrade go make git + +WORKDIR /workspace \ No newline at end of file diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..0e2bf0b --- /dev/null +++ b/Makefile @@ -0,0 +1,17 @@ +# VERSION +# If no version is specified as a parameter of make, the value latest +# is taken. +VERSION?=latest + +# DOCKER_USER +DOCKER_USER:=volkerraschek + +build: + docker build \ + --no-cache \ + --tag ${DOCKER_USER}/build-image:${VERSION} \ + . + +push: build + docker login --username ${DOCKER_USER} --password ${DOCKER_PASSWORD} + docker push ${DOCKER_USER}/build-image:${VERSION} \ No newline at end of file