-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update to golang 1.10.3 at alpine 3.8
- Loading branch information
Showing
8 changed files
with
450 additions
and
1,405 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,20 @@ | ||
FROM golang:1.10.3-alpine3.7 AS BUILD | ||
FROM golang:1.10.3-alpine3.8 AS BUILD | ||
|
||
MAINTAINER CMGS <[email protected]> | ||
|
||
ENV LIBGIT2VERSION 0.26.4 | ||
|
||
# make binary | ||
RUN apk add --no-cache build-base musl-dev libgit2-dev git curl make cmake python\ | ||
&& curl https://glide.sh/get | sh \ | ||
&& go get -d github.com/projecteru2/core | ||
RUN wget -c https://github.com/libgit2/libgit2/archive/v$LIBGIT2VERSION.tar.gz -O - | tar -xz | ||
RUN cd libgit2-$LIBGIT2VERSION && cmake . && make && cp libgit2.so* /tmp && make install | ||
WORKDIR /go/src/github.com/projecteru2/core | ||
RUN make build && ./eru-core --version | ||
|
||
FROM alpine:3.7 | ||
FROM alpine:3.8 | ||
|
||
MAINTAINER CMGS <[email protected]> | ||
|
||
RUN mkdir /etc/eru/ | ||
LABEL ERU=1 version=latest | ||
RUN apk --no-cache add libcurl libssh2 && rm -rf /var/cache/apk/* | ||
COPY --from=BUILD /tmp/libgit2.so.26 /usr/lib/libgit2.so.26 | ||
COPY --from=BUILD /tmp/libgit2.so.0.26.4 /usr/lib/libgit2.so.0.26.4 | ||
RUN apk --no-cache add libcurl libssh2 libgit2 && rm -rf /var/cache/apk/* | ||
COPY --from=BUILD /go/src/github.com/projecteru2/core/eru-core /usr/bin/eru-core | ||
COPY --from=BUILD /go/src/github.com/projecteru2/core/core.yaml.sample /etc/eru/core.yaml.sample |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,7 +16,7 @@ stages: | |
- pack | ||
builds: | ||
build: | ||
base: "golang:1.9.1-alpine3.6" | ||
base: "golang:1.10.3-alpine3.8" | ||
# only support ssh protocol | ||
repo: "[email protected]:projecteru2/core.git" | ||
version: "HEAD" | ||
|
@@ -33,7 +33,7 @@ builds: | |
# HTTP_PROXY: <HTTP_PROXY> | ||
# HTTPS_PROXY: <HTTPS_PROXY> | ||
pack: | ||
base: alpine:3.6 | ||
base: alpine:3.8 | ||
labels: | ||
ERU: 1 | ||
version: latest | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.