This repository has been archived by the owner on Apr 14, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Issue #93: Dockerfile and instructions for reproducing binaries
- Loading branch information
Showing
3 changed files
with
42 additions
and
1 deletion.
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 |
---|---|---|
|
@@ -27,7 +27,7 @@ _testmain.go | |
*.prof | ||
|
||
# build folder | ||
build | ||
/build | ||
|
||
# IDE settings | ||
.idea |
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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
FROM ubuntu:xenial | ||
|
||
ARG go_version=1.9.2 | ||
ARG fritzctl_revision=master | ||
ARG fritzctl_version=unknown | ||
|
||
RUN apt-get update && apt-get install -y make wget git | ||
RUN wget --quiet https://storage.googleapis.com/golang/go${go_version}.linux-amd64.tar.gz | ||
RUN tar -xf go${go_version}.linux-amd64.tar.gz | ||
RUN mv go /usr/local | ||
RUN mkdir -p /root/go/src/github.com/bpicode | ||
|
||
WORKDIR /root/go/src/github.com/bpicode | ||
RUN git clone https://github.com/bpicode/fritzctl.git | ||
WORKDIR /root/go/src/github.com/bpicode/fritzctl | ||
RUN git checkout ${fritzctl_revision} | ||
RUN mkdir build | ||
|
||
ENV GOPATH=/root/go | ||
ENV GOROOT=/usr/local/go | ||
ENV PATH=$GOPATH/bin:$GOROOT/bin:$PATH | ||
ENV FRITZCTL_VERSION=$fritzctl_version | ||
|
||
ENTRYPOINT [ "make", "sysinfo", "deps", "dist_all"] |