openboxes icon indicating copy to clipboard operation
openboxes copied to clipboard

Doc installation instractions

Open kouimtzisSA opened this issue 2 years ago • 1 comments

Needed to update Ubuntu installation instructions

kouimtzisSA avatar May 17 '23 10:05 kouimtzisSA


FROM ubuntu:20.04
#COPY zulu7.56.0.11-ca-jdk7.0.352-linux_amd64.deb /tmp
#RUN dpkg -i /tmp/zulu7.56.0.11-ca-jdk7.0.352-linux_amd64.deb
RUN     apt-get update && \
        apt install -y gnupg ca-certificates curl && \
        curl -s https://repos.azul.com/azul-repo.key | gpg --dearmor -o /usr/share/keyrings/azul.gpg && \
        echo "deb [signed-by=/usr/share/keyrings/azul.gpg] https://repos.azul.com/zulu/deb stable main" | tee /etc/apt/sources.list.d/zulu.list
RUN apt update
RUN apt install -y zulu7-jdk

####################AZUL INSTALLATION DONE###########################

RUN apt-get install -f unzip

RUN     cd /tmp && \
        curl -LO https://archive.apache.org/dist/tomcat/tomcat-8/v8.5.88/bin/apache-tomcat-8.5.88.zip && \
        unzip apache-tomcat-8.5.88.zip && \
        mv /tmp/apache-tomcat-8.5.88 /tomcat && \
        chmod a+x /tomcat/bin/catalina.sh && \
        chown -R 1001:0 /tomcat/bin/catalina.sh && \
        chmod -R g+rw /tomcat/ && \
        mkdir -p /config/.grails && \
        chown -R 1001:0 /config && \
        chmod -R g+rw /config

RUN curl -L -o /tomcat/webapps/openboxes.war https://github.com/openboxes/openboxes/releases/download/v0.8.22/openboxes.war

ENV JAVA_OPTS="$JAVA_OPTS -Xss8m -Xms256m -Xmx4096m -XX:MaxPermSize=256M" HOME="/config"
USER 1001
CMD ["/tomcat/bin/catalina.sh","run"]

Since the provided docker file did not work out for me, this is what we're currently using to build the latest version inside our openshift-cluster and deploy it there.

volkermauel avatar May 18 '23 10:05 volkermauel