Skip to content

Instantly share code, notes, and snippets.

View msfidelis's full-sized avatar
🐳
Ship!

Matheus Fidelis msfidelis

🐳
Ship!
View GitHub Profile
FROM envoyproxy/envoy-alpine:v1.12.2
COPY envoy.yaml /etc/envoy/envoy.yaml
EXPOSE 8080
static_resources:
listeners:
# Declaração do Listener
- name: listener_0
address:
socket_address: { address: 0.0.0.0, port_value: 8080 }
# Filtros HTTP
filter_chains:
- filters:
FROM maven:3.6-jdk-8-alpine
WORKDIR /build
COPY . /build
RUN mvn clean package
RUN mv /build/target/*.jar /app.jar
EXPOSE 8080
FROM maven:3.6-jdk-8-alpine AS builder
WORKDIR /build
COPY . /build
RUN mvn clean package
FROM openjdk:8-jre-alpine
COPY --from=builder /build/target/*.jar /app.jar
pipeline {
// agent any
agent { label 'jenkins-ecs-build' }
stages {
stage('Privisioning Slave') {
steps {
echo 'Done...'
}
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "Stmt1452746887373",
"Action": [
"ecs:RegisterTaskDefinition",
"ecs:DeregisterTaskDefinition",
"ecs:ListClusters",
"ecs:DescribeContainerInstances",
version: 0.2
phases:
pre_build:
commands:
- pip install awscli --upgrade --user
- echo `aws --version`
- echo Installing Node 8
- curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
- apt-get install -y nodejs
service: serverless-boilerplate
provider:
name: aws
runtime: nodejs8.10
stage: ${opt:stage, 'prod'} # Pegamos o stage via argumento, default é prod
region: us-east-1
//...
environment: # Carregamos um arquivo YML com o nome do stage com as variáveis de ambiente
version: 0.2
phases:
pre_build:
commands:
- echo Installing Node 8
- curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
- apt-get install -y nodejs
- echo Entered the pre_build phase...
service: example-app-001
provider:
name: aws
vpc:
securityGroupIds:
- sg-09890c1667f406g748
subnetIds:
- subnet-0289c494949443e01
- subnet-95895895895893e02