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
| #!/usr/bin/env bash | |
| # wrapper script to check if mysql is up and then start service | |
| # after 3 successful attempets or exit after timeout. | |
| HOST=$1 | |
| shift | |
| TIMEOUT=$1 | |
| shift | |
| CMD=$@ |
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
| version: '2' | |
| networks: | |
| nginx: | |
| services: | |
| nginx-proxy: | |
| container_name: nginx-proxy | |
| image: jwilder/nginx-proxy:alpine | |
| restart: always | |
| environment: |
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
| /* | |
| * Configure the Jenkins EC2 Plugin via Groovy Script | |
| * EC2 Plugin URL: https://wiki.jenkins-ci.org/display/JENKINS/Amazon+EC2+Plugin | |
| */ | |
| import hudson.model.* | |
| import jenkins.model.* | |
| import hudson.plugins.ec2.* | |
| import com.amazonaws.services.ec2.model.InstanceType | |
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
| // add-jenkins-param.groovy | |
| // Adds a parameter to all jobs on a Jenkins instance. | |
| // The parameter is then exposed as an environment variable. | |
| import hudson.model.* | |
| key = 'GEM_SOURCE' | |
| value = 'http://rubygems.delivery.puppetlabs.net' | |
| desc = 'The Rubygems Mirror URL' | |
| for(job in Hudson.instance.items) { |
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 debian:stretch | |
| LABEL maintainer="Andrew S. <[email protected]>" | |
| RUN set -ex; \ | |
| apt-get update -qq && apt-get install -qqy \ | |
| apt-transport-https \ | |
| ca-certificates \ | |
| locales \ | |
| wget gnupg \ |
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 | |
| eval "$(aws ecr get-login --no-include-email --region $2)" | |
| docker build -t $1 -f docker/Dockerfile docker/. | |
| docker push $1: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
| resource "aws_ecr_repository" "pgbouncer" { | |
| name = "${var.name}" | |
| } | |
| resource "null_resource" "build_pgbouncer_image" { | |
| provisioner "local-exec" { | |
| command = "./docker/build.sh ${aws_ecr_repository.pgbouncer.repository_url} ${var.region}" | |
| } | |
| } |
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
| [ | |
| { | |
| "memory": ${memory}, | |
| "networkMode": "host", | |
| "portMappings": [ | |
| { | |
| "hostPort": ${host_port}, | |
| "containerPort": ${container_port}, | |
| "protocol": "tcp" | |
| } |
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
| resource "aws_security_group" "pgbouncer" { | |
| name = "${var.name}" | |
| vpc_id = "${var.vpc_id}" | |
| ingress { | |
| from_port = "${var.port}" | |
| to_port = "${var.port}" | |
| protocol = "tcp" | |
| //cidr_blocks = ["${data.aws_vpc.vpc.cidr_block}"] |
OlderNewer