Skip to content

Commit 4fb25a0

Browse files
authored
New release 0.3 (#3)
* Update golang up to 1.9 and update consul up to 1.0.2 * update golang up to 1.12 update consul up to 1.4.3 go-swagger
1 parent 4c1c3b4 commit 4fb25a0

File tree

8 files changed

+26
-5
lines changed

8 files changed

+26
-5
lines changed

.gitignore

100644100755
File mode changed.

.travis.yml

100644100755
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,18 +17,27 @@ script:
1717
- docker version
1818
- docker login -u $DOCKER_USER -p $DOCKER_PASS
1919
- export TAG=`if [ "$TRAVIS_BRANCH" == "master" ]; then echo "latest"; else echo $TRAVIS_BRANCH ; fi`
20+
# GO
2021
- export GO_REPO=itcreator/go-micro-stack
2122
- docker build -f go/Dockerfile -t $GO_REPO:$COMMIT go
2223
- docker tag $GO_REPO:$COMMIT $GO_REPO:$TAG
2324
- docker tag $GO_REPO:$COMMIT $GO_REPO:travis-$TRAVIS_BUILD_NUMBER
2425
- docker push $GO_REPO
26+
# CONSUL
2527
- export CONSUL_REPO=itcreator/go-micro-stack-consul
2628
- docker build -f consul/Dockerfile -t $CONSUL_REPO:$COMMIT consul
2729
- docker tag $CONSUL_REPO:$COMMIT $CONSUL_REPO:$TAG
2830
- docker tag $CONSUL_REPO:$COMMIT $CONSUL_REPO:travis-$TRAVIS_BUILD_NUMBER
2931
- docker push $CONSUL_REPO
32+
#PROTOC
3033
- export PROTOC_REPO=itcreator/go-micro-stack-protoc-go-micro
3134
- docker build -f protoc-go-micro/Dockerfile -t $PROTOC_REPO:$COMMIT protoc-go-micro
3235
- docker tag $PROTOC_REPO:$COMMIT $PROTOC_REPO:$TAG
3336
- docker tag $PROTOC_REPO:$COMMIT $PROTOC_REPO:travis-$TRAVIS_BUILD_NUMBER
3437
- docker push $PROTOC_REPO
38+
#GOSWAGGER
39+
- export GOSWAGGER_REPO=itcreator/go-micro-stack-goswagger
40+
- docker build -f go-swagger/Dockerfile -t $GOSWAGGER_REPO:$COMMIT go-swagger
41+
- docker tag $GOSWAGGER_REPO:$COMMIT $GOSWAGGER_REPO:$TAG
42+
- docker tag $GOSWAGGER_REPO:$COMMIT $GOSWAGGER_REPO:travis-$TRAVIS_BUILD_NUMBER
43+
- docker push $GOSWAGGER_REPO

LICENSE

100644100755
File mode changed.

README.md

100644100755
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@ docker infrastructure for golang and microservices
88

99
# Changelog
1010

11+
## 0.3.0
12+
13+
* Update Consul up to 1.4.3
14+
* Update Golang up to 1.12
15+
16+
1117
## 0.2.0
1218

1319
* Update Consul up to 1.0.2

consul/Dockerfile

100644100755
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM consul:1.0.2
1+
FROM consul:1.4.3
22

33
COPY ./scripts /scripts
44

go-swagger/Dockerfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
FROM quay.io/goswagger/swagger
2+
3+
EXPOSE 8070
4+
5+
RUN mkdir /go/src/api
6+
WORKDIR /go/src/api

go/Dockerfile

100644100755
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM golang:1.9
1+
FROM golang:1.12
22

33
RUN mkdir /src
44
WORKDIR /src
@@ -7,8 +7,8 @@ WORKDIR /src
77
RUN apt-get update -y \
88
&& apt-get install -y unzip \
99
&& cd /tmp \
10-
&& wget https://releases.hashicorp.com/consul/1.0.2/consul_1.0.2_linux_amd64.zip \
11-
&& unzip consul_1.0.2_linux_amd64.zip \
10+
&& wget https://releases.hashicorp.com/consul/1.4.3/consul_1.4.3_linux_amd64.zip \
11+
&& unzip consul_1.4.3_linux_amd64.zip \
1212
&& chmod +x consul \
1313
&& mv consul /usr/bin/consul \
1414
&& rm -R /tmp/* \

protoc-go-micro/Dockerfile

100644100755
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM golang:1.9
1+
FROM golang:1.12
22

33
RUN mkdir /tmp/protobuf
44
WORKDIR /tmp/protobuf

0 commit comments

Comments
 (0)