This file contains 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 oraclelinux | |
RUN yum install -y oracle-nodejs-release-el7 oracle-release-el7 && yum install -y node-oracledb-node10 | |
RUN npm i -g yarn | |
RUN echo /usr/lib/oracle/18.3/client64/lib > /etc/ld.so.conf.d/oracle-instantclient.conf | |
RUN ldconfig | |
ADD package.json /tmp/package.json | |
RUN cd /tmp && yarn |
This file contains 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
sudo /bin/dd if=/dev/zero of=/var/swap.1 bs=1M count=1024 && \ | |
sudo /sbin/mkswap /var/swap.1 && \ | |
sudo chmod 600 /var/swap.1 && \ | |
sudo /sbin/swapon /var/swap.1 |
This file contains 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
var regions = { | |
nordeste: [71, 73, 74, 75, 77, 79, 81, 82, 83, 85, 86, 87, 88, 89], | |
norte: [63, 68, 69, 84, 91, 92, 93, 94, 95, 96, 97, 98, 99], | |
centroeste: [61, 62, 64, 65, 66, 67], | |
sul: [41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 53, 54, 55], | |
sudeste: [11, 12, 13, 14, 15, 16, 17, 18, 19, 21, 22, 24, 27, 28, 31, 32, 33, 34, 35, 37, 38] | |
}; |
This file contains 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
sudo graylog-ctl set-email-config smtp.gmail.com --port=587 [email protected] --password=1! [email protected] --no-ssl |
This file contains 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
sudo mkdir -p /var/lib/openproject | |
docker run -d -p 8881:80 \ | |
-e SECRET_KEY_BASE=s \ | |
-e EMAIL_DELIVERY_METHOD=smtp \ | |
-e SMTP_ADDRESS=smtp.sendgrid.net \ | |
-e SMTP_PORT=587 \ | |
-e SMTP_DOMAIN=smtp.gmail.com \ | |
-e SMTP_AUTHENTICATION=plain \ | |
-e SMTP_ENABLE_STARTTLS_AUTO=true \ | |
-e [email protected] \ |
This file contains 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
aws ec2 modify-instance-attribute --instance-id i-xxxxxxxxxxxxxxx --block-device-mappings "[{\"DeviceName\": \"/dev/sda1\",\"Ebs\":{\"DeleteOnTermination\":false}}]" |
This file contains 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
const restify = require('restify'); | |
const plugins = require('restify-plugins'); | |
const nodemailer = require('nodemailer'); | |
const ses = require('nodemailer-ses-transport'); | |
const winston = require('winston'); | |
require('winston-loggly-bulk'); | |
require('dotenv').config(); | |
winston.add(winston.transports.Loggly, { |
This file contains 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 | |
appname="sum12factor" | |
port=8080 | |
run() { | |
echo "docker run \ | |
-e DOCKER_INSTANCE=$instance \ | |
-e DOCKER_PORT=$port \ | |
--name=$appname$instance \ | |
-p $port:8080 \ |
This file contains 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 | |
appname="sum12factor" | |
run() { | |
echo "docker run \ | |
--name=$appname \ | |
-p 8080:8080 \ | |
-d \ | |
--restart=unless-stopped $appname" | |
} |
This file contains 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 mhart/alpine-node:6 | |
WORKDIR /src | |
ADD . . | |
RUN apk add --no-cache make gcc g++ python | |
RUN npm install | |
EXPOSE 8080 | |
CMD ["node", "index.js"] |
NewerOlder