forked from lexevs/lexevs-system-test
-
Notifications
You must be signed in to change notification settings - Fork 0
/
debugTest.sh
executable file
·41 lines (24 loc) · 881 Bytes
/
debugTest.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
docker login -u gfddoaNd -p oWfta1aDFgH/pSGHbSp2+k/23XPCeL7owCLfc4M8E4oQ ncidockerhub.nci.nih.gov
echo "Docker Images\n"
docker images
echo"---\n"
echo " Docker containers\n"
docker ps
echo "\n"
cd mysql
docker pull ncidockerhub.nci.nih.gov/lexevs/nci-mysql:5.7.34
docker build --tag ncidockerhub.nci.nih.gov/lexevs/lexevs-nci-mysql:5.7.34 .
MYSQL_CONTAINER=$(docker run -d --name mysql -e MYSQL_ROOT_PASSWORD=root ncidockerhub.nci.nih.gov/lexevs/lexevs-nci-mysql:5.7.34)
cd ..
#read -t 5 -p "I am going to wait for 5 seconds only ..."
sleep 3
echo " -------------------- "
echo " mysql container is up and running..."
echo " List of docker containers below."
echo " -------------------- "
docker ps
docker run --rm --link mysql:mysql hello-world
# logout and shutdown
docker logout ncidockerhub.nci.nih.gov
docker stop $MYSQL_CONTAINER
docker rm $MYSQL_CONTAINER