Skip to content

Commit

Permalink
#169 - Updated Dockerfile + docs
Browse files Browse the repository at this point in the history
  • Loading branch information
gazbert committed Nov 10, 2024
1 parent f9a2a4a commit 1578a17
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
9 changes: 5 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
FROM eclipse-temurin:21.0.2_13-jdk
FROM eclipse-temurin:21-jdk

# Install editor for folks to play around with the config.
RUN apt-get update
RUN apt-get install -y maven
RUN apt-get install -y vim

COPY . bxbot-staging

WORKDIR ./bxbot-staging
RUN mvn clean package

RUN ./mvnw clean package
RUN cp ./bxbot-app/target/bxbot-app-*-dist.tar.gz /

WORKDIR /
Expand Down
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,10 @@ and evaluate the bot, Docker is the way to go.
1. Usage: `./bxbot.sh [start|stop|status]`
1. You can detach from the container and leave the bot running using the `CTRL-p` `CTRL-q` key sequence.
1. To re-attach to the Docker container, run `docker container ls` to get the CONTAINER ID.
Then run: `docker container attach <CONTAINER ID>`
Then run: `docker container attach <CONTAINER ID>`

You could modify the [Dockerfile](./Dockerfile) to make the bot cloud native, e.g. run in Kubernetes. The config could
be externalised using a Docker [volume](https://docs.docker.com/engine/storage/) mount.

## Build Guide
If you plan on developing the bot, you'll need JDK 21 installed on your dev box.
Expand Down

0 comments on commit 1578a17

Please sign in to comment.