hans@901: \subsection{Artifact-Server} hans@901: Aim/Task: see above hans@901: hans@901: \subsubsection*{Installation} hans@901: Running the server with its own user: hans@901: \verb+ # adduser artifacts+ hans@901: hans@901: Prepare infrastructure for logging hans@901: \begin{lstlisting} hans@901: cd /var/log hans@901: mkdir artifacts hans@901: chmod 770 artifacts hans@901: chmod g+s artifacts hans@901: \end{lstlisting} hans@901: hans@901: Integrate software of artefact-server into filesystem hans@901: cd /opt hans@901: tar xfvj /root/artifact-server-\$VERSION.tar.bz2 hans@901: ln -s artifact-server-\$VERSION artifact-server hans@901: cd artifact-server hans@901: hans@901: Setting the access rights hans@901: bin/setup.sh hans@901: hans@901: Configure connection to database hans@901: cd /opt/artefact-server hans@901: vim conf/arcsdeconnectionpool.properties hans@901: hans@901: in conf/arcsdeconnectionpool.properties do: hans@901: \begin{lstlisting} hans@901: server=xyz.server.com hans@901: username=guest hans@901: credentials=XYZ hans@901: port=5151 hans@901: database=esri_sde hans@901: \end{lstlisting} hans@901: hans@901: Configure address for finding the WMS-Server hans@902: % FIXME hans@902: hans@902: Configure secret for signing artifacts hans@902: % FIXME hans@901: hans@901: Adapt TCP-port of artefact-server hans@901: cd /opt/artefact-server hans@901: vim conf/conf.xml hans@901: hans@901: in conf.conf.xml: hans@901: adapt value of the element \verb+ rest-server/port+ (default: 8181) hans@901: hans@901: Integrate Artefact-Server in Init-Process of Operating System hans@901: mv /opt/artefact-server/bin/debian/artefact-server /etc/init.d/ hans@901: cd /etc/init.d hans@901: chmod +x artifact-server hans@901: update-rc.d artifact-server defaults hans@901: hans@901: FIXME: Setting up credential for signing project files. hans@901: hans@901: The installation of the artefact-server is finished. It can be tested hans@901: now. hans@901: hans@901: \subsubsection*{Test of the Installation} hans@901: Start the server: hans@901: /etc/init.d/artefact-server start hans@901: hans@901: 1. Operating System: Check if the process of the server is running hans@901: \verb+jps+ hans@901: hans@901: list of java processes: hans@901: \begin{lstlisting} hans@901: 19252 hans@901: 19509 Jps hans@901: 19441 App hans@901: \end{lstlisting} hans@901: hans@901: \verb+ cat /var/run/artefact-server+ hans@901: hans@901: Task: Compare the running process numbers hans@901: hans@901: 2. Network: Check if the artefact-server opens a TCP-port (default: 8181) hans@901: netstat -nltp hans@901: hans@901: Check for an entry like hans@901: tcp 0 0 127.0.0.1:8181 0.0.0.0:* LISTEN 18648/java hans@901: hans@901: 3. Artefact-Server ready for communication with client hans@901: wget -qO- http://localhost:8181/factories hans@901: hans@901: Task: Check for a XML-document describing a possible FIS hans@901: hans@901: hans@901: \subsubsection*{Deinstallation} hans@901: Stop server process: hans@901: /etc/init.d/artefact-server stop hans@901: hans@901: Remove integration in INIT-process: hans@901: rm -fi /etc/init.d/artefact-server hans@901: update-rc.d artefact-server remove hans@901: hans@901: Remove Binaries, Configuration, Caches, Artefact-Database: hans@901: rm -rfi /opt/artefact-server hans@901: rm -rfi /opt/artefact-server-\$VERSION hans@901: hans@901: Remove logging directories hans@901: rm -rfi /var/log/artifacts