Accueil‎ > ‎

OpenAM Kubernetes Deployment Tips

posted 9 May 2019, 05:37 by Christophe Noël
It looks that the Open Source version of OpenAM is significantly less available and document than before. Thefore, one of the missing information is about how to easily deploy the open source version in a Kubernetes cluster.

I review only the main critical point for easing your porting to Kubernetes.

# Start from a Tomcat Container (you could use a version 8 instead)
FROM tomcat:7-jre8

# Expose the usual port (your ingress or loadbalancer will expose 80 / 443)
EXPOSE 8080
EXPOSE 8443

# Download the configurator (version 13 in this example)

RUN mkdir /var/tmp/ssoconfig/ && \
  cd /var/tmp/ssoconfig && \
  wget https://github.com/OpenRock/OpenAM/releases/download/13.0.0/SSOConfiguratorTools-13.0.0.zip && \
  unzip SSOConfiguratorTools-13.0.0.zip && \
  rm /var/tmp/ssoconfig/*.zip

# Download OpenAM from the OpenRock repositories

RUN wget https://github.com/OpenRock/OpenAM/releases/download/12.0.0-1/OpenAM-12.0.0-1.zip && \
   unzip *.zip && \
    mv OpenAM-12.0.0-1.war $CATALINA_HOME/webapps/openam.war && \
    rm -rf *.zip 

# Copy the script detailed further
ADD run /var/tmp/

/tmp-tomcat

ADD setenv.sh /tmp-tomcat/bin

CMD ["/var/tmp/run"]

Comments