diff --git a/Dockerfile b/Dockerfile index 2894bac69..9f12a147d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,7 +2,6 @@ FROM treeder/go-dind RUN mkdir /app ADD app /app/gateway -#ADD /home/treeder/.iron.json /app/iron.json WORKDIR /app ENTRYPOINT rc default && sleep 1 && ./gateway && sleep 1 diff --git a/README.md b/README.md index c60937753..0f20e3685 100644 --- a/README.md +++ b/README.md @@ -42,7 +42,7 @@ curl -i -X GET http://localhost:8080/sinatra?app=myapp ```sh dj go build -docker run --rm -it --privileged --net=host -v "$PWD":/app -v $HOME:/root:ro -w /app -p 8080:8080 treeder/go-dind sh -c 'rc default && ./app' +docker run -e "IRON_TOKEN=GP8cqlKSrcpmqeR8x9WKD4qSAss" -e "IRON_PROJECT_ID=4fd2729368a0197d1102056b" --rm -it --privileged --net=host -v "$PWD":/app -w /app -p 8080:8080 treeder/go-dind sh -c 'rc default && ./app' ``` Then run the commands above to use it. @@ -56,9 +56,13 @@ docker build -t iron/gateway:latest . Test it, the iron token and project id are for cache. ```sh -docker run --rm -it --privileged --net=host -p 8080:8080 -e "IRON_TOKEN=GP8cqlKSrcpmqeR8x9WKD4qSAss" -e "IRON_PROJECT_ID=4fd2729368a0197d1102056b" -e "IRON_API_DEBUG=true" iron/gateway +docker run -e "IRON_TOKEN=GP8cqlKSrcpmqeR8x9WKD4qSAss" -e "IRON_PROJECT_ID=4fd2729368a0197d1102056b" --rm -it --privileged --net=host -p 8080:8080 iron/gateway ``` +After deploying, running it with: + +```sh +docker run -e "IRON_TOKEN=GP8cqlKSrcpmqeR8x9WKD4qSAss" -e "IRON_PROJECT_ID=4fd2729368a0197d1102056b" --name iron-gateway -d -it --privileged --net=host -p 8080:8080 iron/gateway # Previous version: