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 data = ["fred", "ann", "bob", "nina"]; | |
console.log("Original data: ") | |
data.forEach(d => console.log(d)); | |
data = data.map(d => "test-" + d); | |
console.log("Updated data: ") | |
data.forEach(d => console.log(d)); |
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 data = ["fred", "ann", "bob", "nina"]; | |
console.log("Original data: ") | |
data.forEach(d => console.log(d)); | |
data = data.filter(d => d.includes("a")); | |
console.log("Updated data: ") | |
data.forEach(d => console.log(d)); |
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: 2 | |
defaults: &defaults | |
working_directory: ~/repo | |
docker: | |
- image: circleci/node:7.10 | |
jobs: | |
prequisites: | |
<<: *defaults |
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
terraform { | |
backend "gcs" { | |
bucket = "tf-state-laaso-cluster" | |
prefix = "terraform/state" | |
credentials = "terraform-deploy.json" | |
} | |
} | |
provider "google" { | |
version = "~> 2.12.0" |
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 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 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 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 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 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 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 |
OlderNewer