forked from sundbergjohanna/kanelbulle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfirst_step.sh
25 lines (23 loc) · 939 Bytes
/
first_step.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
# Setup file
#!/bin/sh
tar -xvf murtazo.tgz
cd murtazo
tar -xvf cloudnaca.tgz
tar -xvf navier_stokes_solver.tar
cd ..
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
sudo apt-get update
apt-cache policy docker-ce
sudo apt-get install -y docker-ce
sudo apt-get install -y python-dolfin
sudo apt-get install -y dolfin-bin
sudo apt install -y docker-compose
echo "*Image and packages installed."
sudo docker run --name airfoil_container -td -v $(pwd):/home/fenics/shared -w /home/fenics/shared quay.io/fenicsproject/stable:current
echo "*Docker created: "
sudo docker ps
sudo docker cp murtazo airfoil_container:/home/fenics/shared/.
sudo docker cp second_step.sh airfoil_container:/home/fenics/shared/.
sudo docker exec airfoil_container bash -c "./second_step.sh"
echo "*Executing second script "