diff --git a/HISinOne/Dockerfile b/HISinOne/Dockerfile new file mode 100644 index 0000000..7bcd3aa --- /dev/null +++ b/HISinOne/Dockerfile @@ -0,0 +1,19 @@ +FROM tomcat:9.0.87-jdk17-temurin-jammy + +LABEL COMPANY="HIS eG" +LABEL MAINTAINER=”it-server@his.de” +LABEL APPLICATION="HISinOne 2023.12" + +ENV CATALINA_OPTS="-Xms1024m -Xmx4096m -XX:MetaspaceSize=512m -XX:MaxMetaspaceSize=512m -Xss512k" + +ADD server.xml /usr/local/tomcat/conf/ +ADD catalina.properties /usr/local/tomcat/conf/ +ADD .classpath /usr/local/tomcat/webapps/ +ADD .externalToolBuilders /usr/local/tomcat/webapps/.externalToolBuilders/ +ADD .project /usr/local/tomcat/webapps/ +ADD qisserver /usr/local/tomcat/webapps/qisserver/ +ADD ROOT /usr/local/tomcat/webapps/ROOT/ +ADD superx /usr/local/tomcat/webapps/superx/ + +EXPOSE 8080 +ENTRYPOINT ["catalina.sh", "run"] \ No newline at end of file diff --git a/HISinOne/README.md b/HISinOne/README.md new file mode 100644 index 0000000..2df6bc9 --- /dev/null +++ b/HISinOne/README.md @@ -0,0 +1,42 @@ +## Usage ## + +BE CAREFUL! THIS IS ALL WORK IN PROGRESS + +### unpack H1 release ### +* unzip H1-CS-CM-RM.zip and move the files to file structure + +- hisinone + |- .classpath + |- .externalToolBuilders + |- .project + |- qisserver + |- ROOT + |- superx + +* create server.xml and catalina.properties and add them to folder +* add Dockerfile to folder + +### check for existing image an delete it ### +docker image ls +docker image rm -f

+ +### build new image from Dockerfile ### +docker build -t hisinone: . + +### push new image to registry ### +docker image tag distribution.his.de:5000/hisinone: hisinone: +docker push distribution:5000/hisinone: + +### deployment ### +docker pull distribution.his.de:5000/hisinone: +docker run -d --name -p 8080:8080 distribution.his.de:5000/hisinone: + +### to-do ### +* add persistant volume config to Dockerfile to overwrite configuration +* create docker-compose file +* add postgresql container to docker-compose and link it with H1 container +* create network for docker-compose / docker H1 environment +* add apache/nginx container with config for H1 environment +* convert H1 docker environment to kubernetes +* add HA and cluster config for kubernetes H1 environment +* rollout tests in kubernetes test cluster \ No newline at end of file