I hereby claim:
- I am ipmb on github.
- I am ipmb (https://keybase.io/ipmb) on keybase.
- I have a public key ASAhIL1zFberH0RNfVsAfqZOpwcXxLWpcQgGfaSywHmS0wo
To claim this, I am signing this object:
FROM ubuntu:18.04 | |
ARG REPO=varnish60lts | |
RUN set -ex && \ | |
apt-get update -qq && \ | |
apt-get -yq install curl apt-transport-https build-essential libtool autotools-dev automake gnupg && \ | |
echo "deb https://packagecloud.io/varnishcache/${REPO}/ubuntu/ bionic main" > /etc/apt/sources.list.d/varnish.list && \ | |
curl -L https://packagecloud.io/varnishcache/${REPO}/gpgkey | apt-key add && \ | |
apt-get update -qq && \ | |
apt-get -yq install varnish varnish-dev |
I hereby claim:
To claim this, I am signing this object:
shiv -o test.pyz -e pytest:main . | |
./test.pyz --pyargs my_tests | |
echo $? |
$ sudo systemctl status [email protected] | |
● [email protected] - Saltdash v0.9.4 | |
Loaded: loaded (/etc/systemd/system/[email protected]; indirect; vendor preset: enabled) | |
Active: active (running) since Tue 2018-05-15 23:25:08 UTC; 3 weeks 1 days ago | |
Main PID: 25580 (python3.6) | |
Tasks: 5 (limit: 4704) | |
CGroup: /system.slice/system-saltdash.slice/[email protected] | |
└─25580 /usr/bin/python3.6 /srv/saltdash/saltdash-0.9.4.pyz serve | |
Jun 07 18:15:42 web-prod python3.6[25580]: localhost - - [07/Jun/2018:18:15:42 +0000] "GET /-/alive/ HTTP/1.1" 200 - "-" "Go-http-client/1.1 |
FROM ubuntu:14.04 | |
ENV VARNISHVERSION=52 MODSVERSION=0.15.0 | |
RUN apt-get update && \ | |
apt-get -yq install curl gnupg apt-transport-https build-essential pkg-config \ | |
libpcre3-dev automake autogen libtool libreadline6-dev \ | |
libeditline0 libeditline-dev python-docutils | |
RUN curl -sL https://packagecloud.io/varnishcache/varnish$VARNISHVERSION/gpgkey | apt-key add - && \ | |
printf "deb https://packagecloud.io/varnishcache/varnish$VARNISHVERSION/ubuntu/ trusty main\ndeb-src https://packagecloud.io/varnishcache/varnish$VARNISHVERSION/ubuntu/ trusty main" > /etc/apt/sources.list.d/varnish.list && \ | |
apt-get update && \ |
# UWSGI_AS_LIB=`pwd`/saltdash/libuwsgi.so pip install uwgi | |
# via https://gist.github.com/sixninetynine/c5c2c0047ea510d9db6c4f99f09c341e | |
import sys | |
import os | |
import ctypes | |
try: | |
from importlib import resources | |
except ImportError: | |
import importlib_resources as resources |
from blockstack_zones import parse_zone_file | |
with open('/path/to/your/zonefile') as f: | |
full = f.read() | |
ZONE = 'your-domain.com' | |
record_template = """ | |
resource "dyn_record" "{slug}" {{ | |
zone = "{zone}" | |
name = "{name}" |
Trying to use kitchen-docker. It works great when passing privileged: true
to the driver, but some hosted CI systems won't let you do that for security reasons. After trying a million different incantations, I got very close with:
image: ubuntu:18.04
run_options: --tmpfs=/run --tmpfs=/run/lock -v /sys/fs/cgroup/systemd:/sys/fs/cgroup/systemd --stop-signal=SIGRTMIN+3
run_command: /sbin/init
note: kitchen does some extra things like including -e container=docker
$ time python setup.py bdist_wheel > /dev/null | |
warning: build_py: byte-compiling is disabled, skipping. | |
warning: install_lib: byte-compiling is disabled, skipping. | |
real 0m0.922s | |
user 0m0.664s | |
sys 0m0.236s |