N. P. O'Donnell, 2021
Installing:
pip install docker| #!/usr/bin/env bash | |
| # | |
| # Creates a persistent, SSHable ubuntu 21.10 in a container, including tmux. | |
| docker stop my-ubuntu-ctr | |
| docker rm my-ubuntu-ctr | |
| docker rmi my-ubuntu | |
| docker build -t my-ubuntu - << HERE | |
| FROM ubuntu:21.10 |
| #!/usr/bin/env bash | |
| # Update docker-compose to latest version or a specific version. | |
| # N. P. O'Donnell, 2021 | |
| if [[ -z $1 ]]; then | |
| compose_version=$(curl https://api.github.com/repos/docker/compose/releases/latest | jq .name -r) | |
| else | |
| compose_version=$1 | |
| fi | |
| output=~/bin/docker-compose |
N. P. O'Donnell, 2021
Check for latest version here
Add MongoDB repository to Apt and install:
| #!/usr/bin/env bash | |
| # | |
| # sync-gists.sh | |
| # | |
| # Allows github gists to be edited locally or on gist.github.com and syncs changes between them. | |
| # Currently gist SHA-1 hashes must be manually added to a file called gist_ids. An SSH key should | |
| # be configured on github.com for ease of use. | |
| # | |
| # Format of $GIST_FILE file is one SHA-1 hash per line. | |
| # |
N. P. O'Donnell, 2021
Based on: