Updated .gitignore to include .sh files and added helper scripts
This commit is contained in:
parent
d1ea672bd7
commit
cff4f221c6
|
@ -8,8 +8,9 @@
|
|||
volumes/
|
||||
*/*/*/*
|
||||
|
||||
# only allow .yml files
|
||||
# only allow .yml and .sh files
|
||||
!*.yml
|
||||
!*.sh
|
||||
|
||||
!*.md
|
||||
!.gitignore
|
||||
|
|
|
@ -0,0 +1,10 @@
|
|||
#!/bin/bash
|
||||
|
||||
if [ $(basename $PWD) != $(hostname) ]; then
|
||||
echo "Incorrect directory for host"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# will skip folders with a leading "_" (indicating not used)
|
||||
|
||||
for d in ./[^_]*/ ; do (cd $d && docker-compose up -d && cd ..); done
|
|
@ -0,0 +1,10 @@
|
|||
#!/bin/bash
|
||||
|
||||
if [ $(basename $PWD) != $(hostname) ]; then
|
||||
echo "Incorrect directory for host"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# will skip folders with a leading "_" (indicating not used)
|
||||
|
||||
for d in ./[^_]*/ ; do (cd $d && docker-compose up -d && cd ..); done
|
|
@ -0,0 +1,3 @@
|
|||
#!/bin/bash
|
||||
docker pull containrrr/watchtower
|
||||
docker run -v /var/run/docker.sock:/var/run/docker.sock containrrr/watchtower --run-once
|
Loading…
Reference in New Issue