-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #110 from CiscoCloud/testing/docker-samples
Make all samples work in Docker container
- Loading branch information
Showing
6 changed files
with
21 additions
and
123 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,4 +1,4 @@ | ||
FROM gliderlabs/alpine:3.2 | ||
FROM ubuntu:wily | ||
MAINTAINER Langston Barrett <[email protected]> (@siddharthist) | ||
|
||
# If this file doesn't immedately work for you, please submit a Github issue: | ||
|
@@ -10,7 +10,10 @@ MAINTAINER Langston Barrett <[email protected]> (@siddharthist) | |
# Note that Distributive doesn't have access to certain system information when | ||
# run in a container. | ||
|
||
RUN apk update && apk add bash go git php-cli && rm -rf /var/cache/apk/* | ||
RUN apt-get update | ||
# network: net-tools | ||
# misc: lm-sensors, php5-cli | ||
RUN apt-get install -y bash golang git php5-cli lm-sensors net-tools && apt-get clean | ||
|
||
WORKDIR /gopath/src/github.com/CiscoCloud/distributive | ||
RUN mkdir -p /gopath/{bin,src} | ||
|
@@ -19,11 +22,12 @@ ENV GOBIN /gopath/bin | |
ENV PATH $PATH:/gopath/bin | ||
RUN go get github.com/tools/godep | ||
ADD . /gopath/src/github.com/CiscoCloud/distributive | ||
# Note: docker-machine on Windows / OS X sometimes gets its time out of sync, which can cause SSL verification failures. | ||
# If this happens, `go get .`, will fail. If you run into this problem, run this command at your terminal: | ||
# Note: docker-machine on Windows / OS X sometimes gets its time out of sync, | ||
# which can cause SSL verification failures. If this happens, `go get .`, will | ||
# fail. If you run into this problem, run this command at your terminal: | ||
# docker-machine ssh ${machine} 'sudo ntpclient -s -h pool.ntp.org' | ||
# After that, you can retry `docker build .`. | ||
RUN go get . | ||
RUN go build . | ||
|
||
CMD ["distributive", "-f", "/gopath/src/github.com/CiscoCloud/distributive/samples/filesystem.json", "-d", "", "--verbosity", "info"] | ||
CMD ["distributive", "-d", "/gopath/src/github.com/CiscoCloud/distributive/samples/", "--verbosity", "info"] |
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
This file was deleted.
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