Add some readme and Dockerfile...

... to create a Theia snapshot image that comes with
Spring petclinic pre-installed and pre-built.
This commit is contained in:
Kris De Volder
2020-03-02 11:26:25 -08:00
parent 789a6c0e26
commit 2862515942
3 changed files with 25 additions and 0 deletions

View File

@@ -0,0 +1,3 @@
FROM kdvolder/sts4-theia-snapshot
ADD clone-and-build.sh /tmp/clone-and-build.sh
RUN /tmp/clone-and-build.sh

View File

@@ -0,0 +1,14 @@
Theai + Spring Petclinic layer
=============================
To build this docker image:
```
docker build -t kdvolder/theia-petclinic .
```
To run this
```
docker run -it --init -p 3000:3000 -p 8080:8080 kdvolder/theia-petclinic:latest
```

View File

@@ -0,0 +1,8 @@
#!/bin/bash
set -ev
mkdir /home/project
git clone https://github.com/spring-projects/spring-petclinic.git /home/project
cd /home/project
./mvnw clean package
rm -fr target
rm -fr /tmp/clone-and-build.sh