Skip to content

Commit 30f9d03

Browse files
author
Tony Crisci
committed
test: build i3 in the dockerfile
1 parent b1de743 commit 30f9d03

File tree

1 file changed

+21
-5
lines changed

1 file changed

+21
-5
lines changed

Dockerfile

Lines changed: 21 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,30 @@ FROM ubuntu:19.10
22

33
WORKDIR /app
44

5-
RUN apt update && apt install ca-certificates -y && \
6-
/usr/lib/apt/apt-helper download-file https://debian.sur5r.net/i3/pool/main/s/sur5r-keyring/sur5r-keyring_2019.02.01_all.deb keyring.deb SHA256:176af52de1a976f103f9809920d80d02411ac5e763f695327de9fa6aff23f416 && \
7-
dpkg -i ./keyring.deb && \
8-
echo "deb http://debian.sur5r.net/i3/ $(grep '^DISTRIB_CODENAME=' /etc/lsb-release | cut -f2 -d=) universe" >> /etc/apt/sources.list.d/sur5r-i3.list && \
9-
apt install i3-wm python3-pip xvfb -y
5+
RUN echo force-unsafe-io > /etc/dpkg/dpkg.cfg.d/docker-apt-speedup
6+
RUN echo 'APT::Acquire::Retries "5";' > /etc/apt/apt.conf.d/80retry
7+
8+
RUN apt-get update && \
9+
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
10+
build-essential git automake autotools-dev libev-dev libxcb1-dev \
11+
libxcb-util-dev ca-certificates libxkbcommon-dev libxkbcommon-x11-dev \
12+
libyajl-dev libstartup-notification0-dev libxcb-xinerama0-dev \
13+
libxcb-randr0-dev libxcb-shape0-dev libxcb-cursor-dev libxcb-keysyms1-dev \
14+
libxcb-icccm4-dev libxcb-xrm-dev libpcre3-dev libpango1.0-dev \
15+
libpangocairo-1.0-0 xvfb python3-pip && \
16+
rm -rf /var/lib/apt/lists/*
1017

1118
RUN pip3 install python-xlib pytest pytest-asyncio pytest-timeout
1219

20+
RUN git clone https://github.com/i3/i3 && \
21+
cd ./i3 && \
22+
git checkout 2914c7f && \
23+
autoreconf -fi && \
24+
./configure --prefix=/usr && \
25+
cd ./x86_64-pc-linux-gnu && \
26+
make -j8 && \
27+
make install
28+
1329
ADD . /app
1430

1531
CMD ["./run-tests.py"]

0 commit comments

Comments
 (0)