Skip to content

Commit

Permalink
#32 : Expose REST API ports in Docker
Browse files Browse the repository at this point in the history
  • Loading branch information
gazbert committed Apr 4, 2020
1 parent ee8dab2 commit 0ea9915
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
5 changes: 4 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
FROM openjdk:11

RUN apt-get update
RUN apt-get install -y maven

Expand All @@ -11,4 +12,6 @@ RUN cp ./target/bxbot-parent-*-dist.tar.gz /
WORKDIR /
RUN tar -xzf bxbot-parent-*-dist.tar.gz
RUN rm bxbot-parent-*-dist.tar.gz
RUN rm -rf ./bxbot-staging
RUN rm -rf ./bxbot-staging

EXPOSE 8080
6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,10 +95,8 @@ If you want to just play around with the
and evaluate the bot, Docker is the way to go.

1. Install [Docker](https://docs.docker.com/engine/installation/) on the machine you want to run the bot.
1. Fetch the BX-bot image from [Docker Hub](https://hub.docker.com/r/gazbert/bxbot/): `docker pull gazbert/bxbot:x.x.x` -
replace `x.x.x` with the [Release](https://github.com/gazbert/bxbot/releases) version of the bot you want to run, e.g.
`docker pull gazbert/bxbot:1.0.0`
1. Run the Docker container: `docker container run --name bxbot-x.x.x -it gazbert/bxbot:x.x.x bash`
1. Fetch the BX-bot image from [Docker Hub](https://hub.docker.com/r/gazbert/bxbot/): `docker pull gazbert/bxbot:1.0.0`
1. Run the Docker container: `docker container run --publish=8080:8080 --name bxbot-1.0.0 -it gazbert/bxbot:1.0.0 bash`
1. Change into the bot's directory: `cd bxbot*`
1. Configure the bot as described in step 4 of the previous [Maven](#maven) section.
1. Usage: `./bxbot.sh [start|stop|status]`
Expand Down

0 comments on commit 0ea9915

Please sign in to comment.