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
server { | |
listen ...; | |
... | |
location / { | |
proxy_pass http://127.0.0.1:8080; | |
} | |
location /blog { | |
proxy_pass http://127.0.0.1:8181; | |
} |
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
docker login artifacts.ath.bskyb.com:5001 | |
docker build -t artifacts.ath.bskyb.com:5001/elasticsearch . | |
docker push artifacts.ath.bskyb.com:5001/elasticsearch |
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
Add fstab entry | |
/dev/mapper/somepartition /tmp ext4 defaults,noatime 0 2 | |
mount -a | |
chmod 1777 /tmp |
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
# hostnamectl status | |
# hostnamectl set-hostname Your-New-Host-Name-Here --static |
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
docker run mysql -p 3306:3306 -d | |
WARNING: IPv4 forwarding is disabled. Networking will not work. | |
# sysctl net.ipv4.ip_forward | |
net.ipv4.ip_forward = 0 | |
# sysctl -w net.ipv4.ip_forward=1 |
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
{ | |
"ignition": { | |
"config": {}, | |
"timeouts": {}, | |
"version": "2.1.0" | |
}, | |
"networkd": {}, | |
"passwd": { | |
"users": [ | |
{ |
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
#cloud-config | |
users: | |
- name: "core" | |
passwd: "$1$TEw13kGK$nlxMSKdmHY1VmOZaDw/8o." |
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
# Upload an WMware Image to the Datastore, Boot up the image: | |
at boot 'e' | |
coreos.autologin=tty1 | |
set user/pass | |
# Set password | |
$ sudo passwd core | |
# To update if needed | |
$ update_engine_client -check_for_update |
OlderNewer