This file contains 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
vagrant init openshift/origin-all-in-one | |
vagrant up | |
vagrant ssh | |
cd ~ | |
git clone https://github.com/projectatomic/atomicapp.git | |
cd atomicapp | |
sudo yum install python-pip | |
sudo make install | |
cd ~ |
This file contains 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
$ oc get pods | |
NAME READY STATUS RESTARTS AGE | |
etherpad-b8erb 1/1 Running 8 23m | |
mariadb 1/1 Running 0 23m | |
$ docker ps -a | |
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES | |
0948e072d088 centos/etherpad "./docker-entrypoint." 4 minutes ago Exited (1) 3 minutes ago k8s_etherpad.ab0d2d70_etherpad-b8erb_jwm2_3ff3d429-7f69-11e6-95d3-525400c583ad_6198e931 | |
6c86c73e1812 centos/etherpad "./docker-entrypoint." 10 minutes ago Exited (1) 9 minutes ago k8s_etherpad.ab0d2d70_etherpad-b8erb_jwm2_3ff3d429-7f69-11e6-95d3-525400c583ad_ee39112d | |
36957c0908e5 centos/mariadb "/docker-entrypoint.s" 20 minutes ago Up 20 minutes |
This file contains 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
$ cat answers.conf.sample | |
[mariadb-centos7-atomicapp] | |
provider = kubernetes | |
[etherpad-app] | |
image = centos/etherpad | |
db_port = 3306 | |
db_pass = None | |
db_name = None | |
db_user = None | |
db_host = mariadb |
This file contains 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
$ cat /etc/nginx/conf.d/mattermost_ssl.conf | |
server { | |
listen 80; | |
server_name NAME | |
location ^~ /.well-known/acme-challenge { | |
default_type "text/plain"; | |
root /var/www/letsencrypt; | |
} |
This file contains 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
[vagrant@cap etherpad-centos7-atomicapp]$ cat ./answers.conf | |
[etherpad-app] | |
image = centos/etherpad | |
db_port = 3306 | |
db_pass = sample_pass | |
db_name = sample_name | |
db_user = sample_user | |
db_host = mariadb | |
hostport = 9001 |
This file contains 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
# Trying with explicit 10.1.2.2 as IP of the OpenShift server | |
rm /home/vagrant/.kube/config | |
$ oc login 10.1.2.2:8443 --certificate-authority=/var/lib/openshift/openshift.local.config/master/ca.crt -u openshift-dev -p devel | |
$ cat /home/vagrant/.kube/config | |
apiVersion: v1 |
This file contains 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
# Used IP of 10.0.2.15 for OpenShift | |
# specified ca file with /host prefix based on how "/" on host gets mounted to docker container as "/host" | |
$ cat answers.conf | |
[etherpad-app] | |
image = centos/etherpad | |
db_port = 3306 | |
db_pass = sample_pass | |
db_name = sample_name |
This file contains 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
$ cat run_dev_servers_in_tmux.sh | |
#!/bin/sh | |
su -l -c 'tmux new -d -s react_server \"cd /vagrant && npm start\"' vagrant | |
su -l -c 'tmux new -d -s flask_server \"cd /vagrant && start_dev_api.sh\"' vagrant |
This file contains 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
$ pwd | |
/git/CAP/nulecule-library/mattermost-badhealthcheck-atomicapp/artifacts/openshift | |
$ cat pod.yaml | |
apiVersion: v1 | |
kind: Pod | |
metadata: | |
name: mattermost | |
labels: | |
name: mattermost |
This file contains 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
$ cat create_aws_infrastructure.yml | |
--- | |
- hosts: localhost | |
gather_facts: yes | |
vars_files: | |
- vars/main.yml | |
tasks: | |
# Referred to below to create VPC | |
# https://github.com/jeremievallee/ansible-aws-vpc/blob/master/1-simple-vpc/roles/vpc/tasks/main.yml |