-
-
Save reedobrien/99ca3a023cbfd7290f7e856bf7ee8e52 to your computer and use it in GitHub Desktop.
Docker-Goconvey
This file contains hidden or 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
version: '3' | |
services: | |
goconvey: | |
build: | |
context: . | |
dockerfile: 'Dockerfile.testing' | |
args: | |
port: 9006 | |
app_path: github.com/go-ozzo/ozzo-validation | |
volumes: | |
- ${GOPATH}/src:/go/src | |
ports: | |
- 9006:9006 |
This file contains hidden or 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
FROM golang:1.7.5-alpine | |
USER root | |
ARG port | |
ARG app_path | |
ENV PORT=$port | |
ENV APP_NAME=github.com/smartystreets/goconvey | |
ENV APP_SRC_PATH=${GOPATH}/src/$app_path | |
EXPOSE ${PORT} | |
RUN echo "installing git" \ | |
&& apk update \ | |
&& apk add git \ | |
&& echo "installing goconvey" \ | |
&& go get ${APP_NAME} \ | |
&& cd ${GOPATH}/src/${APP_NAME} \ | |
&& go install | |
CMD goconvey -host=0.0.0.0 -port=${PORT} -workDir=${APP_SRC_PATH} -launchBrowser=false |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment