Skip to content

Instantly share code, notes, and snippets.

locals {
s3_origin_id = aws_s3_bucket.site.bucket_regional_domain_name
}
resource "aws_cloudfront_distribution" "s3_distribution" {
origin {
domain_name = local.s3_origin_id
origin_id = local.s3_origin_id
}
@JoaoVagner
JoaoVagner / terminal-output.log
Created June 12, 2020 14:36
terminal-output.log
[joaovagner@localhost ec2-abl-asg-test]$ cookiecutter ec2-abl-asg
project_name [Nome do projeto]: ec2-test
Select profile_aws_cli:
1 - sim
2 - nao
Choose from 1, 2 [1]:
profile_name [nome do profile da AWS]: test-ec2
Select tipo_de_ambiente:
1 - DSV
2 - HML
@JoaoVagner
JoaoVagner / Dockerfile
Created November 4, 2019 23:13
dockerfile
FROM pdbs/glassfish:latest
LABEL build="201923091740" maintainer="[email protected]" java.version="jdk1.8.0_151" glassfish.version="5.0"
ENV RDS_DATABASE_PASSWD
ENV RDS_DATABASE_PASSWD=
ENV RDS_DATABASE_NAME=
ENV RDS_DATABASE_ENDPOINT=
ENV RDS_DATABASE_PORT=RDS_DATABASE_ENDPOINT=
ENV RDS_DATABASE_PORT=
up_sidekiq-ms.1.cp5tn5434rdw@icasei-dev-machine | (called from block in <module:LegacyDb> at /usr/local/bundle/bundler/gems/feed_lib-b0b9da22b647/lib/feed_lib/models/legacy_db.rb:13)
up_sidekiq-ms.1.cp5tn5434rdw@icasei-dev-machine | 2019-10-29T18:34:24.093Z 1 TID-4m6zt INFO: Booting Sidekiq 5.2.7 with redis options {:url=>"redis://redis-sidekiq:6379", :namespace=>"feed", :id=>"Sidekiq-server-PID-1"}
up_sidekiq-ms.1.cp5tn5434rdw@icasei-dev-machine | 2019-10-29T18:34:24.097Z 1 TID-4m6zt INFO: Reloading Schedule
up_sidekiq-ms.1.cp5tn5434rdw@icasei-dev-machine | 2019-10-29T18:34:24.098Z 1 TID-4m6zt INFO: Loading Schedule
up_sidekiq-ms.1.cp5tn5434rdw@icasei-dev-machine | 2019-10-29T18:34:24.099Z 1 TID-4m6zt INFO: Scheduling push_worker {"cron"=>"0 20 * * * America/Sao_Paulo", "class"=>"PushWorker", "queue"=>"default"}
up_sidekiq-ms.1.cp5tn5434rdw@icasei-dev-machine | 2019-10-29T18:34:24.112Z 1 TID-4m6zt INFO: Scheduling email_worker {"cron"=>"0 20 * * * America/Sao_Paulo", "class"=>"EmailWorker"
joaovagner@joaovagner-VPCF132FX:~/projects/icasei/docker-dev$ docker service logs up_admin_material
up_admin_material.1.h8a9if9r6aet@joaovagner-VPCF132FX | apache2: unrecognized service
up_admin_material.1.h8a9if9r6aet@joaovagner-VPCF132FX | [39] Puma starting in cluster mode...
up_admin_material.1.h8a9if9r6aet@joaovagner-VPCF132FX | [39] * Version 3.12.1 (ruby 2.3.7-p456), codename: Llamas in Pajamas
up_admin_material.1.h8a9if9r6aet@joaovagner-VPCF132FX | [39] * Min threads: 1, max threads: 1
up_admin_material.1.h8a9if9r6aet@joaovagner-VPCF132FX | [39] * Environment: development
up_admin_material.1.h8a9if9r6aet@joaovagner-VPCF132FX | [39] * Process workers: 1
up_admin_material.1.h8a9if9r6aet@joaovagner-VPCF132FX | [39] * Preloading application
up_admin_material.1.h8a9if9r6aet@joaovagner-VPCF132FX | [39] * Listening on tcp://0.0.0.0:3025
up_admin_material.1.h8a9if9r6aet@joaovagner-VPCF132FX | [39] ! WARNING: Detected 4 Thread(s) started in app boot:
# BEGIN W3TC Browser Cache
<IfModule mod_mime.c>
AddType text/css .css
AddType text/x-component .htc
AddType application/x-javascript .js
AddType application/javascript .js2
AddType text/javascript .js3
AddType text/x-js .js4
AddType video/asf .asf .asx .wax .wmv .wmx
AddType video/avi .avi
@JoaoVagner
JoaoVagner / system.yaml
Created July 31, 2019 16:23
system.yaml
version: '3'
services:
visualizer:
image: dockersamples/visualizer
networks:
- icasei
volumes:
- "/var/run/docker.sock:/var/run/docker.sock"
@JoaoVagner
JoaoVagner / nginx.conf
Created July 30, 2019 13:05
nginx.conf
worker_processes 1;
events { worker_connections 1024; }
http {
sendfile on;
upstream docker-nginx {
server nginx:80;
In Gemfile:
coffee-rails was resolved to 3.2.2, which depends on
railties was resolved to 3.2.22.2, which depends on
rdoc was resolved to 3.12.2, which depends on
json
Error while trying to run scripts of 'admin'. Exiting.
ERROR: Service 'admin' failed to build: The command '/bin/sh -c /automacao_infra/publish_apps/publish_admin production /admin/package' returned a non-zero code: 1
@JoaoVagner
JoaoVagner / log-marinho.log
Created July 3, 2019 19:00
log pro marinhpo
root@master:/home/ubuntu# docker service logs up_front2
up_front2.0.x1raapt0p5im@manager | * Starting Postfix Mail Transport Agent postfix
up_front2.0.ke7ro3kotp22@manager | * Starting Postfix Mail Transport Agent postfix
up_front2.0.ke7ro3kotp22@manager | ...done.
up_front2.0.x1raapt0p5im@manager | ...done.
up_front2.0.ke7ro3kotp22@manager | * Starting nginx nginx
up_front2.0.x1raapt0p5im@manager | * Starting nginx nginx
up_front2.0.x1raapt0p5im@manager | ...done.
up_front2.0.ke7ro3kotp22@manager | ...done.
up_front2.0.gay8jzxl0x2e@master | * Starting Postfix Mail Transport Agent postfix