--- /dev/null
+FROM openjdk:8-jdk-alpine
+
+RUN apk add --update --no-cache bash procps maven git \
+ && mkdir /opt/sims \
+ && cd /root \
+ && git clone -b master https://git.opendaylight.org/gerrit/transportpce \
+ && cd transportpce/tests \
+ && ./buildHoneynode.sh 2.2.1\
+ && mv honeynode/2.2.1 /opt/sims/honeynode \
+ && echo -e '#/bin/sh\n\ncd /opt/sims\n./honeynode/honeynode-distribution/target/honeynode-distribution-1.18.01-hc/honeynode-distribution-1.18.01/honeycomb-tpce $@\n'>/usr/bin/honeynode \
+ && chmod +x /usr/bin/honeynode \
+ && mv sample_configs/ /opt/sims/ \
+ && cd ../.. \
+ && rm -rf transportpce/ .m2/ \
+ && apk del git maven
+
+#CMD honeynode 830 sample_configs/openroadm/2.2.1/oper-ROADMA.xml
#!/bin/bash
-cp Dockerfile.orig Dockerfile
+cp Dockerfile.orig.21 Dockerfile
sudo docker build --tag=alpine_honeynode:2.1 .
for conf_file in `(cd ../.. && ls sample_configs/openroadm/2.1/)`
do DOCKNAME=honeynode_`echo $conf_file |cut -d\. -f1 |tr '[:upper:]' '[:lower:]'`
--- /dev/null
+#!/bin/bash
+
+cp Dockerfile.orig.221 Dockerfile
+sudo docker build --tag=alpine_honeynode:2.2.1 .
+for conf_file in `(cd ../.. && ls sample_configs/openroadm/2.2.1/)`
+do DOCKNAME=honeynode_`echo $conf_file |cut -d\. -f1 |tr '[:upper:]' '[:lower:]'`
+ echo "generating docker image '$DOCKNAME'"
+ echo -e "FROM alpine_honeynode:2.2.1\n\nCMD honeynode 830 sample_configs/openroadm/2.2.1/$conf_file\n" >Dockerfile
+ sudo docker build --tag=$DOCKNAME:2.2.1 .
+done
+++ /dev/null
-#!/bin/sh
-
-echo `sudo docker run -d -p 17830:830 honeynode_oper-roadma:2.1`>>sims.pid
-echo `sudo docker run -d -p 17840:830 honeynode_oper-roadma-full:2.1`>>sims.pid
-echo `sudo docker run -d -p 17831:830 honeynode_oper-xpdra:2.1`>>sims.pid
-echo `sudo docker run -d -p 17833:830 honeynode_oper-roadmc:2.1`>>sims.pid
-echo `sudo docker run -d -p 17843:830 honeynode_oper-roadmc-full:2.1`>>sims.pid
-echo `sudo docker run -d -p 17834:830 honeynode_oper-xpdrc:2.1`>>sims.pid
-
-echo -n "#!/bin/sh\n\nsudo docker container kill "`cat sims.pid`" \n" >kill_sims.sh
-chmod +x kill_sims.sh
--- /dev/null
+#!/bin/sh
+
+echo "killing previous sims containers"
+if [ -f kill_sims21.sh ]; then ./kill_sims21.sh; rm sims21.pid kill_sims21.sh; else echo "nothing to do"; fi
+
+echo `sudo docker run -d -p 17830:830 honeynode_oper-xpdra:2.1`>>sims21.pid
+echo `sudo docker run -d -p 17831:830 honeynode_oper-roadma:2.1`>>sims21.pid
+echo `sudo docker run -d -p 17832:830 honeynode_oper-roadmb:2.1`>>sims21.pid
+echo `sudo docker run -d -p 17833:830 honeynode_oper-roadmc:2.1`>>sims21.pid
+echo `sudo docker run -d -p 17834:830 honeynode_oper-xpdrc:2.1`>>sims21.pid
+echo `sudo docker run -d -p 17821:830 honeynode_oper-roadma-full:2.1`>>sims21.pid
+echo `sudo docker run -d -p 17823:830 honeynode_oper-roadmc-full:2.1`>>sims21.pid
+
+echo -n "#!/bin/sh\n\nsudo docker container kill "`cat sims21.pid`" \n" >kill_sims21.sh
+chmod +x kill_sims21.sh
--- /dev/null
+#!/bin/sh
+
+echo "killing previous sims containers"
+if [ -f kill_sims221.sh ]; then ./kill_sims221.sh; rm sims221.pid kill_sims221.sh; else echo "nothing to do"; fi
+
+echo `sudo docker run -d -p 17840:830 honeynode_oper-xpdra:2.2.1`>>sims221.pid
+echo `sudo docker run -d -p 17841:830 honeynode_oper-roadma:2.2.1`>>sims221.pid
+#echo `sudo docker run -d -p 17842:830 honeynode_oper-roadmb:2.2.1`>>sims221.pid
+echo `sudo docker run -d -p 17843:830 honeynode_oper-roadmc:2.2.1`>>sims221.pid
+echo `sudo docker run -d -p 17844:830 honeynode_oper-xpdrc:2.2.1`>>sims221.pid
+
+echo -n "#!/bin/sh\n\nsudo docker container kill "`cat sims221.pid`" \n" >kill_sims221.sh
+chmod +x kill_sims221.sh
if os.path.isfile(executable):
with open('honeynode2.log', 'w') as outfile:
cls.honeynode_process2 = subprocess.Popen(
- [executable, "17831", "sample_configs/openroadm/2.1/oper-ROADMA-full.xml"],
+ [executable, "17821", "sample_configs/openroadm/2.1/oper-ROADMA-full.xml"],
stdout=outfile)
@classmethod
if os.path.isfile(executable):
with open('honeynode3.log', 'w') as outfile:
cls.honeynode_process3 = subprocess.Popen(
- [executable, "17833", "sample_configs/openroadm/2.1/oper-ROADMC-full.xml"],
+ [executable, "17823", "sample_configs/openroadm/2.1/oper-ROADMC-full.xml"],
stdout=outfile)
@classmethod
"netconf-node-topology:username": "admin",
"netconf-node-topology:password": "admin",
"netconf-node-topology:host": "127.0.0.1",
- "netconf-node-topology:port": "17831",
+ "netconf-node-topology:port": "17821",
"netconf-node-topology:tcp-only": "false",
"netconf-node-topology:pass-through": {}}]}
headers = {'content-type': 'application/json'}
"netconf-node-topology:username": "admin",
"netconf-node-topology:password": "admin",
"netconf-node-topology:host": "127.0.0.1",
- "netconf-node-topology:port": "17833",
+ "netconf-node-topology:port": "17823",
"netconf-node-topology:tcp-only": "false",
"netconf-node-topology:pass-through": {}}]}
headers = {'content-type': 'application/json'}
if os.path.isfile(executable):
with open('honeynode2.log', 'w') as outfile:
cls.honeynode_process2 = subprocess.Popen(
- [executable, "17831", "sample_configs/openroadm/2.1/oper-ROADMA-full.xml"],
+ [executable, "17821", "sample_configs/openroadm/2.1/oper-ROADMA-full.xml"],
stdout=outfile)
@classmethod
if os.path.isfile(executable):
with open('honeynode3.log', 'w') as outfile:
cls.honeynode_process3 = subprocess.Popen(
- [executable, "17833", "sample_configs/openroadm/2.1/oper-ROADMC-full.xml"],
+ [executable, "17823", "sample_configs/openroadm/2.1/oper-ROADMC-full.xml"],
stdout=outfile)
@classmethod
def __start_honeynode4(cls):
"netconf-node-topology:username": "admin",
"netconf-node-topology:password": "admin",
"netconf-node-topology:host": "127.0.0.1",
- "netconf-node-topology:port": "17831",
+ "netconf-node-topology:port": "17821",
"netconf-node-topology:tcp-only": "false",
"netconf-node-topology:pass-through": {}}]}
headers = {'content-type': 'application/json'}
"netconf-node-topology:username": "admin",
"netconf-node-topology:password": "admin",
"netconf-node-topology:host": "127.0.0.1",
- "netconf-node-topology:port": "17833",
+ "netconf-node-topology:port": "17823",
"netconf-node-topology:tcp-only": "false",
"netconf-node-topology:pass-through": {}}]}
headers = {'content-type': 'application/json'}
if os.path.isfile(executable):
with open('honeynode1.log', 'w') as outfile:
cls.honeynode_process1 = subprocess.Popen(
- [executable, "17830", "sample_configs/openroadm/2.1/oper-ROADMA.xml"],
+ [executable, "17831", "sample_configs/openroadm/2.1/oper-ROADMA.xml"],
stdout=outfile)
@classmethod
if os.path.isfile(executable):
with open('honeynode2.log', 'w') as outfile:
cls.honeynode_process2 = subprocess.Popen(
- [executable, "17831", "sample_configs/openroadm/2.1/oper-XPDRA.xml"],
+ [executable, "17830", "sample_configs/openroadm/2.1/oper-XPDRA.xml"],
stdout=outfile)
@classmethod
"netconf-node-topology:username": "admin",
"netconf-node-topology:password": "admin",
"netconf-node-topology:host": "127.0.0.1",
- "netconf-node-topology:port": "17830",
+ "netconf-node-topology:port": "17831",
"netconf-node-topology:tcp-only": "false",
"netconf-node-topology:pass-through": {}}]}
headers = {'content-type': 'application/json'}
"netconf-node-topology:username": "admin",
"netconf-node-topology:password": "admin",
"netconf-node-topology:host": "127.0.0.1",
- "netconf-node-topology:port": "17831",
+ "netconf-node-topology:port": "17830",
"netconf-node-topology:tcp-only": "false",
"netconf-node-topology:pass-through": {}}]}
headers = {'content-type': 'application/json'}