Skip to content

Instantly share code, notes, and snippets.

View mosesliao's full-sized avatar
😀
💕code 💕

Liao Gangzheng Moses mosesliao

😀
💕code 💕
View GitHub Profile
<?php
/**
* CakePHP(tm) : Rapid Development Framework (https://cakephp.org)
* Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
*
* Licensed under The MIT License
* For full copyright and license information, please see the LICENSE.txt
* Redistributions of files must retain the above copyright notice.
*
* @copyright Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>
CakePHP: the rapid development php framework:
Transactions </title>
<link href="/favicon.ico" type="image/x-icon" rel="icon"/><link href="/favicon.ico" type="image/x-icon" rel="shortcut icon"/>
@mosesliao
mosesliao / Dockerfile
Last active January 23, 2021 08:08
DephpuggerDocker
FROM drupal:7.59-apache
LABEL company="Singapore Press Holdings Ltd" \
maintainer="Moses Liao<moseslgz@sph.com.sg>"
RUN pecl update-channels;
# Install Composer
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
@mosesliao
mosesliao / docker-compose.yml
Created April 14, 2020 15:58
docker-compose.yml file to run jenkins on localhost
version: "3.7"
services:
jenkins:
container_name: jenkins
image: jenkins:latest
ports:
- "8080:8080"
- "50000:50000"
volumes:
@mosesliao
mosesliao / DormaJenkinsfile
Last active May 20, 2021 22:55
Example of use of shared libraries
library identifier: 'jenkins-shared-libraries@master', retriever: modernSCM(
[$class: 'GitSCMSource',
remote: 'ssh://git@bitbucket.mycompany.net/smar/jenkins-shared-libraries.git',
credentialsId: 'jenkins-bitbucket-ssh-private-key'])
pipeline {
agent any
environment {
TEAMS_WEBHOOK_URL = credentials('digital-apac-webhook-url-for-ms-teams')
@mosesliao
mosesliao / nodejsDockerfileBefore
Last active February 16, 2021 05:30
the nodejs Dockerfiles before attempts to reduce size
FROM node:8.12
# version of app
LABEL version="1.1"
RUN apt-get update
RUN apt-get install -y git
WORKDIR /home/node/app
COPY . /home/node/app
FROM node:8.12-slim as BUILD_IMAGE
# install the needed libraries
RUN apt-get update \
&& apt-get install -y \
git
# install node-prune (https://github.com/tj/node-prune)
RUN curl -sfL https://install.goreleaser.com/github.com/tj/node-prune.sh | bash -s -- -b /usr/local/bin