This repository has been archived by the owner on Jun 3, 2019. It is now read-only.
forked from jbosstm/narayana
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
JBTM-2296. JacORB NS and Narayan JTS Dockerfiles
- Loading branch information
gytis
committed
Jan 19, 2015
1 parent
b4c013c
commit 73c0bb1
Showing
4 changed files
with
54 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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: |