From 8cc8668642c884d4333880bb9478599b53fb9393 Mon Sep 17 00:00:00 2001 From: Subin Siby Date: Mon, 6 Dec 2021 00:45:24 +0530 Subject: [PATCH] Dockerized build for Ubuntu 14.04 --- docker/Dockerfile | 36 ++++++++++++++++++++++++++++++++++++ docker/README.md | 14 ++++++++++++++ 2 files changed, 50 insertions(+) create mode 100644 docker/Dockerfile create mode 100644 docker/README.md diff --git a/docker/Dockerfile b/docker/Dockerfile new file mode 100644 index 0000000..ff893bc --- /dev/null +++ b/docker/Dockerfile @@ -0,0 +1,36 @@ +FROM ubuntu:trusty + +WORKDIR /root + +RUN apt-get update + +# Install gtk headers +RUN apt-get install -y wget libgtk-3-dev libcairo2-dev libglib2.0-dev + +# Install go +RUN wget -O go.tar.gz https://go.dev/dl/go1.17.4.linux-amd64.tar.gz; \ +tar -xf go.tar.gz; + +RUN apt-get install -y git build-essential clang pkg-config zip; + +RUN git clone https://github.com/varnamproject/govarnam.git; \ +git clone https://github.com/varnamproject/govarnam-ibus.git + +ENV PATH="/root/go/bin:${PATH}" + +WORKDIR /root/govarnam + +RUN CC=clang make; \ +sudo make install; \ +make release + +RUN mkdir -p /extract; \ +cp *.zip /extract + +WORKDIR /root/govarnam-ibus + +RUN git checkout gtk-3.10-ubuntu-14.04; \ +make ubuntu-14; \ +make release + +RUN cp *.zip /extract \ No newline at end of file diff --git a/docker/README.md b/docker/README.md new file mode 100644 index 0000000..4860b98 --- /dev/null +++ b/docker/README.md @@ -0,0 +1,14 @@ +# Docker + +Builds `govarnam` & `govarnam-ibus` for Ubuntu 14.04 (GTK 3.10, glibc 2.19) & later versions: + +```bash +docker build -t varnam . +``` + +Copy built artifacts from container using: +```bash +id=$(docker create varnam) +docker cp $id:/extract/. ./ +docker rm -v $id +``` \ No newline at end of file