Skip to content

Commit

Permalink
Add Docker engine installation script (#1060)
Browse files Browse the repository at this point in the history
* Update runSpider container version

* Update install docker script

* Add install docker to mcis script
  • Loading branch information
seokho-son authored Apr 8, 2022
1 parent 9fd0955 commit 33db6bc
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 12 deletions.
23 changes: 12 additions & 11 deletions scripts/installDocker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,19 @@ echo
echo "Will run the following command (the script needs to be executed with sudo)"
echo "1) sudo apt update -y"
echo "2) wget -qO- get.docker.com | sh"
echo "3) sudo docker info"
echo "3) sudo docker -v"

# Install Docker engine
# update
echo == apt update
sudo apt update -y
# Check Docker engine
if ! sudo docker -v 2>&1; then
# update
echo "[apt update]"
sudo apt update -y

echo == install Docker engine
sleep 2
# install docker
wget -qO- get.docker.com | sh
# install Docker
echo "[install Docker engine]"
wget -qO- get.docker.com | sh
fi

# installation checking
echo == sudo docker info
sudo docker info
echo [sudo docker -v]
sudo docker -v
2 changes: 1 addition & 1 deletion scripts/runSpider.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash

CONTAINER_NAME_READ="CB-Spider"
CONTAINER_VERSION="0.5.0"
CONTAINER_VERSION="0.5.3"
CONTAINER_PORT="-p 1024:1024 -p 2048:2048"
CONTAINER_DATA_PATH="/root/go/src/github.com/cloud-barista/cb-spider/meta_db"

Expand Down
19 changes: 19 additions & 0 deletions src/testclient/scripts/sequentialFullTest/deploy-docker-runtime.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/bin/bash

echo "####################################################################"
echo "## Deploy (install) Docker to MCIS "
echo "####################################################################"

source ../init.sh

CMD="wget https://raw.githubusercontent.com/cloud-barista/cb-tumblebug/main/scripts/installDocker.sh -O ~/installDocker.sh; chmod +x ~/installDocker.sh; sudo ~/installDocker.sh"
echo "CMD: $CMD"

VAR1=$(curl -H "${AUTH}" -sX POST http://$TumblebugServer/tumblebug/ns/$NSID/cmd/mcis/$MCISID -H 'Content-Type: application/json' -d @- <<EOF
{
"command" : "${CMD}"
}
EOF
)
echo "${VAR1}" | jq ''
echo ""

0 comments on commit 33db6bc

Please sign in to comment.