This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3.1' | |
services: | |
web: | |
image: nginx | |
volumes: | |
- $PWD:/usr/share/nginx/html | |
- $HOME/mystuff/docker/nginx/nginx.conf:/etc/nginx/nginx.conf | |
ports: | |
- "8080:80" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM mysql:8.0 | |
# MODE can be restore or dump | |
ENV MODE=dump | |
ENV MYSQL_DATABASE=ghostdb | |
ENV MYSQL_PWD=password | |
ENV MYSQL_USER=ghost_admin | |
ENV MYSQL_HOST=127.0.0.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: "3.3" | |
services: | |
docker: | |
image: docker:20.10.16 | |
restart: always | |
volumes: | |
- $PWD:/home/ | |
environment: | |
- DOCKER_TLS_VERIFY= | |
- DOCKER_TLS_CERTDIR= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
print_usage() { | |
echo " | |
//////////////////////////////////////////////////////////////////////////////////////////// | |
* Script for transferring docker image to multiple private servers with no internet access * | |
/////////////////////////////////////////////////////////////////////////////////////////// | |
Usage: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
print_usage() { | |
echo " | |
//////////////////////////////////////////////////////////////////////////////////// | |
* Kill a process which has a specific pid or is running on a specific port * | |
/////////////////////////////////////////////////////////////////////////////////// | |
Usage: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
print_usage() { | |
echo " | |
////////////////////////////////////////////////////////////////////////////////////////////// | |
* Remove finalizer from kubernetes resources based on grep patterns or name of the resource * | |
////////////////////////////////////////////////////////////////////////////////////////////// | |
Usage: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
print_usage() { | |
echo " | |
/////////////////////////////////////////////////////// | |
* Delete kubernetes resources based on grep patterns * | |
////////////////////////////////////////////////////// | |
Usage: |