Skip to content

Commit

Permalink
move sandpaper image to uscisii2 organisation
Browse files Browse the repository at this point in the history
  • Loading branch information
saggu committed Jul 31, 2018
1 parent 299c71c commit f1f842e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,19 @@

# Docker deployment instructions

`docker run -it -P digsandpaper:digsandpaper`
`docker run -it -P uscisii2:digsandpaper`

* If you want to provide a custom config file, you can volume mount the config directory

`docker run -it -v config:/etc/sandpaper/config -P digsandpaper:digsandpaper`
`docker run -it -v config:/etc/sandpaper/config -P uscisii2:digsandpaper`

* By default digsandpaper will use the file at /etc/sandpaper/config/sandpaper.json. If you need to point to a different config in the mounted volume, create a config directory and put your config in there, and then use the following command

`docker run -it -v config:/etc/sandpaper/config -P digsandpaper:digsandpaper bin/start.sh --config config/your-custom-config.json --host 0.0.0.0`
`docker run -it -v config:/etc/sandpaper/config -P uscisii2:digsandpaper bin/start.sh --config config/your-custom-config.json --host 0.0.0.0`

* Docker will expose a port that you should be able to query

`docker run -d -p 9876:9876 digsandpaper:digsandpaper`
`docker run -d -p 9876:9876 uscisii2:digsandpaper`
`curl -XGET localhost:9876`

# Development instructions
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
version: '3'
services:
sandpaper:
image: "digsandpaper/digsandpaper"
image: "uscisii2/digsandpaper"
ports:
- "9876:9876"
volumes:
Expand Down
2 changes: 1 addition & 1 deletion docker_deploy.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash
docker login -u $DOCKER_USER -p $DOCKER_PASS
export REPO=digsandpaper/digsandpaper
export REPO=uscisii2/digsandpaper
export TAG=`if [ "$TRAVIS_BRANCH" == "master" ]; then echo "latest"; else echo $TRAVIS_BRANCH ; fi`
export DOCKERFILE_EXT=`if [ "$TRAVIS_BRANCH" == "master" ]; then echo ".development"; else echo "" ; fi`
docker build -f Dockerfile${DOCKERFILE_EXT} -t $REPO:$TRAVIS_COMMIT .
Expand Down

0 comments on commit f1f842e

Please sign in to comment.