- This is a basic installation example
- Preequires ===
num=0; for i in is bc dc svc ; do cat hello.json | /usr/local/bin/jq .items[$num] > $i.json; num=$(( num + 1 )); done |
{ | |
"kind": "List", | |
"apiVersion": "v1", | |
"metadata": {}, | |
"items": [ | |
{ | |
"kind": "BuildConfig", | |
"apiVersion": "v1", | |
"metadata": { | |
"name": "helloworld-v3", |
{ | |
"status": { | |
"lastVersion": 0 | |
}, | |
"spec": { | |
"resources": {}, | |
"output": { | |
"to": { | |
"name": "helloworld-v3:latest", | |
"kind": "ImageStreamTag" |
{ | |
"status": { | |
"dockerImageRepository": "" | |
}, | |
"spec": {}, | |
"metadata": { | |
"labels": { | |
"app": "helloworld-v3" | |
}, | |
"creationTimestamp": null, |
# This program is free software: you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by | |
# the Free Software Foundation, either version 3 of the License, or | |
# (at your option) any later version. | |
# | |
# This program is distributed in the hope that it will be useful, | |
# but WITHOUT ANY WARRANTY; without even the implied warranty of | |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
# GNU General Public License for more details. | |
# |
#!/bin/bash | |
# Prerequires | |
yum -y install docker | |
sed -i -e "s/OPTIONS='--selinux-enabled'/OPTIONS='--insecure-registry=172.30.0.0\/16 --selinux-enabled'/" /etc/sysconfig/docker | |
systemctl restart docker | |
# Master setup | |
yum -y install openshift-master |
#!/bin/bash | |
yum install -y wget git net-tools bind-utils iptables-services bridge-utils | |
yum update -y | |
yum -y install docker | |
sed -i -e "s/OPTIONS='--selinux-enabled'/OPTIONS='--insecure-registry=172.30.0.0\/16 --selinux-enabled'/" /etc/sysconfig/docker | |
systemctl restart docker | |
systemctl enable docker |
[Unit] | |
Description=Eat CPU | |
[Service] | |
Restart=always | |
CPUShare=1500 | |
ExecStart=/bin/bash -c 'while true; do echo foo; done > /dev/null' |
# There can only be a single job definition per file. | |
# Create a job with ID and Name 'example' | |
job "example" { | |
# Run the job in the global region, which is the default. | |
# region = "global" | |
# Specify the datacenters within the region this job can run in. | |
datacenters = ["dc1"] | |
# Service type jobs optimize for long-lived services. This is |