Skip to content
This repository has been archived by the owner on Jul 5, 2022. It is now read-only.

Commit

Permalink
Moved all Docker code to init.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
iesahin committed Apr 23, 2021
1 parent 14b81ee commit 19189c9
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 9 deletions.
9 changes: 9 additions & 0 deletions get-started/06-experiments/init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,15 @@
PS1='\[\033[01;34m\]\w\[\033[00m\]$ \[\033[01;32m\]'
trap 'echo -ne "\033[00m"' DEBUG

export CONTAINER="dvcorg/doc-katacoda:start-experiments"

docker volume create example-get-started

if [ -e /root/example-get-started ] ; then
rm -rf /root/example-get-started
fi
ln -s /var/lib/docker/volumes/example-get-started/_data example-get-started

clear

:;: ###########################################
Expand Down
18 changes: 9 additions & 9 deletions get-started/06-experiments/install.sh
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
#!/bin/bash

export CONTAINER="dvcorg/doc-katacoda:start-experiments"

docker volume create example-get-started

if [ -e /root/example-get-started ] ; then
rm -rf /root/example-get-started
fi
ln -s /var/lib/docker/volumes/example-get-started/_data example-get-started

# export CONTAINER="dvcorg/doc-katacoda:start-experiments"
#
# docker volume create example-get-started
#
# if [ -e /root/example-get-started ] ; then
# rm -rf /root/example-get-started
# fi
# ln -s /var/lib/docker/volumes/example-get-started/_data example-get-started
#
# docker run -d -it --name dvc -v example-get-started:/root/example-get-started "$CONTAINER"

touch /tmp/docker-ready

0 comments on commit 19189c9

Please sign in to comment.