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 {JWT} from 'google-auth-library' | |
import * as credentials from '../../.gcloud/reporter.json' | |
import { | |
drive, | |
drive_v3 as v3, | |
} from '@googleapis/drive' | |
import { | |
GoogleSpreadsheet, | |
GoogleSpreadsheetWorksheet, | |
} from 'google-spreadsheet' |
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
# This file is a template, and might need editing before it works on your project. | |
# Select image from https://hub.docker.com/_/php/ | |
stages: | |
- build_npm | |
- build_and_test | |
# Select what we should cache between builds | |
cache: | |
paths: | |
- vendor/ |
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
registry := registry.starter-us-east-1.openshift.com | |
project := my-laravel-app | |
image := laravel-starter-kit | |
tag := latest | |
repo_or_dir := $$PWD | |
builder_image := laravel-builder | |
runtime_image := laravel-runtime |
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: Template | |
metadata: | |
name: my-laravel-app | |
objects: | |
- apiVersion: v1 | |
kind: Service | |
metadata: | |
labels: | |
app: ${NAME} |
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 := my-laravel-app | |
image := laravel-starter-kit | |
tag := latest | |
repo_or_dir := $$PWD | |
builder_image := laravel-builder | |
runtime_image := laravel-runtime | |
# Prepare the S2I builder and runtime images | |
.PHONY: s2i |
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 centos/php-71-centos7 | |
MAINTAINER Timothy Teoh <chalcedonyt@gmail.com> | |
USER root | |
RUN mkdir -p /opt/app-root/src \ | |
&& chown -R 1001:0 /opt/app-root \ | |
&& chmod -R og+rwx /opt/app-root \ | |
&& chmod -R +x $STI_SCRIPTS_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
#!/bin/bash -e | |
source ${PHP_CONTAINER_SCRIPTS_PATH}/common.sh | |
shopt -s dotglob | |
# Restore build artifacts for runtime usage | |
echo "---> Restoring build artifacts..." | |
tar -zxf laravel.tgz && rm -f laravel.tgz |
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 -e | |
if [[ "$1" == "-h" ]]; then | |
exec $STI_SCRIPTS_PATH/usage | |
fi | |
shopt -s dotglob | |
echo "---> Copying application source..." | |
mv /tmp/src/* ./ |
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 centos/nodejs-6-centos7 | |
# Add builder scripts | |
COPY bin/ $STI_SCRIPTS_PATH/ | |
USER root | |
# Set sensible home directory | |
RUN usermod -d /opt/app-root default |
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 | |
data: | |
db_password: "bXlfZGJfcGFzc3dvcmQ=" | |
laravel_app_key: "YmFzZTY0Om5mYkpydFJIZWJVZndMQTkwSWQxa0I2L0xZMXlDeDFzV0daS08zUGhkOGs9" | |
kind: Secret | |
metadata: | |
name: my-laravel-app-secrets | |
type: Opaque |
NewerOlder