Skip to content

Commit

Permalink
Merge branch 'release/1.3.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
khash committed Sep 30, 2019
2 parents 5ad7e75 + 3ccb1e7 commit 4ce8b9b
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 15 deletions.
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
compiled/*
Dockerfile
Dockerfile.crosscompile
Dockerfile.tester
Expand Down
30 changes: 17 additions & 13 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,18 +1,22 @@
#use the golang base image
FROM golang:1.8
MAINTAINER Daniël van Gils
FROM golang:1.12 AS tester
MAINTAINER Cloud 66 Engineering

#get govener for package management
#get all the go testing stuff
#Installing Golang-Dep
#copy the source files
RUN go get -u github.com/kardianos/govendor && \
go get github.com/onsi/ginkgo/ginkgo && \
go get github.com/onsi/gomega && \
curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh && \
mkdir -p /usr/local/go/src/github.com/cloud66-oss/habitus

RUN apt-get update -y && apt-get upgrade -y

ENV APP_DIR=$GOPATH/src/github.com/cloud66-oss/habitus
RUN mkdir -p $APP_DIR
COPY . $APP_DIR
WORKDIR $APP_DIR

CMD ["go", "test", ".", "./configuration"]

FROM tester AS builder

RUN go get github.com/mitchellh/gox
RUN mkdir -p /usr/local/go/src/github.com/cloud66-oss/habitus
COPY . /usr/local/go/src/github.com/cloud66-oss/habitus

#switch to our app directory
WORKDIR /usr/local/go/src/github.com/cloud66-oss/habitus

RUN ./compile.sh `git describe --abbrev=0 --tags`
2 changes: 1 addition & 1 deletion Dockerfile.crosscompile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#use the golang base image
FROM golang:1.8
FROM golang:1.12
MAINTAINER Daniël van Gils

RUN go get github.com/mitchellh/gox
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.tester
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#use the golang base image
FROM golang:1.8
FROM golang:1.12
MAINTAINER Daniël van Gils

#get all the go testing stuff
Expand Down

0 comments on commit 4ce8b9b

Please sign in to comment.