feat: improved startup scripts
This commit is contained in:
@@ -5,6 +5,7 @@ containermount=$([[ $2 ]] && echo $2 || echo "$HOME/projects/")
|
||||
|
||||
echo "
|
||||
=> Mounting folder $containermount to /mnt (in container)
|
||||
=> Starting container
|
||||
"
|
||||
|
||||
docker run -it \
|
||||
|
||||
@@ -5,6 +5,7 @@ containermount=$([[ $2 ]] && echo $2 || echo "$HOME/projects/")
|
||||
|
||||
echo "
|
||||
=> Mounting folder to /mnt (in container)
|
||||
=> Starting container
|
||||
"
|
||||
|
||||
docker run -it \
|
||||
|
||||
@@ -4,7 +4,8 @@ containername=$([[ $1 ]] && echo $1 || echo "php")
|
||||
containermount=$([[ $2 ]] && echo $2 || echo "$HOME/projects/")
|
||||
|
||||
echo "
|
||||
=> Mounting folder to /mnt
|
||||
=> Mounting folder to /mnt (in container)
|
||||
=> Starting container
|
||||
"
|
||||
|
||||
docker run -it \
|
||||
|
||||
@@ -5,6 +5,7 @@ containermount=$([[ $2 ]] && echo $2 || echo "$HOME/projects/")
|
||||
|
||||
echo "
|
||||
=> Mounting folder to /mnt (in container)
|
||||
=> Starting container
|
||||
"
|
||||
|
||||
docker run -it \
|
||||
|
||||
@@ -5,6 +5,7 @@ containermount=$([[ $2 ]] && echo $2 || echo "$HOME/projects/")
|
||||
|
||||
echo "
|
||||
=> Mounting folder to /mnt
|
||||
=> Starting container
|
||||
"
|
||||
|
||||
docker run -it \
|
||||
|
||||
@@ -5,6 +5,7 @@ containermount=$([[ $2 ]] && echo $2 || echo "$HOME/projects/")
|
||||
|
||||
echo "
|
||||
=> Mounting folder to /mnt (in container)
|
||||
=> Starting container
|
||||
"
|
||||
|
||||
docker run -it \
|
||||
|
||||
@@ -3,6 +3,10 @@
|
||||
containername=$([[ $1 ]] && echo $1 || echo "webserver")
|
||||
containermount=$([[ $2 ]] && echo $2 || echo "$HOME/projects/")
|
||||
|
||||
echo "
|
||||
=> Starting container
|
||||
"
|
||||
|
||||
docker run --rm \
|
||||
-v $containermount:/var/www/html \
|
||||
--name $containername \
|
||||
|
||||
Reference in New Issue
Block a user