The intent is to define terse, standards-supported names for AWS regions.
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
version: '3' | |
services: | |
jenkins: | |
build: | |
context: . | |
container_name: jenkins | |
ports: | |
- "8080:8080" | |
user: root | |
privileged: true |
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
import jenkins.model.* | |
import hudson.security.* | |
def env = System.getenv() | |
def jenkins = Jenkins.getInstance() | |
jenkins.setSecurityRealm(new HudsonPrivateSecurityRealm(false)) | |
jenkins.setAuthorizationStrategy(new GlobalMatrixAuthorizationStrategy()) | |
def user = jenkins.getSecurityRealm().createAccount(env.JENKINS_USER, env.JENKINS_PASS) |
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 jenkins/jenkins:lts | |
USER root | |
# | |
# DOCKER INSTALLATION FOR DEBIAN | |
# | |
RUN curl -fsSL https://get.docker.com -o get-docker.sh && \ | |
sh get-docker.sh | |
# RUN usermod -aG docker jenkins |
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
locals { | |
my_region = "eu-west-1" | |
my_env = "dev" | |
my_prefix = "terraform" | |
vpc_cidr_block = "10.20.0.0/16" | |
private_subnet_count = "2" | |
} | |
terraform { | |
required_version = ">=0.11.11" |
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
terraform$ tree -l | |
├── envs | |
│ ├── dev | |
│ │ └── env.tf | |
│ ├── prd | |
│ │ └── env.tf | |
│ └── stg | |
│ └── env.tf | |
└── modules | |
├── env-def |
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
version: '3.3' | |
services: | |
localstack: | |
image: localstack/localstack:0.11.3 | |
privileged: true | |
ports: | |
- 8080:8080 | |
- 4567:4567 # apigateway | |
#- 4568:4568 # kinesis |
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
... | |
$num_instances = 3 | |
(1..$num_instances).each do |i| | |
config.vm.define "node#{i}" do |node| | |
node.vm.box = "centos/7" | |
node.vm.hostname = "node#{i}" | |
ip = "192.168.8.#{i+100}" | |
node.vm.network "private_network", ip: ip | |
node.vm.provider "virtualbox" do |vb| | |
vb.memory = "3072" |
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 | |
rm -rf /var/lib/apt/lists/* | |
sed -i 's/archive.ubuntu.com/ftp.daum.net/g' /etc/apt/sources.list | |
apt-get update -y |
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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing! | |
VAGRANTFILE_API_VERSION = "2" | |
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
config.vm.synced_folder ".", "/vagrant" | |
config.vm.define :ubuntu do |host| | |
host.vm.box = "bento/ubuntu-18.04" |