Commit 573b404c authored by YannGarcia's avatar YannGarcia
Browse files

Add vagrant specific script

parent b86f443c
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -8,7 +8,7 @@
# TODO Use git clone in temporary directory
# TODO Use git clone in temporary directory


USER_NAME='s/vagrant/etsi/g'
USER_NAME='s/vagrant/etsi/g'
for i in `find /home/etsi/dev/TTF0002_Its -name "*.cf*"`
for i in `find /home/etsi/dev/$1_Its -name "*.cf*"`
do
do
  sed --in-place ${USER_NAME} $i
  sed --in-place ${USER_NAME} $i
done
done
+3 −3
Original line number Original line Diff line number Diff line
#!/bin/bash
#!/bin/bash


ECLIPSE_URL='https://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/2020-06/R/eclipse-jee-2020-06-R-linux-gtk-x86_64.tar.gz&r=1'
TITAN_URL='https://www.eclipse.org/downloads/download.php?file=/titan/TITAN_Designer_and_Executor_Plugin_7.1.0.zip&r=1'

#set -e
#set -e
set -vx
set -vx


echo -e "*****************************\n* Install eclipse\n*****************************\n"
echo -e "*****************************\n* Install eclipse\n*****************************\n"


ECLIPSE_URL='http://www.mirrorservice.org/sites/download.eclipse.org/eclipseMirror/technology/epp/downloads/release/2021-12/R/eclipse-cpp-2021-12-R-linux-gtk-x86_64.tar.gz'
TITAN_URL='https://www.eclipse.org/downloads/download.php?file=/titan/TITAN_Designer_and_Executor_plugin-8.1.0.zip'

mkdir -p ${HOME}/frameworks
mkdir -p ${HOME}/frameworks
cd ${HOME}/frameworks || exit 1
cd ${HOME}/frameworks || exit 1
wget --progress=dot:mega 'http://www.mirrorservice.org/sites/download.eclipse.org/eclipseMirror/technology/epp/downloads/release/2021-12/R/eclipse-cpp-2021-12-R-linux-gtk-x86_64.tar.gz' -Oeclipse-cpp-2021-12-R-linux-gtk-x86_64.tar.gz || exit 1
wget --progress=dot:mega 'http://www.mirrorservice.org/sites/download.eclipse.org/eclipseMirror/technology/epp/downloads/release/2021-12/R/eclipse-cpp-2021-12-R-linux-gtk-x86_64.tar.gz' -Oeclipse-cpp-2021-12-R-linux-gtk-x86_64.tar.gz || exit 1
+5 −1
Original line number Original line Diff line number Diff line
@@ -174,7 +174,7 @@ cd /home/vagrant/dev/TTF011_Its/scripts
. /home/vagrant/devenv.bash
. /home/vagrant/devenv.bash


# Build ATSs
# Build ATSs
cd /home/etsi/dev/TTF011_Its/scripts
cd /home/etsi/dev/TTF011_Its/
ATS_LIST="AtsCAM AtsDENM AtsGeoNetworking AtsPki AtsSecurity AtsIS"
ATS_LIST="AtsCAM AtsDENM AtsGeoNetworking AtsPki AtsSecurity AtsIS"
for i in ${ATS_LIST}
for i in ${ATS_LIST}
do
do
@@ -182,6 +182,10 @@ do
    make
    make
done
done


# Change user in cfg files
cd ${HOME}/dev/TTF011_Its/scripts
./update_user_name.sh TTF011_Its

# Build ETSI ITS certificate generation tools
# Build ETSI ITS certificate generation tools
cd /home/etsi/dev
cd /home/etsi/dev
git clone https://forge.etsi.org/rep/ITS/itscertgen.git ./itscertgen
git clone https://forge.etsi.org/rep/ITS/itscertgen.git ./itscertgen