Hi Craig,
I don't know much about Kubernetes, but here are some hints about your
setup.
After installing deb packages [1], the following URLs [2] are available.
Moreover, consider that
http://hostname:8080/syncope/rest
is only the base URL for REST services, it is normal to get 404 there;
if you really want to get some output, use
http://hostname:8080/syncope/rest/services
which is the standard page generated by CXF (not very fancy, anyway...)
If
http://hostname:8080/syncope/swagger
does not provide you the fancy Swagger UI, look at logs under
/var/lib/apache-syncope and report, please.
HTH
Regards.
[1] https://syncope.apache.org/docs/getting-started.html#debian-packages
[2] https://syncope.apache.org/docs/getting-started.html#deb-components
On 05/12/2017 07:43, Craig Martin wrote:
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"]
--
Francesco Chicchiriccò
Tirasa - Open Source Excellence
http://www.tirasa.net/
Member at The Apache Software Foundation
Syncope, Cocoon, Olingo, CXF, OpenJPA, PonyMail
http://home.apache.org/~ilgrosso/