This guide describes how to bootstrap new Production Core OS Cluster as High Availability Service in a 15 minutes with using etcd2, Fleet, Flannel, Confd, Nginx Balancer and Docker.
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
#!/bin/bash -uxe | |
VERSION=2.7.13.2713 | |
PACKAGE=ActivePython-${VERSION}-linux-x86_64-glibc-2.3.6-401785 | |
# make directory | |
mkdir -p /opt/bin | |
cd /opt | |
wget http://downloads.activestate.com/ActivePython/releases/${VERSION}/${PACKAGE}.tar.gz |
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
## NOTE: | |
## because this docker-compose.yml is designed to work with a remote docker-machine, | |
## all mounted volume paths are currently relative to /concourse-data, data is thus stored on the docker host | |
nginx: | |
image: nginx | |
container_name: nginx | |
ports: | |
- "80:80" | |
- "443:443" |
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
kubectl proxy | |
Get the name of the Pod (in a new terminal window) and store it in the POD_NAME environment variable: | |
export POD_NAME=$(kubectl get pods -o go-template --template '{{range .items}}{{.metadata.name}}{{"\n"}}{{end}}') | |
echo Name of the Pod: $POD_NAME | |
To see the output of our application, run a curl request. | |
curl http://localhost:8001/api/v1/proxy/namespaces/default/pods/$POD_NAME/ |
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
--- | |
# | |
## | |
### Written by the CAT (Cloudwatt Automation Team) | |
## | |
# | |
- hosts: localhost | |
become: yes | |
user: cloud |
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
from moneywagon import get_current_price, get_address_balance | |
from moneywagon.tx import Transaction | |
from bitcoin import privkey_to_address | |
data = [ | |
['btc', 'KwsccfDeJkrW6ZgMH6AJ7apNGncMVEagNWhTwq9MJnqoKp58i1MG'], | |
['ltc', 'T3ht4QWpi8q6sQKDpj7AKwMkDeFfZKbaBibiodmtsm1xqhcTJZT1'] | |
] | |
## DETERMINE IF TRADE IS NEEDED |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
heat_template_version: 2014-10-16 | |
description: A simple server to run Jenkins | |
parameters: | |
key_name: | |
type: string | |
default: honey | |
description: Name of an existing key pair to enable SSH access to the instance. | |
NetID: | |
default: 335662a3-2d21-40f0-9c59-93f1f123f33f |
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
#!/bin/bash | |
#https://www.unixmen.com/install-openvpn-asaccess-server-on-ubuntu-debian/ | |
VERSION=2.1.4 | |
wget http://swupdate.openvpn.org/as/openvpn-as-$VERSION-Ubuntu12.amd_64.deb | |
sudo dpkg -i openvpn-as-$VERSION-Ubuntu12.amd_64.deb | |
sudo su - root -c "echo openvpn:$1 | chpasswd" |
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
#!/bin/bash | |
sudo apt-get update | |
sudo apt-get -y install libssl0.9.8 | |
wget http://download.utorrent.com/linux/utorrent-server-3.0-25053.tar.gz | |
sudo tar zxvf utorrent-server-3.0-25053.tar.gz -C /opt/ | |
sudo chmod -R +x /opt/utorrent-server-v3_0/ | |
/opt/utorrent-server-v3_0/utserver -settingspath /opt/utorrent-server-v3_0/ & |