With Audio and Screen Sharing Enabled
Add the i386
architecture to the list of dpkg
architectures :
sudo dpkg --add-architecture i386
[Unit] | |
Description=Keeps a tunnel to 'remote.example.com' open | |
After=network.target | |
[Service] | |
User=autossh | |
# -p [PORT] | |
# -l [user] | |
# -M 0 --> no monitoring | |
# -N Just open the connection and do nothing (not interactive) |
# Add this snippet to the top of your playbook. | |
# It will install python2 if missing (but checks first so no expensive repeated apt updates) | |
# [email protected] | |
- hosts: all | |
gather_facts: False | |
tasks: | |
- name: install python 2 | |
raw: test -e /usr/bin/python || (apt -y update && apt install -y python-minimal) |
FROM ubuntu:16.04 | |
RUN apt-get update && apt-get --yes --no-install-recommends install \ | |
curl libltdl7 iptables python-dev git python-setuptools python-pip gcc iproute2 | |
RUN easy_install --upgrade pip | |
RUN curl -Ok https://apt.dockerproject.org/repo/pool/main/d/docker-engine/docker-engine_1.12.0-0~xenial_amd64.deb | |
RUN dpkg -i docker-engine_1.12.0-0~xenial_amd64.deb | |
RUN echo 'DOCKER_OPTS="-D --cluster-store=etcd://localhost:2379"' >> /etc/default/docker | |
RUN curl -Lk https://github.com/coreos/etcd/releases/download/v2.3.7/etcd-v2.3.7-linux-amd64.tar.gz | tar zx -C /usr/local/ | |
RUN ln -s /usr/local/etcd-v2.3.7-linux-amd64/etcd /usr/local/bin/etcd |
We Gophers, love table-driven-tests, it makes our unittesting structured, and makes it easy to add different test cases with ease.
Let’s create our table driven test, for convenience, I chose to use t.Log
as the test function.
Notice that we don't have any assertion in this test, it is not needed to for the demonstration.
func TestTLog(t *testing.T) {
t.Parallel()