sudo docker-compose pull
sudo docker-compose exec [service_name_of_postgres] pg_dumpall -U [postgres_user] > /tmp/dump.sql
#!/bin/sh | |
cat << EOF > /etc/netplan/50-cloud-init.yaml | |
# This file is generated from information provided by | |
# the datasource. Changes to it will not persist across an instance. | |
# To disable cloud-init's network configuration capabilities, write a file | |
# /etc/cloud/cloud.cfg.d/99-disable-network-config.cfg with the following: | |
# network: {config: disabled} | |
network: | |
ethernets: |
# Following commands are supposed to be run interactively. | |
# This script is not ready for running automated. | |
apt install -y mariadb-server | |
vi /etc/mysql/mariadb.conf.d/50-server.cnf | |
[mysqld] | |
innodb_file_format = Barracuda | |
innodb_default_row_format = dynamic |
cat << 'EOF' > ~/.tilde-switch && chmod +x ~/.tilde-switch
hidutil property --set '{"UserKeyMapping":[{"HIDKeyboardModifierMappingSrc":0x700000035,"HIDKeyboardModifierMappingDst":0x700000064},{"HIDKeyboardModifierMappingSrc":0x700000064,"HIDKeyboardModifierMappingDst":0x700000035}]}'
EOF
~/.tilde-switch
To enable redirection, you need to deploy a middleware with redirectScheme.
Since this can be referenced from other namespaces, you will create it in the default
namespace for ease of sharing.
cat <<EOF > middleware.yaml
apiVersion: traefik.containo.us/v1alpha1
kind: Middleware
metadata:
name: http-redirect