Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@markllama
markllama / rkt-get-images
Last active August 29, 2015 14:22
Rocket - Get Images
sudo rkt images
KEY APPNAMEIMPORTTIME LATEST
sha512-6d9abded1af3a9a58c5bb34dcb4664ef99c8a1f9e121fcb8e69ed6705b4a39e8 fedora-rocketfiles/bash:1.2.1 2015-06-05 18:37:40.338 -0400 EDT false
sha512-822778138a2ac9cfcfbd0565cebc1206c4f9f224933632d17c21230a6d4e5f70 coreos.com/rkt/stage1:0.0.1 2015-06-05 18:47:09.233 -0400 EDT false
sudo rkt run sha512-6d9abded1af3a9a58c5bb34dcb4664ef99c8a1f9e121fcb8e69ed6705b4a39e8
...
sudo rkt run sha512-6d9abded1af
...
@markllama
markllama / rkt-run-biash
Last active August 29, 2015 14:22
Rocket - run a simple container
sudo rkt run https://github.com/fedora-cloud/Fedora-rktfiles/releases/download/v0.5.1/bash-1.2.1-linux-amd64.aci 2>&1 | more
rkt: fetching image from https://github.com/fedora-cloud/Fedora-rktfiles/release
s/download/v0.5.1/bash-1.2.1-linux-amd64.aci
Downloading signature from https://github.com/fedora-cloud/Fedora-rktfiles/relea
ses/download/v0.5.1/bash-1.2.1-linux-amd64.aci.asc
Downloading signature: [=======================================] 473 B/473 B
Downloading ACI: [ ] 16.4 KB/2.81 MB
Downloading ACI: [=============================================] 2.81 MB/2.81 MB
rkt: signature verified:
@markllama
markllama / rkt-add-trust-cert
Created June 5, 2015 22:21
Rocket - Add a trust certificate
sudo rkt trust --prefix coreos.com/etcd
Prefix: "coreos.com/etcd"
Key: "https://coreos.com/dist/pubkeys/aci-pubkeys.gpg"
GPG key fingerprint is: 8B86 DE38 890D DB72 9186 7B02 5210 BD88 8818 2190
CoreOS ACI Builder <release@coreos.com>
Are you sure you want to trust this key (yes/no)?
yes
Trusting "https://coreos.com/dist/pubkeys/aci-pubkeys.gpg" for prefix "coreos.com/etcd".
Added key for prefix "coreos.com/etcd" at "/etc/rkt/trustedkeys/prefix.d/coreos.com/etcd/8b86de38890ddb7291867b025210bd8888182190"
wget https://github.com/markllama/rkt/releases/download/v0.5.6/rkt-0.5.6-1_a07bdc3.fc22.x86_64.rpm
dnf install rkt-0.5.6-1_a07bdc3.fc22.x86_64.rpm
rpm -ql -p ~/rpmbuild/RPMS/x86_64/rkt-0.5.6-1_a07bdc3.fc22.x86_64.rpm
/usr/bin/actool
/usr/bin/rkt
/usr/lib/systemd/system/rkt-gc.service
/usr/lib/systemd/system/rkt-gc.timer
/usr/lib/systemd/system/rkt-metadata.service
wget https://github.com/coreos/rkt/releases/download/v0.5.6/rkt-v0.5.6.tar.gz
tar -xvf rkt-v0.5.6.tar.gz
rkt-v0.5.6/
rkt-v0.5.6/stage1.aci
rkt-v0.5.6/rkt
tar -tzf rkt-v0.5.6/stage1.aci
rootfs
rootfs/diagexec
rootfs/enter
@markllama
markllama / https-service.json
Created December 19, 2014 21:01
Kubernetes service spec for HTTPs
{
"id": "https",
"kind": "Service",
"apiVersion": "v1beta1",
"port": 443,
"publicIPs": ["10.245.1.5"],
"selector": {
"name": "pulphttps"
},
}
@markllama
markllama / http-service.json
Created December 19, 2014 20:56
Kubernetes service spec for HTTP
{
"id": "http",
"kind": "Service",
"apiVersion": "v1beta1",
"port": 80,
"publicIPs": ["10.245.1.5"],
"selector": {
"name": "pulphttp"
},
}
@markllama
markllama / kube_qpid_service.json
Created December 19, 2014 14:55
Kubernetes service description for QPID
{
"id": "msg",
"kind": "Service",
"apiVersion": "v1beta1",
"port": 5672,
"publicIPs": ["10.245.1.3"],
"selector": {
"name": "msg"
}
}
@markllama
markllama / docker_pulp_apache_run_sh
Created October 27, 2014 16:43
Initialize and start the Apache/WSGI services for Pulp
#!/bin/sh
#
# Configure the Apache daemon and WSGI application
# Install SSL certificates
# Configure the web tree in the volumes
#
set -x
# Requires environment variables:
#
@markllama
markllama / docker_pulp_apache_Dockerfile
Last active August 29, 2015 14:08
The description of a Pulp Apache/WSGI service container
FROM markllama/pulp-base
MAINTAINER Mark Lamourine <markllama@gmail.com>
#
# docker run -d --name pulp-apache \
# -v /dev/log:/dev/log --volumes-from pulp-content
# -p 443:443 \
# -e PULP_SERVER_NAME=pulp.example.com \
# -e SSL_TARBALL_URL=<url> markllama/pulp-apache
#