Find the cheapest light regime for defined daylight time.
Daylight: 18 hours.
chmod -R u=rwX,go=rX . | |
find . -type f -exec chmod -x {} \; | |
chmod -R -N . |
set -euo pipefail | |
if [[ -t 0 ]]; then | |
arg_tty="--tty" | |
else | |
arg_attach="--attach stdin --attach stdout --attach stderr" | |
fi | |
exec docker run -w="$(pwd)" --volume=/tmp/:/tmp/ --volume=$HOME/:$HOME/ --volume=/Volumes/:/Volumes/ --net=host --rm --interactive ${arg_tty-} ${arg_attach-} "${@}" |
brew install multipass | |
multipass launch lts -c 6 -d 20G -m 8G -n docker | |
multipass set client.primary-name=docker | |
multipass mount /Volumes/path/to/repo docker | |
multipass shell | |
curl -sSL https://get.docker.com/ | sh | |
echo '{"features": {"buildkit": true}}' > /etc/docker/daemon.json | |
sudo systemctl restart docker.service |
:443 | |
log | |
# openssl req -x509 -out localhost.crt -keyout localhost.key -newkey rsa:2048 -nodes -sha256 -subj '/CN=localhost' -extensions EXT -config <( printf "[dn]\nCN=localhost\n[req]\ndistinguished_name = dn\n[EXT]\nsubjectAltName=DNS:localhost\nkeyUsage=digitalSignature\nextendedKeyUsage=serverAuth") | |
tls localhost.crt localhost.key | |
reverse_proxy 127.0.0.1:3000 |