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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
Vagrant.configure("2") do |config| | |
config.vm.box = "ubuntu/bionic64" | |
config.vm.network "private_network", ip: "10.10.10.50" | |
config.vm.provider "virtualbox" do |vb| | |
vb.name = "linux-ubuntu" | |
vb.memory = "512" # Change the RAM amount here | |
vb.cpus = 2 # Change de CPU vCore amount here |
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
version: '3.7' | |
services: | |
mongodb: | |
image: mongo:5.0-focal | |
environment: | |
MONGO_INITDB_ROOT_USERNAME: root | |
MONGO_INITDB_ROOT_PASSWORD: root | |
MONGO_INITDB_DATABASE: computers-api | |
ports: | |
- "27017:27017" |
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 node:16-alpine | |
RUN mkdir $HOME/app | |
WORKDIR $HOME/app | |
COPY --chown=node:node package.json $HOME/app/ | |
RUN npm install | |
COPY --chown=node:node . $HOME/app |
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
#---------------------------------------------------------------------------- | |
# PROVIDERS | |
#---------------------------------------------------------------------------- | |
terraform { | |
required_version = "1.2.7" | |
required_providers { | |
google = { | |
source = "hashicorp/google" |
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
project = "gcp-project-id" | |
region = "southamerica-east1" | |
zone = "southamerica-east1-a" |
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
repos: | |
- repo: https://github.com/terraform-docs/terraform-docs | |
rev: "v0.16.0" | |
hooks: | |
- id: terraform-docs-go | |
args: ["markdown", "table", "--output-file", "README.md", "."] | |
- repo: https://github.com/antonbabenko/pre-commit-terraform | |
rev: "v1.74.1" | |
hooks: | |
- id: terraform_fmt |
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
# Local .terraform directories | |
**/.terraform/* | |
# .tfstate files | |
*.tfstate | |
*.tfstate.* | |
.infracost | |
# Crash log files | |
crash.log |
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
image: python:3.10 | |
pipelines: | |
pull-requests: | |
'**': | |
- step: | |
name: Linter | |
script: | |
- echo Linting... | |
branches: |
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 | |
ACTION=$1 | |
function help(){ | |
echo -e \ | |
"Usage: | |
1. Export ESSENTIAL_VARIABLE varible with... | |
$ export ESSENTIAL_VARIABLE=<KEY_PATH> | |
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
# Logs | |
logs | |
*.log | |
npm-debug.log* | |
yarn-debug.log* | |
yarn-error.log* | |
lerna-debug.log* | |
.pnpm-debug.log* | |
# Diagnostic reports (https://nodejs.org/api/report.html) |
OlderNewer