Skip to content

Instantly share code, notes, and snippets.

@zbal
zbal / README.md
Created January 15, 2019 07:23 — forked from xuqingfeng/README.md
Demo terraform script for spawning k8s multi AZ cluster in AliCloud

Install terraform

Refer to the official documentation and download page:

Configure

export ALICLOUD_ACCESS_KEY="anaccesskey"
export ALICLOUD_SECRET_KEY="asecretkey"
@zbal
zbal / Dockerfile
Created January 28, 2019 04:35
Dockerfile - Multi step build process for node.js
# One single Dockerfile with a multi step build process
# 1. build all native extensions, dependencies, etc.
# 2. copy resulting files into a clean container
FROM node:10-alpine as builder
# Add core packages to allow building native extensions
RUN apk add --no-cache make gcc g++ python
RUN npm install -g yarn
WORKDIR /src
COPY package.json yarn.lock /src/

Keybase proof

I hereby claim:

  • I am zbal on github.
  • I am zbal (https://keybase.io/zbal) on keybase.
  • I have a public key ASADXMRVxLoYRxj6Xx5egfwgpjN0wudB_hSwU0J-lWWVFgo

To claim this, I am signing this object: