Commit da3f6693 authored by Yann Garcia's avatar Yann Garcia
Browse files

Enhance MEC Dockerfile for Lewis integration

parent 9f1a642b
...@@ -14,9 +14,6 @@ export PATH=$PATH:$TTCN3_DIR/bin ...@@ -14,9 +14,6 @@ export PATH=$PATH:$TTCN3_DIR/bin
mkdir -p "$SRC_DIR" mkdir -p "$SRC_DIR"
cd "$SRC_DIR/.." || exit 1 cd "$SRC_DIR/.." || exit 1
echo "export TTCN3_DIR=$TTCN3_DIR" >> $HOME/.bashrc
echo "export PATH=\$PATH:\$TTCN3_DIR/bin" >> $HOME/.bashrc
# Install titan core # Install titan core
git clone --progress "$TITAN_REPO" || exit 1 git clone --progress "$TITAN_REPO" || exit 1
...@@ -32,6 +29,14 @@ EOF ...@@ -32,6 +29,14 @@ EOF
make && make install || exit 1 make && make install || exit 1
# To be compiant with build_ttcn3.bash
# TODO Refactor build_ttcn3.bash & devenv.bash
mv ${TTCN3_DIR} ${SRC_DIR}
export TTCN3_DIR=${SRC_DIR}/Install
echo "export TTCN3_DIR=$TTCN3_DIR" >> $HOME/.bashrc
echo "export PATH=\$PATH:\$TTCN3_DIR/bin" >> $HOME/.bashrc
# Install other repos # Install other repos
cd $SRC_DIR/.. || exit 1 cd $SRC_DIR/.. || exit 1
cat ${HOME}/etc/titan_repos.txt | grep -v -e '^\s*#' -e 'titan\.core' | while read REPO; do cat ${HOME}/etc/titan_repos.txt | grep -v -e '^\s*#' -e 'titan\.core' | while read REPO; do
...@@ -42,4 +47,4 @@ cat ${HOME}/etc/titan_repos.txt | grep -v -e '^\s*#' -e 'titan\.core' | while re ...@@ -42,4 +47,4 @@ cat ${HOME}/etc/titan_repos.txt | grep -v -e '^\s*#' -e 'titan\.core' | while re
fi fi
done done
exit 0 cd $HOME
...@@ -19,4 +19,4 @@ if wget --progress=dot:mega 'https://www.eclipse.org/downloads/download.php?file ...@@ -19,4 +19,4 @@ if wget --progress=dot:mega 'https://www.eclipse.org/downloads/download.php?file
rm -f TITAN_Designer_and_Executor_plugin.zip rm -f TITAN_Designer_and_Executor_plugin.zip
fi fi
exit 0 cd ${HOME}
...@@ -12,5 +12,3 @@ cd osip ...@@ -12,5 +12,3 @@ cd osip
make && sudo make install make && sudo make install
cd ${HOME} cd ${HOME}
exit 0
#!/bin/bash #!/bin/bash
#set -e
set -vx
echo -e "*****************************\n* Checkout STF569 sources\n*****************************\n" echo -e "*****************************\n* Checkout STF569 sources\n*****************************\n"
mkdir -p ${HOME}/dev && cd ${HOME}/dev || exit 1 mkdir -p ${HOME}/dev && cd ${HOME}/dev || exit 1
...@@ -11,13 +14,12 @@ cd /home/etsi/dev/STF569_Mec/ttcn/LibIts ...@@ -11,13 +14,12 @@ cd /home/etsi/dev/STF569_Mec/ttcn/LibIts
git checkout TTF0002 git checkout TTF0002
rm -fr asn1 t3q xsd rm -fr asn1 t3q xsd
cd ttcn && rm -fr BTP CAM Common DENM GeoNetworking Ipv6OverGeoNetworking IVIM MapemSpatem Pki Security SremSsem cd ttcn && rm -fr BTP CAM Common DENM GeoNetworking Ipv6OverGeoNetworking IVIM MapemSpatem Pki Security SremSsem
echo -e "*****************************\n* Set up environment\n*****************************\n"
cd /home/etsi/dev/STF569_Mec/scripts cd /home/etsi/dev/STF569_Mec/scripts
chmod 775 *.bash devenv.bash.*
cd /home/etsi
ln -sf /home/etsi/dev/STF569_Mec/scripts/devenv.bash.ubuntu /home/etsi/devenv.bash ln -sf /home/etsi/dev/STF569_Mec/scripts/devenv.bash.ubuntu /home/etsi/devenv.bash
ls -ltr /home/etsi
export HOME=/home/etsi
. /home/etsi/devenv.bash . /home/etsi/devenv.bash
set
echo -e "*****************************\n* Build Mec test suite\n*****************************\n"
cd /home/etsi/dev/STF569_Mec/scripts cd /home/etsi/dev/STF569_Mec/scripts
./update_mec_project.bash ./update_mec_project.bash
cd /home/etsi/dev/etsi_mec/src/AtsMec/objs cd /home/etsi/dev/etsi_mec/src/AtsMec/objs
...@@ -27,4 +29,3 @@ echo -e "*****************************\n* Init Eclipse Workspace\n************** ...@@ -27,4 +29,3 @@ echo -e "*****************************\n* Init Eclipse Workspace\n**************
mkdir -p ${HOME}/dev/Workspace/STF569/bin/ mkdir -p ${HOME}/dev/Workspace/STF569/bin/
cd ${HOME}/dev/Workspace/STF569 cd ${HOME}/dev/Workspace/STF569
exit 0
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment