forked from int-brain-lab/IBL-pipeline
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ibl_docker_setup-template.sh
executable file
·23 lines (20 loc) · 1.07 KB
/
ibl_docker_setup-template.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/bash
#Open Docker, only if is not running
if (! docker stats --no-stream ); then
# On Mac OS this would be the terminal command to launch Docker
open --background -a Docker
# Wait until Docker daemon is running and has completed initialisation
while (! docker stats --no-stream ); do
# Docker takes a few seconds to initialize
echo "Waiting for Docker to launch..."
sleep 60
done
fi
docker-compose up -d
# docker exec -it ibl-pipeline_datajoint_1 bash -c "cd /prelim_analyses/" /bin/bash
# docker-compose exec datajoint /bin/bash
# docker exec -it ibl-pipeline_datajoint_1 bash -c "pwd" /bin/bash
# docker exec -it ibl-pipeline_datajoint_1 bash -c "cd /src/IBL-pipeline/prelim_analyses" /bin/bash
# docker exec -it ibl-pipeline_datajoint_1 bash -c "cd /src/ibl-pipeline/prelim_analyses/behavioral_snapshot/" /bin/bash
# docker exec -it ibl-pipeline_datajoint_1 bash -c "cd /src/ibl_pipeline/prelim_analyses/behavioral_snapshots; exec /bin/bash"
docker exec -it ibl-pipeline_datajoint_1 bash -c "cd /src/IBL-pipeline/prelim_analyses/behavioral_snapshots; exec /bin/bash"