This content has moved.
Please go to bagder/TRRprefs for the current incarnation of the docs, and please help us out polish and maintain this documentation!
|# -*- mode: ruby -*-|
|# vi: set ft=ruby :|
|# This script to install Kubernetes will get executed after we have provisioned the box|
|$script = <<-SCRIPT|
|# Install kubernetes|
|apt-get update && apt-get install -y apt-transport-https|
|curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key add -|
|cat <<EOF >/etc/apt/sources.list.d/kubernetes.list|
This is a story about how I tried to use Go for scripting. In this story, I’ll discuss the need for a Go script, how we would expect it to behave and the possible implementations; During the discussion I’ll deep dive to scripts, shells, and shebangs. Finally, we’ll discuss solutions that will make Go scripts work.
While python and bash are popular scripting languages, C, C++ and Java are not used for scripts at all, and some languages are somewhere in between.
Just run this from your Mac terminal and it'll drop you in a container with full permissions on the Moby VM. This also works for Docker for Windows for getting in Moby Linux VM (doesn't work for Windows Containers).
docker run -it --rm --privileged --pid=host justincormack/nsenter1
more info: https://github.com/justincormack/nsenter1
I am working on adding support for building and distributing (via PyPI) Python Wheels with C Extensions to the Python wheel and pip packages. The discussion on Distutils-SIG continues, but I believe it is fairly certain that some effort to correctly identify Linux distributions will need to be made. I've begun efforts to add this support to wheel.
If you have a Linux distribution or version of a listed distribution not in this gist, or one of the ones I have not directly verified, I could use the following:
/etc/os-release, if it exists
|# NOTE: Since Docker 1.10 (February 4, 2016), it has been possible to configure the|
|# Docker daemon using a JSON config file. On Linux, this file is normally located at|
|# /etc/docker/daemon.json. You should use this JSON config method if you are running|
|# a version of Docker that is at least 1.10!|
|# Here is an example configuration that sets the docker0 bridge IP to 192.168.254.1/24:|
|# "bip": "192.168.254.1/24"|