added H1 Dockerfile and doku
This commit is contained in:
@@ -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"]
|
||||||
@@ -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 <H1 Image ID>
|
||||||
|
|
||||||
|
### build new image from Dockerfile ###
|
||||||
|
docker build -t hisinone:<release> .
|
||||||
|
|
||||||
|
### push new image to registry ###
|
||||||
|
docker image tag distribution.his.de:5000/hisinone:<release> hisinone:<release>
|
||||||
|
docker push distribution:5000/hisinone:<release>
|
||||||
|
|
||||||
|
### deployment ###
|
||||||
|
docker pull distribution.his.de:5000/hisinone:<release>
|
||||||
|
docker run -d --name <containername> -p 8080:8080 distribution.his.de:5000/hisinone:<release>
|
||||||
|
|
||||||
|
### 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
|
||||||
Reference in New Issue
Block a user