Hi all,
I am new to Syncope and I am running into a problem. My goal is to
get Syncope up and running in Kubernetes. I am pretty close (after a
couple hiccups) but unfortunately I don't have the swagger UI as I would
expect. I would be happy to contribute back this configuration once I have
it working (if anyone is interested).
I think that I am missing something fundamental about syncope though. What
do I need to do in the deb install to get swagger and REST access working?
I am getting 404 errors when I try to hit the REST endpoint (
http://hostname:8080/syncope/rest).
Below is my docker file that I am using to build my image. Any help would
be appreciated.
Craig
FROM ubuntu:16.04
RUN set -x && apt-get update
#######################
# #
# PREPARE ENVIRONMENT #
# #
#######################
RUN apt-get -y install tomcat8 libpostgresql-jdbc-java postgresql
postgresql-client openjdk-8-jre
# Clean apt
#RUN rm -rf /var/lib/apt/lists/*
RUN apt-get update && \
apt-get upgrade -y && \
apt-get clean -y && \
apt-get autoclean -y && \
apt-get autoremove -y && \
rm -rf /usr/share/locale/* && \
rm -rf /var/cache/debconf/*-old && \
rm -rf /var/lib/apt/lists/* && \
rm -rf /usr/share/doc/*
# Use the PostgreSQL JDBC driver with Tomcat
RUN ln -s /usr/share/java/postgresql-jdbc4.jar /usr/share/tomcat8/lib/
#Get correct Java opts for Tomcat
COPY tomcat8 /etc/default/
COPY startSyncope.sh /
RUN chmod +x /startSyncope.sh
#######################
# #
# INSTALL SYNCOPE #
# #
#######################
# Download Apache Syncope debs
WORKDIR /
ADD http://apache.claz.org/syncope/2.0.6/apache-syncope-2.0.6.deb
apache-syncope-2.0.6.deb
ADD http://apache.claz.org/syncope/2.0.6/apache-syncope-enduser-2.0.6.deb
apache-syncope-enduser-2.0.6.deb
ADD http://apache.claz.org/syncope/2.0.6/apache-syncope-console-2.0.6.deb
apache-syncope-console-2.0.6.deb
RUN service tomcat8 stop
#Install Apache Syncope from debs
RUN dpkg -i apache-syncope-*.deb
COPY provisioning.properties /etc/apache-syncope/provisioning.properties
COPY domains/ /etc/apache-syncope/domains
COPY enduser.properties /etc/apache-syncope/enduser.properties
COPY console.properties /etc/apache-syncope/console.properties
EXPOSE 8080
CMD ["/startSyncope.sh"]