Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
FROM maven:3-jdk-8-alpine

RUN addgroup -g 1000 shouty \
&& adduser -u 1000 -G shouty -s /bin/bash -D shouty

USER shouty

WORKDIR /shouty.java
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,18 @@ In IntelliJ

Then browse to the `pom.xml` file in the directory where you downloaded `shouty.java` and open the pom file. The project should now load.

## Using Docker

To get a command line shell for shouty, with Java and Maven, run `runDocker.sh`

If you are running Linux or Mac OS with [XQuartz](https://www.xquartz.org/), you can get an Eclipse IDE running using `./eclipse`

In Eclipse:

`File > Import > Existing Maven Project`

Then browse to `/workspace` directory.

## Run the tests

In Eclipse:
Expand Down
7 changes: 7 additions & 0 deletions eclipse
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
docker run -ti --rm \
-e DISPLAY=$DISPLAY \
-v /tmp/.X11-unix:/tmp/.X11-unix \
-v `pwd`:/workspace \
fgrehm/eclipse:v4.4.1

# -v `pwd`/.eclipse-docker:/home/developer \
5 changes: 5 additions & 0 deletions runDocker.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash

docker build . -t shouty.java

docker run -it -v `pwd`:/shouty.java shouty.java /bin/bash