From d853579b14af86dc54ebd8a73d2566fb7c11dd86 Mon Sep 17 00:00:00 2001 From: Chris Long Date: Thu, 15 Feb 2018 09:57:52 -0800 Subject: [PATCH] Remove git clone from automated_install.sh --- .circleci/config.yml | 5 +++++ ci/automated_install.sh | 5 ----- ci/automated_install_vagrant_only.sh | 4 ---- 3 files changed, 5 insertions(+), 9 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 1d2ba29..18c1f57 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -28,6 +28,11 @@ jobs: curl -X GET --header 'Accept: application/json' --header 'X-Auth-Token: '"$PACKET_API_TOKEN" "https://api.packet.net/devices/$DEVICE_ID/ips" > /tmp/ip_info; - run: cat /tmp/ip_info | jq ."ip_addresses[0].address" | tr -d '"' > /tmp/ip_address - run: cd ~/repo + - run: + name: Copying DetectionLab repo to Packet server + command: | + export IP_ADDRESS=$(cat /tmp/ip_address); + scp -ir ~/.ssh/id_rsa ~/repo root@"$IP_ADDRESS":/opt/DetectionLab - run: name: Copying install script to Packet server command: | diff --git a/ci/automated_install.sh b/ci/automated_install.sh index 09cd190..30a64a6 100644 --- a/ci/automated_install.sh +++ b/ci/automated_install.sh @@ -35,11 +35,6 @@ wget https://releases.hashicorp.com/packer/1.1.3/packer_1.1.3_linux_amd64.zip unzip packer_1.1.3_linux_amd64.zip cp packer /usr/local/bin/packer -# Clone DetectionLab -cd /opt -git clone https://github.com/clong/DetectionLab.git -cd /opt/DetectionLab/Packer - # Make the packer images headless for file in $(ls *.json); do sed -i 's/"headless": false,/"headless": true,/g' "$file"; diff --git a/ci/automated_install_vagrant_only.sh b/ci/automated_install_vagrant_only.sh index 112c81c..e317927 100644 --- a/ci/automated_install_vagrant_only.sh +++ b/ci/automated_install_vagrant_only.sh @@ -28,10 +28,6 @@ wget https://releases.hashicorp.com/vagrant/2.0.1/vagrant_2.0.1_x86_64.deb dpkg -i vagrant_2.0.1_x86_64.deb vagrant plugin install vagrant-reload -# Clone DetectionLab -cd /opt -git clone https://github.com/clong/DetectionLab.git - # Make the Vagrant instances headless cd /opt/DetectionLab/Vagrant sed -i 's/vb.gui = true/vb.gui = false/g' Vagrantfile