-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
14cea17
commit 8cc8668
Showing
2 changed files
with
50 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
``` |