Skip to content
This repository has been archived by the owner on Jun 3, 2019. It is now read-only.

Commit

Permalink
JBTM-2296. JacORB NS and Narayan JTS Dockerfiles
Browse files Browse the repository at this point in the history
  • Loading branch information
gytis committed Jan 19, 2015
1 parent b4c013c commit 73c0bb1
Show file tree
Hide file tree
Showing 4 changed files with 54 additions and 0 deletions.
18 changes: 18 additions & 0 deletions scripts/docker/jacorb-name-server/Dockerfile
@@ -0,0 +1,18 @@
FROM fedora
MAINTAINER Gytis Trikleris <gytis@redhat.com>
WORKDIR /home

ENV JACORB_VERSION 2.3.1
ENV JACORB_FILE_NAME jacorb-$JACORB_VERSION-bin.zip

RUN yum install -y java wget unzip ant \
&& wget http://www.jacorb.org/releases/$JACORB_VERSION/$JACORB_FILE_NAME \
&& unzip $JACORB_FILE_NAME \
&& cd jacorb-$JACORB_VERSION \
&& ant scripts

ENV PATH $PATH:/home/jacorb-$JACORB_VERSION/bin

ENTRYPOINT ns -Djacorb.net.server_socket_factory=org.jacorb.orb.factory.PortRangeServerSocketFactory \
-Djacorb.net.server_socket_factory.port.min=9999 -Djacorb.net.server_socket_factory.port.max=9999 \
-Djacorb.naming.ior_filename=/home/NS_Ref -Djacorb.log.default.verbosity=4
8 changes: 8 additions & 0 deletions scripts/docker/jacorb-name-server/readme.md
@@ -0,0 +1,8 @@
Build:
sudo docker build -t jacorb-ns .

Run:
sudo docker run -p 9999:9999 -it jacorb-ns

Test with NMG:
nmg -ORBInitRef NameService=corbaloc::{Docker IP address}:9999/StandardNS/NameServer-POA/_root
17 changes: 17 additions & 0 deletions scripts/docker/jts/Dockerfile
@@ -0,0 +1,17 @@
FROM fedora
MAINTAINER Gytis Trikleris <gytis@redhat.com>
WORKDIR /home

ENV NARAYANA_VERSION 5.0.4.Final
ENV NARAYANA_HOME /home/narayana-full-$NARAYANA_VERSION

RUN yum install -y java wget unzip \
&& wget http://www.jboss.org/jbosstm/downloads/$NARAYANA_VERSION/binary/narayana-full-$NARAYANA_VERSION-bin.zip \
&& unzip narayana-full-$NARAYANA_VERSION-bin.zip \
&& cp $NARAYANA_HOME/etc/default-jts-jbossts-properties.xml $NARAYANA_HOME/etc/jbossts-properties.xml \
&& sed -i 's/CONFIGURATION_FILE/NAME_SERVICE/g' $NARAYANA_HOME/etc/jbossts-properties.xml

ENV JAVA_HOME /etc/alternatives/java_sdk

ENTRYPOINT source $NARAYANA_HOME/jts-jacorb-setup-env.sh; $NARAYANA_HOME/bin/start-recovery-manager.sh \
& $JAVA_HOME/bin/java com.arjuna.ats.jts.TransactionServer -test -ORBInitRef.NameService=corbaloc::$NAME_SERVER_IP:$NAME_SERVER_PORT/StandardNS/NameServer-POA/_root
11 changes: 11 additions & 0 deletions scripts/docker/jts/readme.md
@@ -0,0 +1,11 @@
Build:
sudo docker build -t narayana-jts .

Run:
sudo docker run -it -e NAME_SERVER_IP={enter ip here} -e NAME_SERVER_PORT={enter port here} narayana-jts

If name server is running in the docker image locally, then:
check ip address via "ip addr"
port is the one you set during the launch of the name server (in the example it is 9999)

Test:

0 comments on commit 73c0bb1

Please sign in to comment.