This commit is contained in:
gobbo_a
2017-08-08 18:55:19 +02:00
parent e6b10fbded
commit b87d4a50f8
5 changed files with 31 additions and 0 deletions

12
docker/Dockerfile Normal file
View File

@@ -0,0 +1,12 @@
FROM docker.psi.ch:5000/busybox_java
#COPY ./pshell-1.7.0-fat.jar /pshell/
RUN cd /
RUN mkdir pshell
RUN cd /pshell
RUN wget -O /pshell/pshell-1.7.0-fat.jar http://artifacts.psi.ch/artifactory/releases/ch/psi/pshell/1.7.0/pshell-1.7.0-fat.jar --no-check-certificate
#RUN ls /pshell
#COPY ./home/ /pshell/home/
EXPOSE 5000-10000
CMD ls -al /pshell/home/log; while true; do echo "Starting";java -Djava.awt.headless=true -jar /pshell/pshell-1.7.0-fat.jar -v -home=/pshell/home -clog=FINE; done

6
docker/build.sh Normal file
View File

@@ -0,0 +1,6 @@
#!/bin/bash
VERSION=1.7.0
docker build --no-cache=true -t docker.psi.ch:5000/pshell_server .
docker tag docker.psi.ch:5000/pshell_server docker.psi.ch:5000/pshell_server:$VERSION
docker push docker.psi.ch:5000/pshell_server:$VERSION
docker push docker.psi.ch:5000/pshell_server

3
docker/start.sh Normal file
View File

@@ -0,0 +1,3 @@
#!/bin/bash
docker run --network="host" --name pshellsrv -v /home/gobbo/docker/home:/pshell/home -v /etc/timezone:/etc/timezone:ro -v /etc/localtime:/etc/localtime:ro docker.psi.ch:5000/pshell_server &

3
docker/stop.sh Normal file
View File

@@ -0,0 +1,3 @@
#!/bin/bash
docker stop pshellsrv
docker rm pshellsrv

7
docker/wb.sh Normal file
View File

@@ -0,0 +1,7 @@
#!/bin/bash
wget -O ./pshell-1.7.0-fat.jar http://artifacts.psi.ch/artifactory/releases/ch/psi/pshell/1.7.0/pshell-1.7.0-fat.jar --no-check-certificate
java -jar ./pshell-1.7.0-fat.jar -o -dlaf
rm ./pshell-1.7.0-fat.jar