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
| // Create a regional storage bucket | |
| resource "google_storage_bucket" "test_bucket" { | |
| name = "a-test-bucket-for-nothing-special" | |
| location = "europe-west2" | |
| force_destroy = true //so it's easy to clean up, you probably DON'T want this in Prod | |
| } | |
| // Service Account | |
| resource "google_service_account" "test_storage_admin" { |
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: 2.1 | |
| jobs: | |
| build: | |
| docker: | |
| - image: circleci/node:10.15 | |
| working_directory: ~/repo | |
| steps: |
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
| LOAD CSV WITH HEADERS FROM "https://raw.githubusercontent.com/TheMagoo73/neo4j-mcu/master/people.csv" AS line | |
| CREATE (person:Person {id: toInteger(line.person_id), name: line.name}) | |
| LOAD CSV WITH HEADERS FROM "https://raw.githubusercontent.com/TheMagoo73/neo4j-mcu/master/movies.csv" AS line | |
| CREATE(movie:Movie {id: toInteger(line.movie_id), name: line.name, budget: toInteger(line.budget)}) | |
| LOAD CSV WITH HEADERS FROM "https://raw.githubusercontent.com/TheMagoo73/neo4j-mcu/master/directed.csv" AS line | |
| MATCH (person:Person {id: toInteger(line.person_id)}), (movie:Movie {id: toInteger(line.movie_id)}) | |
| CREATE (person)-[:Directed]->(movie) |
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: 2.1 | |
| orbs: | |
| docker: circleci/docker@0.5.13 | |
| jobs: | |
| run_tests: | |
| working_directory: ~/react-app | |
| docker: | |
| - image: circleci/node:10.16.3 |
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
| # auto detects a good number of processes to run | |
| worker_processes auto; | |
| #Provides the configuration file context in which the directives that affect connection processing are specified. | |
| events { | |
| # Sets the maximum number of simultaneous connections that can be opened by a worker process. | |
| worker_connections 8000; | |
| # Tells the worker to accept multiple connections at a time | |
| multi_accept on; | |
| } |
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 node:11.1.0-alpine as build | |
| WORKDIR /app | |
| COPY package*.json /app/ | |
| RUN npm install | |
| COPY ./ /app/ |
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
| node_modules | |
| .gitignore | |
| build |
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: 2 | |
| defaults: &defaults | |
| working_directory: ~/repo | |
| docker: | |
| - image: gumshoe/cci-terraform:0.0.1-alpha | |
| environment: | |
| TF_IN_AUTOMATION: true | |
| GOOGLE_APPLICATION_CREDENTIALS: ~/repo/terraform-deploy.json |
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 alpine:3.10 | |
| RUN apk update | |
| RUN apk add --no-cache wget openssh git bash tar gzip ca-certificates | |
| RUN rm -rf /var/cache/apk/* | |
| RUN wget --quiet https://releases.hashicorp.com/terraform/0.12.6/terraform_0.12.6_linux_amd64.zip \ | |
| && unzip terraform_0.12.6_linux_amd64.zip \ |
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
| terraform { | |
| backend "gcs" { | |
| bucket = "tf-state-laaso-cluster" | |
| prefix = "terraform/state" | |
| credentials = "terraform-deploy.json" | |
| } | |
| } | |
| provider "google" { | |
| version = "~> 2.12.0" |