Skip to content
This repository has been archived by the owner on Dec 24, 2019. It is now read-only.

Commit

Permalink
Alpine 3.8
Browse files Browse the repository at this point in the history
  • Loading branch information
hjacobs committed Jan 10, 2019
1 parent b6c3c10 commit 0cbfe82
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 11 deletions.
5 changes: 2 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
FROM alpine:3.5
FROM alpine:3.8
MAINTAINER Henning Jacobs <henning@jacobs1.de>

RUN apk add --no-cache python3 && \
pip3 install pykube && \
rm -rf /var/cache/apk/* /root/.cache /tmp/*
rm -rf /var/cache/apk/* /root/.cache /tmp/*

WORKDIR /

COPY cleaner.py /
COPY scm-source.json /

ENTRYPOINT ["/cleaner.py"]
9 changes: 1 addition & 8 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,15 @@
IMAGE ?= hjacobs/kube-job-cleaner
VERSION ?= $(shell git describe --tags --always --dirty)
TAG ?= $(VERSION)
GITHEAD = $(shell git rev-parse --short HEAD)
GITURL = $(shell git config --get remote.origin.url)
GITSTATUS = $(shell git status --porcelain || echo "no changes")

default: docker

test:
tox

docker: scm-source.json
docker:
docker build -t "$(IMAGE):$(TAG)" .
@echo 'Docker image $(IMAGE):$(TAG) can now be used.'

push: docker
docker push "$(IMAGE):$(TAG)"

scm-source.json: .git
@echo '{"url": "git:$(GITURL)", "revision": "$(GITHEAD)", "author": "$(USER)", "status": "$(GITSTATUS)"}' > scm-source.json

0 comments on commit 0cbfe82

Please sign in to comment.