Skip to content

Instantly share code, notes, and snippets.

💕code 💕

Liao Gangzheng mosesliao

💕code 💕
View GitHub Profile
View nodejsDockerfileAfter
FROM node:8.12-slim as BUILD_IMAGE
# install the needed libraries
RUN apt-get update \
&& apt-get install -y \
# install node-prune (
RUN curl -sfL | bash -s -- -b /usr/local/bin
mosesliao / nodejsDockerfileBefore
Last active February 16, 2021 05:30
the nodejs Dockerfiles before attempts to reduce size
View nodejsDockerfileBefore
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
mosesliao / DormaJenkinsfile
Last active May 20, 2021 22:55
Example of use of shared libraries
View DormaJenkinsfile
library identifier: 'jenkins-shared-libraries@master', retriever: modernSCM(
[$class: 'GitSCMSource',
remote: 'ssh://',
credentialsId: 'jenkins-bitbucket-ssh-private-key'])
pipeline {
agent any
environment {
TEAMS_WEBHOOK_URL = credentials('digital-apac-webhook-url-for-ms-teams')
mosesliao / docker-compose.yml
Created April 14, 2020 15:58
docker-compose.yml file to run jenkins on localhost
View docker-compose.yml
version: "3.7"
container_name: jenkins
image: jenkins:latest
- "8080:8080"
- "50000:50000"
mosesliao / Dockerfile
Last active January 23, 2021 08:08
View Dockerfile
FROM drupal:7.59-apache
LABEL company="Singapore Press Holdings Ltd" \
maintainer="Moses Liao<>"
RUN pecl update-channels;
# Install Composer
RUN curl -sS | php -- --install-dir=/usr/local/bin --filename=composer
View index.html
<!DOCTYPE html>
<meta charset="utf-8"/> <meta name="viewport" content="width=device-width, initial-scale=1.0">
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"/>
View default.ctp
* CakePHP(tm) : Rapid Development Framework (
* Copyright (c) Cake Software Foundation, Inc. (
* 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. (