瀏覽代碼

build & install both libvte-ng & termite (draft)

Fabian Peter Hammerle 5 年之前
當前提交
0d533dc4a4
共有 2 個文件被更改,包括 41 次插入0 次删除
  1. 32 0
      Dockerfile
  2. 9 0
      docker-compose.yml

+ 32 - 0
Dockerfile

@@ -0,0 +1,32 @@
+FROM debian:buster-slim
+
+RUN apt-get update && apt-get install --yes --no-install-recommends \
+    gperf \
+    gtk-doc-tools \
+    intltool \
+    libgirepository1.0-dev \
+    libgnutls28-dev \
+    libxml2-utils \
+    valac
+RUN apt-get update && apt-get install --yes --no-install-recommends git
+RUN apt-get update && apt-get install --yes --no-install-recommends libtool-bin
+
+ARG VTE_NE_VERSION=0.50.2-ng
+RUN git clone --branch "$VTE_NE_VERSION" https://github.com/thestinger/vte-ng.git /vte-ng
+
+RUN apt-get update && apt-get install --yes --no-install-recommends libgtk-3-dev libpcre2-dev
+
+WORKDIR /vte-ng
+RUN ./autogen.sh
+RUN make
+RUN make install
+
+ARG TERMITE_VERSION=v15
+RUN git clone --recursive --branch "$TERMITE_VERSION" https://github.com/thestinger/termite.git /termite
+WORKDIR /termite
+RUN make
+RUN make install
+
+RUN ldconfig
+
+CMD ["/usr/local/bin/termite"]

+ 9 - 0
docker-compose.yml

@@ -0,0 +1,9 @@
+version: '2'
+
+services:
+  termite:
+    build: .
+    image: fphammerle/termite
+    security_opt: ['no-new-privileges']
+
+# https://docs.docker.com/compose/compose-file/compose-file-v2/