mirror of
https://github.com/itzg/docker-minecraft-server
synced 2024-12-12 21:32:28 +00:00
Initial commit of what's needed up through spring-boot
This commit is contained in:
parent
4122ec9d71
commit
0999faad7a
7 changed files with 65 additions and 0 deletions
7
build
Executable file
7
build
Executable 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
12
gvm/Dockerfile
Normal 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
6
gvm/run
Executable file
|
@ -0,0 +1,6 @@
|
|||
#!/bin/bash
|
||||
|
||||
. /etc/profile.d/*
|
||||
. /.gvm/bin/gvm-init.sh
|
||||
|
||||
gvm $*
|
16
spring-boot/Dockerfile
Normal file
16
spring-boot/Dockerfile
Normal 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
9
spring-boot/app.groovy
Normal file
|
@ -0,0 +1,9 @@
|
|||
@RestController
|
||||
class ThisWillActuallyRun {
|
||||
|
||||
@RequestMapping("/")
|
||||
String home() {
|
||||
"Hello World!"
|
||||
}
|
||||
|
||||
}
|
5
spring-boot/run
Executable file
5
spring-boot/run
Executable file
|
@ -0,0 +1,5 @@
|
|||
#!/bin/bash
|
||||
|
||||
. /.gvm/bin/gvm-init.sh
|
||||
|
||||
spring $*
|
10
ubuntu-openjdk-7/Dockerfile
Normal file
10
ubuntu-openjdk-7/Dockerfile
Normal 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
|
Loading…
Reference in a new issue