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
{ | |
"suggest.noselect": false, | |
"diagnostic.errorSign": "✘", | |
"diagnostic.warningSign": "!", | |
"diagnostic.infoSign": "?", | |
"diagnostic.checkCurrentLine": true, | |
"coc.preferences.hoverTarget": "float", | |
"coc.preferences.formatOnSaveFiletypes": [ | |
"javascript", | |
"html", |
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 registry.hub.docker.com/library/postgres:10 | |
# Patroni install from https://github.com/zalando/patroni | |
# OpenShift config from https://github.com/BCDevOps/platform-services | |
# PostGIS install adapted from https://github.com/appropriate/docker-postgis | |
ARG PGHOME=/home/postgres | |
ENV POSTGIS_MAJOR 2.5 | |
ENV POSTGIS_VERSION 2.5.4+dfsg-1.pgdg90+1 |
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
:8080 | |
root * /app/src | |
encode gzip | |
route { | |
reverse_proxy /api/* {$WALLY_BACKEND_SERVICE}:8000 | |
reverse_proxy /docs {$WALLY_BACKEND_SERVICE}:8000 | |
file_server |
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
""" Functions for interacting with the Common Document Generator (CDOGS) API """ | |
import base64 | |
import requests | |
import logging | |
from fastapi import HTTPException | |
from api import config |
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:10 as build | |
WORKDIR /app | |
COPY package*.json /app/ | |
RUN npm ci | |
COPY . . |
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
#!groovy | |
@Library('bcgov-library') _ | |
import bcgov.GitHubHelper | |
// Notify stage status and pass to Jenkins-GitHub library | |
void notifyStageStatus (String name, String status) { | |
GitHubHelper.createCommitStatus( | |
this, | |
sh(returnStdout: true, script: 'git rev-parse HEAD'), // this is the most recent commit ID | |
status, |
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
apiVersion: template.openshift.io/v1 | |
kind: Template | |
metadata: | |
annotations: | |
description: |- | |
Patroni Postgresql database cluster, with persistent storage. | |
iconClass: icon-postgresql | |
openshift.io/display-name: Patroni Postgresql (Persistent) | |
openshift.io/long-description: This template deploys a patroni postgresql HA | |
cluster with persistent storage. |
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
apiVersion: batch/v1 | |
kind: Job | |
metadata: | |
name: myapp-db-migrate | |
namespace: myapp | |
spec: | |
backoffLimit: 5 | |
activeDeadlineSeconds: 900 | |
template: | |
spec: |