This file contains hidden or 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 | |
| docker-compose build --no-cache \ | |
| && docker-compose up |
This file contains hidden or 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 | |
| docker network create --attachable -d bridge dockernet |
This file contains hidden or 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 | |
| sudo apt-get update \ | |
| && sudo apt-get install -y \ | |
| apt-transport-https \ | |
| ca-certificates \ | |
| curl \ | |
| gnupg-agent \ | |
| software-properties-common \ | |
| && curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - \ | |
| && sudo add-apt-repository \ |
This file contains hidden or 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 | |
| useradd docker -s /bin/bash -m \ | |
| && passwd NEWUSER | |
| usermod -a -G sudo NEWUSER |
This file contains hidden or 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 | |
| swapoff -a \ | |
| && fallocate -l 2G /swapfile \ | |
| && ls -lh /swapfile \ | |
| && chmod 600 /swapfile \ | |
| && mkswap /swapfile \ | |
| && echo '/swapfile none swap sw 0 0' | sudo tee -a /etc/fstab \ | |
| && swapon -a \ | |
| && echo 'Swapfile was configured' |