(將於 10 月 1 日完成)
為了活動進行順利,請在出席活動前,確實備妥下列事項。
...
import sbt._ | |
import Keys._ | |
import com.typesafe.sbt.osgi.SbtOsgi._ | |
import sbtunidoc.Plugin._ | |
import UnidocKeys._ | |
import sbtassembly.Plugin._ | |
import AssemblyKeys._ | |
object Build extends Build { |
#!/usr/bin/env perl | |
# | |
# Simple Docker CLI wrapper: | |
# - let "docker pull" to pull public registry images | |
# from private registry. | |
# - let other "docker" commands to act as before. | |
# | |
# Will use environment variable PRIVATE_DOCKER_REGISTRY | |
# to pull images. | |
# |
Vagrant.configure(2) do |config| | |
config.vm.box = "chef/centos-6.6" | |
config.vm.provision "shell", inline: <<-SHELL | |
rpm -ivh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm | |
yum -y install libmcrypt-devel nodejs npm | |
npm install mcrypt | |
# vagrant ssh ; cd /vagrant | |
# node example.js | |
SHELL |
FROM node:0.10.36-slim | |
WORKDIR /opt | |
COPY . /opt | |
EXPOSE 8080 | |
CMD [ "node", "hello.js" ] |
#!/usr/bin/env python | |
# Adapted from Mark Mandel's implementation | |
# https://github.com/ansible/ansible/blob/devel/plugins/inventory/vagrant.py | |
import argparse | |
import json | |
import paramiko | |
import subprocess | |
import sys | |
FROM alpine | |
VOLUME ["/livecode"] | |
CMD ["/livecode/hello.sh"] |
1. Install Docker CE and enable Kubernetes: | |
See Figure 1 and 2 in https://medium.com/slalom-technology/get-kubernetes-running-locally-on-osx-and-windows-b3b5f176b5bb | |
2. (Optionally) Install k8s dashboard: | |
``` | |
$ kubectl apply -f https://raw.githubusercontent.com/kubernetes/dashboard/v1.10.1/src/deploy/recommended/kubernetes-dashboard.yaml | |
$ kubectl proxy | |
``` |
--- | |
# | |
# Ambassador version: 0.52.0 | |
# | |
# Adapted from: https://getambassador.io/yaml/ambassador/ambassador-rbac.yaml | |
# See: https://www.getambassador.io/user-guide/getting-started/ | |
# | |
apiVersion: v1 | |
kind: Service |
# | |
# http static server one-liners | |
# | |
FROM busybox:1.30 | |
WORKDIR /app | |
COPY . . | |
RUN chmod +x run.sh |