Scripte zum Betrieb von SuperX in einem Docker Container
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

49 lines
1.7 KiB

# Verwenden von Ubuntu als Basisimage
FROM ubuntu:latest
# Installieren von notwendigen Paketen
RUN apt-get update && apt-get install -y curl tar openjdk-11-jdk postgresql-client locales ant git
RUN locale-gen de_DE.UTF-8
# Set environment variables
ENV LANG de_DE.UTF-8
ENV LANGUAGE de_DE:de
ENV LC_ALL de_DE.UTF-8
# Erstellen eines neuen Benutzers 'superx'
RUN useradd -m superx && echo "superx:superx" | chpasswd
# Wechseln zum Benutzer 'superx'
USER superx
WORKDIR /home/superx
# Herunterladen und Entpacken des Archivs in das Home-Verzeichnis des Benutzers 'superx'
RUN curl -L -O https://super-ics.de/superx/dist/kern5.0_superx_utf8_POSTGRES.tar.gz && \
tar -xzf kern5.0_superx_utf8_POSTGRES.tar.gz && \
rm kern5.0_superx_utf8_POSTGRES.tar.gz
COPY --chown=superx:superx SQL_ENV /home/superx/db/bin/SQL_ENV
RUN echo ". /home/superx/db/bin/SQL_ENV" >> .bashrc
ENV ANT_HOME /usr/share/ant
ENV COSTAGE_PFAD /home/superx/db/module/costage
RUN mkdir git && cd git && \
git clone https://git.campussource.de/git/SuperX/COSTAGE.git && \
cd COSTAGE && \
./rsync_to_superx.x && \
rm -rf /home/superx/git/*
# Verzeichnis unl fehlt, deshalb klappt costage_unload.x nicht
RUN mkdir /home/superx/db/module/costage/rohdaten/unl
#logging properties fehlen
COPY --chown=superx:superx logging.properties /home/superx/db/module/costage/rohdaten/
COPY --chown=superx:superx COSTAGE_ENV /home/superx/db/module/costage/rohdaten/COSTAGE_ENV
COPY --chown=superx:superx db-co.properties /home/superx/db/module/costage/rohdaten/db-co.properties
COPY --chown=superx:superx ojdbc8.jar /home/superx/webserver/tomcat/webapps/superx/WEB-INF/lib
COPY --chown=superx:superx db.properties /home/superx/webserver/tomcat/webapps/superx/WEB-INF/db.properties