Skip to content

Commit

Permalink
Refactor for docker release
Browse files Browse the repository at this point in the history
  • Loading branch information
pradeeban committed Dec 17, 2018
1 parent d3fbac3 commit 641977c
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 8 deletions.
2 changes: 1 addition & 1 deletion docker/README.md → DOCKER-README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ More information - https://docs.docker.com/docker-for-mac/release-notes/#docker-

## For the Bindaas Developer: Building the Docker Container

From the <BINDAAS-SOURCE-ROOT>/docker directory,
From the <BINDAAS-DIST-ROOT>/bin directory,

$ docker build -t bindaas:3.3.2 .

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,4 +64,4 @@ password: password

More details on configuring Bindaas can be found from the [admin guide](https://github.com/sharmalab/bindaas/wiki/Bindaas-Admin-Guide).

If you prefer to run Bindaas using its Docker container, please refer to [docker/README.md](docker/README.md) for more details.
If you prefer to run Bindaas using its Docker container, please refer to [docker/README.md](DOCKER-README.md) for more details.
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,9 @@ RUN chown -R bindaas:bindaas /root/bindaas

USER bindaas

COPY bindaas.config.json /root/bindaas/bin/

EXPOSE 9099
EXPOSE 8080

WORKDIR /root/bindaas/bin

CMD ["sh", "run.sh"]
File renamed without changes.
7 changes: 3 additions & 4 deletions distribution/build-extras/bin/docker-run.sh
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
#!/bin/bash

mkdir bindaas-dist-3.3.2
mkdir bindaas

cd bindaas-dist-3.3.2
cd bindaas

wget https://github.com/sharmalab/bindaas/releases/download/v3.3.2/bindaas-dist-3.3.2.tar.gz

tar -xvf bindaas-dist-3.3.2.tar.gz && rm bindaas-dist-3.3.2.tar.gz


docker stop bindaas-public

docker rm bindaas-public

docker run --name bindaas-public -v bin:/root/bindaas/bin/ -v bundles:/root/bindaas/bundles/ -v log:/root/bindaas/log/ -p 8080:8080 -p 9099:9099 pradeeban/bindaas:3.3.2
docker run --name bindaas-public -v bin:/root/bindaas/bin/ -v log:/root/bindaas/log/ -p 8080:8080 -p 9099:9099 pradeeban/bindaas:3.3.2

0 comments on commit 641977c

Please sign in to comment.