Skip to content

Instantly share code, notes, and snippets.

@rshsmi
rshsmi / cmd
Last active December 24, 2018 15:10
Mutiple run of Ignition
# 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
@rshsmi
rshsmi / cloud-config.yml
Last active December 28, 2018 17:23
cloud-config.yml
#cloud-config
users:
- name: "core"
passwd: "$1$TEw13kGK$nlxMSKdmHY1VmOZaDw/8o."
@rshsmi
rshsmi / coreos-packer.json
Last active December 20, 2018 11:20
coreos-packer.json
{
"ignition": {
"config": {},
"timeouts": {},
"version": "2.1.0"
},
"networkd": {},
"passwd": {
"users": [
{
@rshsmi
rshsmi / WARNING-IPv4-forwarding
Created July 25, 2016 16:29
WARNING: IPv4 forwarding
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
@rshsmi
rshsmi / chng-hostname-centos7
Created July 19, 2016 16:49
Change Hostname on CentOS7
# hostnamectl status
# hostnamectl set-hostname Your-New-Host-Name-Here --static
@rshsmi
rshsmi / tmp-part
Created July 18, 2016 13:30
Change /tmp partition
Add fstab entry
/dev/mapper/somepartition /tmp ext4 defaults,noatime 0 2
mount -a
chmod 1777 /tmp
@rshsmi
rshsmi / NexusDockerRegistry
Created July 11, 2016 11:37
Nexus Docker Registry
docker login artifacts.ath.bskyb.com:5001
docker build -t artifacts.ath.bskyb.com:5001/elasticsearch .
docker push artifacts.ath.bskyb.com:5001/elasticsearch
@rshsmi
rshsmi / NginxReverseProxy
Created July 4, 2016 20:09
Nginx Reverse Proxy - Multiple Applications on One Domain
server {
listen ...;
...
location / {
proxy_pass http://127.0.0.1:8080;
}
location /blog {
proxy_pass http://127.0.0.1:8181;
}
@rshsmi
rshsmi / Rancher
Created July 1, 2016 21:15
Rancher Setup & Other Rancher Related
docker run -d --restart=always -p 8080:8080 rancher/server
cat <<< 'Line1
Line2
Line3
line4' > ./multipleline.txt