Skip to content

Instantly share code, notes, and snippets.

Avatar
😀
💕code 💕

Liao Gangzheng Moses 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 \
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
@mosesliao
mosesliao / nodejsDockerfileBefore
Last active Feb 16, 2021
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
mosesliao / DormaJenkinsfile
Last active Jan 26, 2021
Example of use of shared libraries
View DormaJenkinsfile
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 / docker-compose.yml
Created Apr 14, 2020
docker-compose.yml file to run jenkins on localhost
View docker-compose.yml
version: "3.7"
services:
jenkins:
container_name: jenkins
image: jenkins:latest
ports:
- "8080:8080"
- "50000:50000"
volumes:
@mosesliao
mosesliao / Dockerfile
Last active Jan 23, 2021
DephpuggerDocker
View Dockerfile
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
View index.html
<!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"/>
View default.ctp
<?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)