apk-tools 2.10.4, compiled for x86_64.
Installing and removing packages:
add Add PACKAGEs to 'world' and install
(or upgrade) them, while ensuring
that all dependencies are met
del Remove PACKAGEs from 'world' and
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* compiled with: | |
* g++ -std=c++11 main.c -Wall -lrocksdb -lbz2 -lpthread -lsnappy -lz | |
*/ | |
#include <rocksdb/c.h> | |
#include <stdio.h> | |
#include <stdlib.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu | |
RUN echo "deb http://archive.ubuntu.com/ubuntu precise main universe" > /etc/apt/sources.list | |
RUN apt-get update | |
RUN apt-get upgrade | |
RUN apt-get install -y openssh-server supervisor | |
ADD sshd.conf /etc/supervisor/conf.d/sshd.conf | |
RUN mkdir -p /var/run/sshd |
Docker provides /dev/mqueue
to containers because some applications require or take advantage of this features. Docker does not use this directly. You will see some people with the question like "why does my application run slower when inside a container than on my host?" There can be a number of reasons why but one thing with applications like apache2, it uses mqueue to help speed things up if available.
All the major distros have this enabled by default in their kernel configs and we have not heard of any downsides where you would require this to be disabled. If you know of a reason why then let us know.
Hope this helps and sorry for the gist, i wanted to explain in more than 140 chars.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -e | |
apt-get install -y curl python-setuptools python-pip python-dev python-protobuf | |
# zookeeper | |
apt-get install -y zookeeperd | |
echo 1 | dd of=/var/lib/zookeeper/myid |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
> docker run --rm -t -i --logger d2-syslog --profile privileged --net d2 --net b2 alpine ip a | |
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN qlen 1000 | |
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 | |
inet 127.0.0.1/8 scope host lo | |
valid_lft forever preferred_lft forever | |
inet6 ::1/128 scope host | |
valid_lft forever preferred_lft forever | |
3: eth0@if28: <BROADCAST,MULTICAST,UP,LOWER_UP,M-DOWN> mtu 1500 qdisc noqueue state UP | |
link/ether b2:da:6d:61:18:56 brd ff:ff:ff:ff:ff:ff | |
inet 10.10.0.52/24 brd 10.10.0.255 scope global eth0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"context" | |
"syscall" | |
"time" | |
"github.com/Sirupsen/logrus" | |
"github.com/containerd/containerd" | |
"github.com/containerd/containerd/cio" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
mkdir -p /sys/fs/cgroup/cpuset/buildkit | |
echo 5-7 >> /sys/fs/cgroup/cpuset/buildkit/cpuset.cpus |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# HELP go_gc_duration_seconds A summary of the GC invocation durations. | |
# TYPE go_gc_duration_seconds summary | |
go_gc_duration_seconds{quantile="0"} 2.1686e-05 | |
go_gc_duration_seconds{quantile="0.25"} 5.9681e-05 | |
go_gc_duration_seconds{quantile="0.5"} 7.8483e-05 | |
go_gc_duration_seconds{quantile="0.75"} 9.5376e-05 | |
go_gc_duration_seconds{quantile="1"} 0.000303761 | |
go_gc_duration_seconds_sum 0.064228354 | |
go_gc_duration_seconds_count 802 | |
# HELP go_goroutines Number of goroutines that currently exist. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Remove current lxc version which is lxc/1.0.0~alpha1-0ubuntu11 | |
sudo apt-get remove lxc | |
# Download the new pakcages with the updated | |
wget https://launchpad.net/ubuntu/+source/lxc/1.0.0~alpha1-0ubuntu12/+build/5171688/+files/lxc_1.0.0~alpha1-0ubuntu12_amd64.deb | |
wget https://launchpad.net/ubuntu/+source/lxc/1.0.0~alpha1-0ubuntu12/+build/5171688/+files/liblxc0_1.0.0~alpha1-0ubuntu12_amd64.deb | |
# Install the updated packages |
NewerOlder