Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
marcsauter committed Mar 11, 2019
2 parents a27ec96 + df0272c commit f3f4608
Show file tree
Hide file tree
Showing 5 changed files with 57 additions and 76 deletions.
60 changes: 0 additions & 60 deletions .travis.yml

This file was deleted.

1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
[![Go Report Card](https://goreportcard.com/badge/github.com/postfinance/vault-kubernetes)](https://goreportcard.com/report/github.com/postfinance/vault-kubernetes)
[![Build Status](https://travis-ci.org/postfinance/vault-kubernetes.svg?branch=master)](https://travis-ci.org/postfinance/vault-kubernetes)

<!-- START doctoc generated TOC please keep comment here to allow auto update -->
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
Expand Down
24 changes: 19 additions & 5 deletions packaging/docker/authenticator/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,23 @@
FROM alpine:3.8
FROM golang:1.12-alpine as builder
RUN apk --no-cache add git

LABEL authors="marc.sauter@postfinance.ch"
ENV GO111MODULE=on
ENV CGO_ENABLED=0

ARG BINARY
COPY $BINARY /authenticator
WORKDIR /vgo/
COPY . .

ENTRYPOINT ["/authenticator"]
RUN ls -al
RUN go build -o /authenticator ./cmd/authenticator/main.go

# Build runtime
FROM alpine:3.8 as runtime
MAINTAINER OpenSource PF <opensource@postfinance.ch>

COPY --from=builder /authenticator /authenticator

# Run as nobody:x:65534:65534:nobody:/:/sbin/nologin
USER 65534

CMD ["/authenticator"]

24 changes: 19 additions & 5 deletions packaging/docker/synchronizer/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,23 @@
FROM alpine:3.8
FROM golang:1.12-alpine as builder
RUN apk --no-cache add git

LABEL authors="marc.sauter@postfinance.ch"
ENV GO111MODULE=on
ENV CGO_ENABLED=0

ARG BINARY
ADD $BINARY /synchronizer
WORKDIR /vgo/
COPY . .

ENTRYPOINT ["/synchronizer"]
RUN ls -al
RUN go build -o /synchronizer ./cmd/synchronizer/main.go

# Build runtime
FROM alpine:3.8 as runtime
MAINTAINER OpenSource PF <opensource@postfinance.ch>

COPY --from=builder /synchronizer /synchronizer

# Run as nobody:x:65534:65534:nobody:/:/sbin/nologin
USER 65534

CMD ["/synchronizer"]

24 changes: 19 additions & 5 deletions packaging/docker/token-renewer/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,23 @@
FROM alpine:3.8
FROM golang:1.12-alpine as builder
RUN apk --no-cache add git

LABEL authors="marc.sauter@postfinance.ch"
ENV GO111MODULE=on
ENV CGO_ENABLED=0

ARG BINARY
ADD $BINARY /token-renewer
WORKDIR /vgo/
COPY . .

ENTRYPOINT ["/token-renewer"]
RUN ls -al
RUN go build -o /token-renewer ./cmd/token-renewer/main.go

# Build runtime
FROM alpine:3.8 as runtime
MAINTAINER OpenSource PF <opensource@postfinance.ch>

COPY --from=builder /token-renewer /token-renewer

# Run as nobody:x:65534:65534:nobody:/:/sbin/nologin
USER 65534

CMD ["/token-renewer"]

0 comments on commit f3f4608

Please sign in to comment.