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 circleci/node | |
ARG CLOUD_SDK_VERSION=251.0.0 | |
ENV CLOUD_SDK_VERSION=$CLOUD_SDK_VERSION | |
ARG INSTALL_COMPONENTS | |
ENV PATH /opt/google-cloud-sdk/bin/:/home/circleci/.yarn/bin:$PATH | |
RUN sudo apt-get update -qqy && \ | |
sudo apt-get install -qqy \ | |
python-dev \ |
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:10-alpine | |
ARG CLOUD_SDK_VERSION=251.0.0 | |
ENV CLOUD_SDK_VERSION=$CLOUD_SDK_VERSION | |
ENV PATH /google-cloud-sdk/bin:$(yarn global bin):$PATH | |
RUN apk --no-cache add \ | |
curl \ | |
python \ | |
py-crcmod \ | |
bash \ |
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
stages: | |
- deploy | |
deploy_app: | |
image: bitnami/kubectl:latest | |
stage: deploy | |
environment: production | |
script: | |
- USER_TOKEN=$(cat /var/run/secrets/kubernetes.io/serviceaccount/token) | |
- CERTIFICATE_AUTHORITY_DATA=$(cat /var/run/secrets/kubernetes.io/serviceaccount/ca.crt | base64 -i -w0 -) | |
- kubectl config set-cluster k8s --server="https://kubernetes.default.svc" |
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
apiVersion: rbac.authorization.k8s.io/v1beta1 | |
kind: ClusterRoleBinding | |
metadata: | |
name: gitlab-admin | |
roleRef: | |
apiGroup: rbac.authorization.k8s.io | |
kind: ClusterRole | |
name: cluster-admin | |
subjects: | |
- kind: ServiceAccount |
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
stages: | |
- deploy | |
variables: | |
KUBE_CONFIG: "content_of_base64_kubeconfig.yml_goes_here" | |
deploy_app: | |
image: bitnami/kubectl:latest | |
stage: deploy | |
environment: production | |
only: | |
- master |
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
apiVersion: v1 | |
kind: Service | |
metadata: | |
name: prisma | |
namespace: prisma | |
spec: | |
ports: | |
- port: 4466 | |
targetPort: 4466 | |
protocol: TCP |
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
apiVersion: v1 | |
kind: ConfigMap | |
metadata: | |
name: prisma-configmap | |
namespace: prisma | |
labels: | |
stage: production | |
name: prisma | |
app: prisma | |
data: |
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/ |
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
import loadable from './loadable'; | |
const AsyncComponent = loadable(import('./my-component')); |
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
import "regenerator-runtime/runtime"; | |
import React from "react"; | |
import { shallow, mount } from "enzyme"; | |
import sinon from "sinon"; | |
import { reducer as formReducer } from "redux-form"; | |
import { createStore, combineReducers } from "redux"; | |
import { Provider } from "react-redux"; | |
import userReducer from "../../redux/user-reducer"; | |
import ReserveRedux, { Reserve } from "./reserve"; |
NewerOlder