Install the OpenSSL on Debian based systems
sudo apt-get install openssl
#!/bin/bash | |
#### Functions ### | |
display_usage() { | |
echo "This script must be run with Docker capable privileges and you should login to your registry before pushing!" | |
echo -e "\nUsage:\n$0 <saved_image> [--push]\n" | |
echo -e " <saved_image>\t\t\tThe image file to load and push" | |
echo -e " [--push]\t\t\tPush to registry" | |
echo -e "\nExample: $0 /mydir/ubuntu.tar --push " | |
} |
sudo curl -o /usr/local/bin/docker-load-and-push https://gist.githubusercontent.com/rluvaton/ef6415c79c35c5b11c535040e79ab43b/raw/19cb82651a10d5256f512331b484dee8a19a8058/docker-load-and-push.sh && sudo chmod +x /usr/local/bin/docker-load-and-push
To setup your computer to work with *.test domains, e.g. project.test, awesome.test and so on, without having to add to your hosts file each time.
version: '3.5' | |
services: | |
vault-compose: | |
image: vault:0.9.6 | |
build: | |
context: ./vault | |
ports: | |
- 8200:8200 |
$ brew install dnsmasq
$ vim /usr/local/etc/dnsmasq.conf
# Copy the daemon configuration file into place.
$ sudo cp $(brew list dnsmasq | grep /homebrew.mxcl.dnsmasq.plist$) /Library/LaunchDaemons/
$ sudo launchctl unload /Library/LaunchDaemons/homebrew.mxcl.dnsmasq.plist
EXECUTABLE=executable-name | |
WINDOWS=$(EXECUTABLE)_windows_amd64.exe | |
LINUX=$(EXECUTABLE)_linux_amd64 | |
DARWIN=$(EXECUTABLE)_darwin_amd64 | |
VERSION=$(shell git describe --tags --always --long --dirty) | |
.PHONY: all test clean | |
all: test build ## Build and run tests |