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 -e | |
usage() { | |
cat << EOF | |
usage: $0 <url> <path> | |
URL: <hostname>:<port> | |
Path: / | |
EOF |
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
apiVersion: eksctl.io/v1alpha5 | |
kind: ClusterConfig | |
metadata: | |
name: logging-demo-cluster | |
region: us-east-2 | |
vpc: | |
cidr: "10.1.0.0/16" | |
clusterEndpoints: |
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 | |
# create directory | |
mkdir -p /usr/src | |
cd /usr/src | |
# update the os | |
apt-get update -y && apt-get upgrade -y | |
# install dependencies |
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
'use strict'; | |
const secrets = require('docker-secrets'); | |
# object containing key value pairs of secrets | |
console.log(secrets); |
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
npm install docker-secrets --save |
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
FROM cassandra:2.1 | |
ENV ETCD_VERSION v3.0.15 | |
RUN DOWNLOAD_URL=https://github.com/coreos/etcd/releases/download \ | |
&& apt-get update && apt-get install -y curl && rm -rf /var/lib/apt/lists/* \ | |
&& curl -L ${DOWNLOAD_URL}/${ETCD_VERSION}/etcd-${ETCD_VERSION}-linux-amd64.tar.gz -o /tmp/etcd-${ETCD_VERSION}-linux-amd64.tar.gz \ | |
&& mkdir -p /tmp/etcd-${ETCD_VERSION} \ | |
&& tar xzvf /tmp/etcd-${ETCD_VERSION}-linux-amd64.tar.gz -C /tmp/etcd-${ETCD_VERSION} --strip-components=1 \ | |
&& cp /tmp/etcd-${ETCD_VERSION}/etcdctl /bin \ |
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 -ex | |
apt-get update -y && apt-get upgrade -y | |
apt-get install -y linux-image-extra-$(uname -r) \ | |
linux-image-extra-virtual \ | |
unzip \ | |
git \ | |
python \ |
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
{ | |
"variables": { | |
"aws_access_key": "", | |
"aws_secret_key": "", | |
"aws_account_id": "", | |
"aws_region": "" | |
}, | |
"builders": [ | |
{ | |
"type": "amazon-ebs", |
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 -ex | |
echo "Gathering AWS Credentials..." | |
AWS_ACCESS_KEY=$(aws configure get aws_access_key_id --profile=$1) | |
AWS_SECRET_KEY=$(aws configure get aws_secret_access_key --profile=$1) | |
AWS_REGION=$(aws configure get region --profile=$1) | |
AWS_ACCOUNT_ID=$(aws ec2 describe-security-groups --group-names 'Default' --query 'SecurityGroups[0].OwnerId' --output text --profile=$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 | |
# create example EFS mount point | |
docker volume create --driver=efs --name=example-efs | |
# create example EBS disk within this availability zone | |
docker volume create --driver=ebs --name=example-ebs | |
# run an example container with EBS mount | |
docker run -it --rm -v example-ebs:/data --volume-driver=ebs busybox sh |
NewerOlder