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
#!/bin/bash | |
# Based on GitHub Issue: https://github.com/fastlane/fastlane/issues/12260 | |
set -o pipefail | |
if [[ -z "$1" ]] || [[ -z "$2" ]] || [[ -z "$3" ]] || [[ -z "$4" ]]; then | |
echo "usage: $0 <MATCH_P12_FILE> <MATCH_CER_FILE> <MATCH_PROVISIONING_PROFILE_FILE> <MATCH_PASSWORD>" | |
exit 1 | |
fi | |
P12=$1 |
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
#!/bin/bash | |
#set -e | |
set -o pipefail | |
# Add user to k8s using service account, no RBAC (must create RBAC after this script) | |
if [[ -z "$1" ]] || [[ -z "$2" ]]; then | |
echo "usage: $0 <service_account_name> <namespace>" | |
exit 1 | |
fi |
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
#!/bin/bash | |
#set -e | |
#set -o pipefail | |
# Add user to k8s using service account, no RBAC (must create RBAC after this script) | |
if [[ -z "$1" ]] || [[ -z "$2" ]]; then | |
echo "usage: $0 <service_account_name> <namespace>" | |
exit 1 | |
fi |
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
#!/bin/bash | |
#set -e | |
set -o pipefail | |
# Add user to k8s using service account, no RBAC (must create RBAC after this script) | |
if [[ -z "$1" ]] || [[ -z "$2" ]]; then | |
echo "usage: $0 <service_account_name> <namespace>" | |
exit 1 | |
fi |
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
#!/bin/bash | |
# Become root | |
sudo su | |
# Create root password | |
passwd | |
# Install java and ssh | |
apt-get update | |
apt-get install -y openssh-server |
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
#!/bin/bash | |
# Become root | |
sudo su | |
# Update /etc/network/interfaces | |
NEW_IP=$(ip route get 8.8.8.8 | awk '{print $NF; exit}') | |
sed -i 's/dhcp/static/g' /etc/network/interfaces | |
echo " address ${NEW_IP}" >> /etc/network/interfaces | |
echo " netmask 255.255.0.0" >> /etc/network/interfaces | |
echo " broadcast 172.16.255.255" >> /etc/network/interfaces |
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
#!/bin/bash | |
# Install java and ssh | |
sudo apt-get update | |
# Java | |
sudo apt-get install -y default-jdk | |
sudo echo "JAVA_HOME=\"/usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java\"" >> /etc/environment | |
touch ~/.bashrc | |
echo "source /etc/environment" >> ~/.bashrc | |
. ~/.bashrc |
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
#!/bin/bash | |
# Install software-properties-common | |
sudo apt-get install -y software-properties-common | |
# Then add the community GlusterFS PPA: | |
sudo add-apt-repository ppa:gluster/glusterfs-3.8 | |
sudo apt-get update | |
# Finally, install the packages: | |
sudo apt-get install -y glusterfs-server |
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
#!/bin/bash | |
set -x | |
# 1. Become sudo | |
sudo su | |
# 2. Install Docker | |
apt-get update | |
apt-get install -y docker.io |
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
#!/bin/bash | |
set -x | |
# 1. Become sudo | |
sudo su | |
# 2. Install Docker | |
apt-get update | |
apt-get install -y docker.io |
NewerOlder