Unverified Commit 8fc004e6 authored by Giovane Liberato's avatar Giovane Liberato
Browse files

Install everything necessary to run pidgin + install plugin

parent c279d1bc
FROM ubuntu:trusty
FROM ubuntu:bionic
RUN apt-get update && apt-get upgrade -y -o Dpkg::Options::="--force-confold"
RUN apt-get install -y software-properties-common
RUN apt-add-repository ppa:ubuntu-mate-dev/trusty-mate
# GPG from ubuntu-mate-dev repository
RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys FB01CC26162506E7
RUN apt-add-repository "deb http://ppa.launchpad.net/ubuntu-mate-dev/ppa/ubuntu trusty main "
# RUN add-apt-repository ppa:chris-lea/libsodium
RUN apt-get update
# Minimum Gnome environment
......@@ -12,23 +14,32 @@ RUN DEBIAN_FRONTEND=noninteractive apt-get -y install \
# Required for TCNode in dogtail
RUN DEBIAN_FRONTEND=noninteractive apt-get -y install \
python-dev python-imaging\
libtiff5-dev libjpeg8-dev zlib1g-dev libfreetype6-dev \
liblcms2-dev libwebp-dev tcl8.5-dev tk8.5-dev
liblcms2-dev libwebp-dev tcl8.5-dev tk8.5-dev \
libatk-adaptor libgail-common
# Python env for dogtail
RUN DEBIAN_FRONTEND=noninteractive apt-get -y install \
--no-install-recommends python python3-pip python-gobject
--no-install-recommends python python3-pip python-gobject \
python-dev python3-setuptools python3-pil python3-wheel \
python3-cairo python3-pyatspi
# Pidgin
RUN DEBIAN_FRONTEND=noninteractive apt-get -y install pidgin
RUN DEBIAN_FRONTEND=noninteractive apt-get -y install \
--no-install-recommends libpurple-dev pidgin-dev
# Tools for compiling libotr-ng and libgoldilocks
RUN DEBIAN_FRONTEND=noninteractive apt-get -y install \
--no-install-recommends git autoconf libtool libsodium-dev \
libotr5-dev automake libgcrypt20 libglib2.0-dev intltool \
gtk2.0 libxml2-dev
# Enable remote debugging with x11vnc
EXPOSE 5900
RUN DEBIAN_FRONTEND=noninteractive apt-get -y install x11vnc
EXPOSE 5900
# Clean up APT when done.
RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
# RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
VOLUME /src
VOLUME /tmp/dogtail-root
......@@ -37,7 +48,14 @@ ADD . /src
ADD dogtail-wrapper.sh /bin/dogtail-wrapper
WORKDIR /src
RUN pip3 install -r /src/requirements.txt
RUN ./install-libotrng.sh
RUN ./install-pidgin-otrng.sh
ENV PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
ENV LD_LIBRARY_PATH=/usr/local/lib/
ENTRYPOINT ["/bin/dogtail-wrapper"]
CMD ["pytest"]
\ No newline at end of file
......@@ -6,6 +6,9 @@ default:
deps:
pip install --user -r requirements.txt
clean:
rm -rf base_purple/prefs.xml
test:
sudo docker run -t \
-v $(shell pwd):/src:Z \
......@@ -13,11 +16,11 @@ test:
$(DOCKER_IMAGE) pytest
docker-debug:
sudo docker run -t \
-e "ENABLE_DEBUG=true" \
sudo docker run -t --net=host \
-e "ENABLE_DEBUG=true" --rm \
-v $(shell pwd):/src:Z \
-v $(shell pwd)/dogtail-root:/tmp/dogtail-root:Z \
-p 5900:5900 \
-p 5222:5222 -p 5900:5900 \
$(DOCKER_IMAGE) pidgin -c /src/base_purple
docker-build:
......@@ -32,3 +35,6 @@ docker-run:
-v $(shell pwd)/dogtail-root:/tmp/dogtail-root:Z \
$(DOCKER_IMAGE) $(RUN)
docker-kill: clean
sudo docker kill `(sudo docker ps -q --filter ancestor=$(DOCKER_IMAGE))`
#!/bin/bash
set -xe
rm -rf /tmp/goldilocks /tmp/libotr-ng
git clone --depth=1 https://github.com/otrv4/libgoldilocks.git /tmp/goldilocks
git clone --depth=1 https://github.com/otrv4/libotr-ng.git /tmp/libotr-ng
cd /tmp/goldilocks
autoreconf --install
./configure
make && make install
cd /tmp/libotr-ng
autoreconf --install
./configure
make && make install
#!/bin/bash
set -xe
rm -rf /tmp/pidgin-otrng /src/base_purple/plugins/*
git clone --depth=1 https://github.com/otrv4/pidgin-otrng.git /tmp/pidgin-otrng
cd /tmp/pidgin-otrng
./autogen.sh
./configure
make && make install
cp /usr/local/lib/pidgin/* /src/base_purple/plugins
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment