Skip to content

Instantly share code, notes, and snippets.

View gomex's full-sized avatar

Rafael Gomes gomex

View GitHub Profile
cnf ?= .env.aws
include $(cnf)
export $(shell sed 's/=.*//' $(cnf))
# Get the latest tag
TAG=$(shell git describe --tags --abbrev=0)
GIT_COMMIT=$(shell git log -1 --format=%h)
AWS_ACCOUNT=42424242424242
TERRAFORM_VERSION=0.12.28

Keybase proof

I hereby claim:

  • I am gomex on github.
  • I am gomex (https://keybase.io/gomex) on keybase.
  • I have a public key ASCmGECnTagxZOyRfOu542ilh6i_MDZxngaaQ0MxFMxvAQo

To claim this, I am signing this object:

@gomex
gomex / asg.tf
Last active August 23, 2019 22:07
resource "aws_appautoscaling_target" "app_scale_target" {
service_namespace = "ecs"
resource_id = "service/${data.aws_ecs_cluster.main.id}/${aws_ecs_service.main.name}"
scalable_dimension = "ecs:service:DesiredCount"
max_capacity = "${var.asg_max_tasks}"
min_capacity = "${var.asg_min_tasks}"
}
@gomex
gomex / docker-compose.yml
Created August 18, 2019 21:21
Docker Compose GELF
version: '3'
services:
# MongoDB: https://hub.docker.com/_/mongo/
mongodb:
image: mongo:3
# Elasticsearch: https://www.elastic.co/guide/en/elasticsearch/reference/5.6/docker.html
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:5.6.3
environment:
- http.host=0.0.0.0
# import env config
cnf ?= .env
include $(cnf)
export $(shell sed 's/=.*//' $(cnf))
# Get the latest tag
TAG=$(shell git describe --tags --abbrev=0)
GIT_COMMIT=$(shell git log -1 --format=%h)
@gomex
gomex / pom.xml
Created September 14, 2018 17:34
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<project
xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<name>Kayako-classic-cluster</name>
<groupId>com.kayako</groupId>
<artifactId>Kayako-classic-cluster</artifactId>
<modelVersion>4.0.0</modelVersion>
<version>1.2.1</version>
<profiles>
@gomex
gomex / pom.xml
Created September 14, 2018 17:34
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<project
xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<name>Kayako-classic-cluster</name>
<groupId>com.kayako</groupId>
<artifactId>Kayako-classic-cluster</artifactId>
<modelVersion>4.0.0</modelVersion>
<version>1.2.1</version>
<profiles>
@gomex
gomex / pom.xml
Created September 14, 2018 17:34
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<project
xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<name>Kayako-classic-cluster</name>
<groupId>com.kayako</groupId>
<artifactId>Kayako-classic-cluster</artifactId>
<modelVersion>4.0.0</modelVersion>
<version>1.2.1</version>
<profiles>
@gomex
gomex / pom.xml
Created September 14, 2018 17:34
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<project
xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<name>Kayako-classic-cluster</name>
<groupId>com.kayako</groupId>
<artifactId>Kayako-classic-cluster</artifactId>
<modelVersion>4.0.0</modelVersion>
<version>1.2.1</version>
<profiles>
@gomex
gomex / pom.xml
Created September 14, 2018 17:34
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<project
xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<name>Kayako-classic-cluster</name>
<groupId>com.kayako</groupId>
<artifactId>Kayako-classic-cluster</artifactId>
<modelVersion>4.0.0</modelVersion>
<version>1.2.1</version>
<profiles>