about summary refs log tree commit diff
diff options
context:
space:
mode:
authorVincent Ambo <vincent@kivra.com>2016-03-24T17·18+0100
committerVincent Ambo <vincent@kivra.com>2016-03-24T17·18+0100
commit1e3a90646ed91c45346c440766b7352dda75c2f7 (patch)
treed9998c37cabbd09ba6dc413664c55a7158b3f36f
parentc6feb173c5a7f936eaac4ea8f11d68ccdfb4f0a0 (diff)
[quassel] Add quassel dockerfile & RC
-rw-r--r--quassel/Dockerfile13
-rw-r--r--quassel/quassel-rc.yaml27
2 files changed, 40 insertions, 0 deletions
diff --git a/quassel/Dockerfile b/quassel/Dockerfile
new file mode 100644
index 000000000000..d7ad1e6a3d86
--- /dev/null
+++ b/quassel/Dockerfile
@@ -0,0 +1,13 @@
+FROM alpine
+MAINTAINER Vincent Ambo <tazjin@gmail.com>
+
+# Install Quassel server packages
+RUN apk update && apk add quassel-core qt-sqlite icu-libs
+
+# Location for mounting Quassel state and configuration volume
+VOLUME /var/lib/quassel
+
+EXPOSE 4242
+USER quassel
+
+CMD /usr/bin/quasselcore
diff --git a/quassel/quassel-rc.yaml b/quassel/quassel-rc.yaml
new file mode 100644
index 000000000000..f3586c0aa81a
--- /dev/null
+++ b/quassel/quassel-rc.yaml
@@ -0,0 +1,27 @@
+apiVersion: v1
+kind: ReplicationController
+metadata:
+  name: quassel
+spec:
+  replicas: 1
+  selector:
+    app: quassel
+  template:
+    metadata:
+      labels:
+        app: quassel
+    spec:
+      containers:
+        - image: eu.gcr.io/composite-watch-759/quassel
+          imagePullPolicy: Always
+          name: quassel
+          ports:
+            - containerPort: 4242
+          volumeMounts:
+            - name: quassel-storage
+              mountPath: /var/lib/quassel
+      volumes:
+        - name: quassel-storage
+          gcePersistentDisk:
+            pdName: quassel-storage
+            fsType: ext4