Initial commit of what's needed up through spring-boot

This commit is contained in:
Linux User 2014-05-17 22:36:31 +00:00
parent 4122ec9d71
commit 0999faad7a
7 changed files with 65 additions and 0 deletions

7
build Executable file
View file

@ -0,0 +1,7 @@
pkgs="ubuntu-openjdk-7 gvm spring-boot"
for p in $pkgs
do
docker build -t itzg/$p $p
done

12
gvm/Dockerfile Normal file
View file

@ -0,0 +1,12 @@
FROM itzg/ubuntu-openjdk-7
MAINTAINER itzg
RUN apt-get install -y curl unzip
RUN curl -s get.gvmtool.net | bash
ADD run /run
ONBUILD RUN ["/run", "selfupdate"]
ENTRYPOINT ["/run"]

6
gvm/run Executable file
View file

@ -0,0 +1,6 @@
#!/bin/bash
. /etc/profile.d/*
. /.gvm/bin/gvm-init.sh
gvm $*

16
spring-boot/Dockerfile Normal file
View file

@ -0,0 +1,16 @@
FROM itzg/gvm
MAINTAINER itzg
RUN ["/run", "install", "springboot"]
ADD run /run
ENTRYPOINT ["/run"]
VOLUME ["/home/spring"]
ADD app.groovy /home/spring/app.groovy
EXPOSE 8080
WORKDIR /home/spring
CMD ["run", "app.groovy"]

9
spring-boot/app.groovy Normal file
View file

@ -0,0 +1,9 @@
@RestController
class ThisWillActuallyRun {
@RequestMapping("/")
String home() {
"Hello World!"
}
}

5
spring-boot/run Executable file
View file

@ -0,0 +1,5 @@
#!/bin/bash
. /.gvm/bin/gvm-init.sh
spring $*

View file

@ -0,0 +1,10 @@
FROM ubuntu:trusty
MAINTAINER itzg
ENV BUILT_ON 20140517
RUN apt-get update
RUN apt-get install -y openjdk-7-jre-headless
ENV JAVA_HOME /usr/lib/jvm/java-7-openjdk-amd64