Skip to content

Commit

Permalink
Dockerized build for Ubuntu 14.04
Browse files Browse the repository at this point in the history
  • Loading branch information
subins2000 committed Dec 6, 2021
1 parent 14cea17 commit 8cc8668
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 0 deletions.
36 changes: 36 additions & 0 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -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
14 changes: 14 additions & 0 deletions docker/README.md
Original file line number Diff line number Diff line change
@@ -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
```

0 comments on commit 8cc8668

Please sign in to comment.