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: "3" | |
| services: | |
| node_1: | |
| image: msfidelis/micro-api:v1 | |
| ports: | |
| - "8001:8000" | |
| networks: | |
| - developer |
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
| static_resources: | |
| listeners: | |
| - name: listener_0 | |
| address: | |
| socket_address: { address: 0.0.0.0, port_value: 8080 } | |
| filter_chains: | |
| - filters: | |
| - name: envoy.http_connection_manager | |
| typed_config: | |
| "@type": type.googleapis.com/envoy.config.filter.network.http_connection_manager.v2.HttpConnectionManager |
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 envoyproxy/envoy-alpine:v1.12.2 | |
| COPY envoy.yaml /etc/envoy/envoy.yaml | |
| EXPOSE 8080 |
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
| 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: |
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 maven:3.6-jdk-8-alpine | |
| WORKDIR /build | |
| COPY . /build | |
| RUN mvn clean package | |
| RUN mv /build/target/*.jar /app.jar | |
| EXPOSE 8080 |
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 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 |
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
| pipeline { | |
| // agent any | |
| agent { label 'jenkins-ecs-build' } | |
| stages { | |
| stage('Privisioning Slave') { | |
| steps { | |
| echo 'Done...' | |
| } |
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": "2012-10-17", | |
| "Statement": [ | |
| { | |
| "Sid": "Stmt1452746887373", | |
| "Action": [ | |
| "ecs:RegisterTaskDefinition", | |
| "ecs:DeregisterTaskDefinition", | |
| "ecs:ListClusters", | |
| "ecs:DescribeContainerInstances", |
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: 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 |
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
| 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 |