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/sh | |
yum -y install centos-release-openshift-origin310 epel-release docker git pyOpenSSL | |
systemctl start docker | |
systemctl enable docker | |
su - origin | |
sudo yum -y install openshift-ansible | |
#provision /etc/ansible/hosts | |
ansible-playbook /usr/share/ansible/openshift-ansible/playbooks/prerequisites.yml | |
ansible-playbook /usr/share/ansible/openshift-ansible/playbooks/deploy_cluster.yml |
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/sh | |
useradd origin | |
passwd origin | |
echo -e 'Defaults:origin !requiretty\norigin ALL = (root) NOPASSWD:ALL' | tee /etc/sudoers.d/openshift | |
chmod 440 /etc/sudoers.d/openshift |
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/sh | |
sudo snap install kubectl --classic | |
mkdir .kube; cd .kube; touch config |
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
$ curl https://raw.githubusercontent.com/kubernetes/helm/master/scripts/get | bash | |
$ echo "apiVersion: v1 | |
kind: ServiceAccount | |
metadata: | |
name: tiller | |
namespace: kube-system | |
--- | |
apiVersion: rbac.authorization.k8s.io/v1beta1 | |
kind: ClusterRoleBinding |
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 | |
wget https://github.com/xetys/hetzner-kube/releases/download/0.3.1/hetzner-kube-linux-amd64 | |
chmod a+x ./hetzner-kube-linux-amd64 | |
sudo mv ./hetzner-kube-linux-amd64 /usr/local/bin/hetzner-kube | |
hetzner-kube context add <Project Name> | |
hetzner-kube ssh-key add --name <Project Name> | |
hetzner-kube cluster create --name <Project Name> --ssh-key <Project Name> | |
hetzner-kube cluster kubeconfig --name <Project 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
#!/bin/sh | |
curl -fsSL get.docker.com -o get-docker.sh | |
sh get-docker.sh | |
docker run -d --restart=unless-stopped \ | |
-p 80:80 -p 443:443 \ | |
rancher/rancher:latest |
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/sh | |
curl -sfL https://balena.io/install.sh | sh |
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 arm64v8/node:10-alpine as build | |
WORKDIR /app | |
COPY . ./ | |
RUN npm install | |
FROM arm64v8/node:10-alpine | |
COPY --from=build /app / | |
EXPOSE 8000 |
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
// Copyright (c) Microsoft. All rights reserved. | |
// Licensed under the MIT license. See LICENSE file in the project root for full license information. | |
'use strict'; | |
var Protocol = require('azure-iot-device-mqtt').Mqtt; | |
// Uncomment one of these transports and then change it in fromConnectionString to test other transports | |
// var Protocol = require('azure-iot-device-amqp').AmqpWs; | |
// var Protocol = require('azure-iot-device-http').Http; | |
// var Protocol = require('azure-iot-device-amqp').Amqp; |
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 | |
pip install azure-iot-edge-runtime-ctl | |
#Default IoT Edge Configuration Host Paths: | |
#------------------------------------------ | |
# Linux: /etc/azure-iot-edge | |
#$> iotedgectl setup --help | |
#$> iotedgectl setup --config-file edge_config.json | |
#$> iotedgectl --verbose DEBUG setup --config-file edge_config.json |