Skip to content

Instantly share code, notes, and snippets.

@tjdett
tjdett / systemd-rkt-pod-manifest.json
Created July 6, 2016 04:30
Using docker://fedora/systemd-systemd with rkt to run systemd in an app container
{
"acVersion": "0.8.4",
"acKind": "PodManifest",
"apps": [
{
"name": "systemd",
"image": {
"id": "sha512-1a77404ea8db0b2577ca969cbc26bd57ee227a8b2e52b483e2581d11ccb64f22"
},
"app": {
$ sudo rkt run --interactive --pod-manifest systemd-manifest.json
image: using image from local store for image name coreos.com/rkt/stage1-coreos:1.9.1
networking: loading networks from /etc/rkt/net.d
networking: loading network default with type ptp
Failed to mount tmpfs at /sys/fs/cgroup: No such file or directory
Failed to mount cgroup at /sys/fs/cgroup/systemd: No such file or directory
Freezing execution.
$ sudo `which rkt` run --interactive --dir=/dev/shm/rkt --insecure-options=image docker://fedora/systemd-systemd --set-env 'container=docker' --volume volume-sys-fs-cgroup,kind=host,source=/sys/fs/cgroup,readOnly=true
image: using image from local store for image name coreos.com/rkt/stage1-coreos:1.6.0
image: using image from local store for url docker://fedora/systemd-systemd
networking: loading networks from /etc/rkt/net.d
networking: loading network default with type ptp
Couldn't find an alternative telinit implementation to spawn.
exit 1
$ sudo `which rkt` run --interactive --dir=/dev/shm/rkt --insecure-options=image docker://fedora/systemd-systemd --set-env 'container=rkt' --volume volume-sys-fs-cgroup,kind=host,source=/sys/fs/cgroup,readOnly=true
image: using image from local store for image name coreos.com/rkt/stage1-coreos:1.6.0
@tjdett
tjdett / Dockerfile
Created January 20, 2016 03:21
Attempt at Slicer via X11 socket
FROM centos:7
MAINTAINER Tim Dettrick <t.dettrick@uq.edu.au>
RUN SLICER_URL="http://download.slicer.org/bitstream/461634" && \
curl -v -s -L $SLICER_URL | tar xz -C /tmp && \
mv /tmp/Slicer* /opt/slicer
RUN yum install -y mesa-libGLU libSM libXrender libXt fontconfig
RUN mkdir -p /data && chmod a+rwx /data
@tjdett
tjdett / create_image.sh
Created September 17, 2015 23:22
Create OpenStack Glance image for CoreOS
#!/bin/bash
CURRENT_IMAGE_URL="http://alpha.release.core-os.net/amd64-usr/current/coreos_production_openstack_image.img.bz2"
rm coreos_production_openstack_image.{img,raw} coreos.{raw,qcow2} 2> /dev/null
curl -s http://alpha.release.core-os.net/amd64-usr/current/version.txt | grep COREOS_VERSION > ./current-version.sh
source ./current-version.sh
echo "Current CoreOS version is $COREOS_VERSION"
@tjdett
tjdett / Dockerfile
Created August 6, 2015 05:29
Dockerfile which builds Octave EL7 RPMs from rawhide sources
FROM centos:7
RUN yum update -y && \
yum install -y rpm-build yum-utils && \
yum clean all
RUN RAWHIDE_BASE="https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/source/SRPMS/o/" && \
RPM_FILE=$(curl -s "$RAWHIDE_BASE" | grep -Po 'octave-[0-9\.\-]+\.fc[0-9]+\.src\.rpm' | head -1) && \
rpm -Uvh ${RAWHIDE_BASE}${RPM_FILE}
@tjdett
tjdett / install_blender.sh
Created July 27, 2015 00:52
Install Blender on dit4c-container-x11
#!/bin/sh
BLENDER_VERSION=blender-2.75a-linux-glibc211-x86_64
sudo yum install -y libGLU bzip2
curl -L -# http://mirror.cs.umn.edu/blender.org/release/Blender2.75/${BLENDER_VERSION}.tar.bz2 | tar xj -C /opt
ln -s /opt/${BLENDER_VERSION} /opt/blender
ln -s /opt/blender/blender /usr/local/bin/blender
@tjdett
tjdett / cell-info.json
Last active August 29, 2015 14:25
Mock file for NeCTAR RC cell dashboard
{
"cells": {
"melbourne-np": {
"public_ip_addresses": {
"total": 1000,
"used": 843
},
"ram": [
{ "size": 10600, "units": 3 },
{ "size": 12288, "units": 1 },
@tjdett
tjdett / install_gdis.sh
Last active August 29, 2015 14:24
Install script for GDIS on DIT4C
#!/bin/sh
fsudo yum install -y gtk2-devel mesa-libGLU-devel expect
# Install gtkglext from unofficial RPMs
fsudo yum localinstall -y \
http://www.melvilletheatre.com/articles/el7/gtkglext-libs-1.2.0-21.el7.centos.x86_64.rpm \
http://www.melvilletheatre.com/articles/el7/gtkglext-devel-1.2.0-21.el7.centos.x86_64.rpm
curl -L https://github.com/arohl/gdis/archive/master.tar.gz | tar xzv -C /tmp
@tjdett
tjdett / install_vmd.sh
Last active August 29, 2015 14:23
VMD install on dit4c/dit4c-container-x11:fakeroot
#!/bin/sh
cd ~
curl http://www.ks.uiuc.edu/Research/vmd/vmd-1.9.2/files/final/vmd-1.9.2.bin.LINUXAMD64.opengl.tar.gz | tar xzv
cd vmd-1.9.2
./configure
cd src
fsudo make install
cd ~
rm -rf vmd-1.9.2