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:
3
concourse/petclinic-theia-image/Dockerfile
Normal file
3
concourse/petclinic-theia-image/Dockerfile
Normal 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
|
||||
14
concourse/petclinic-theia-image/README.md
Normal file
14
concourse/petclinic-theia-image/README.md
Normal 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
|
||||
```
|
||||
8
concourse/petclinic-theia-image/clone-and-build.sh
Executable file
8
concourse/petclinic-theia-image/clone-and-build.sh
Executable 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
|
||||
Reference in New Issue
Block a user