Created
February 2, 2019 03:52
-
-
Save stevommmm/5cfe41429579b07862b5f68942915ed2 to your computer and use it in GitHub Desktop.
Compile i3 centos-7
This file contains hidden or 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
FROM centos:7 | |
env VERSION '4.15.0.1' | |
RUN yum install -y -q epel-release | |
RUN yum install -y -q "xcb-util*-devel" \ | |
"xorg-x11-font*" \ | |
autoconf \ | |
automake \ | |
gcc \ | |
git \ | |
libev-devel \ | |
libX11-devel \ | |
libxcb-devel \ | |
libXinerama-devel \ | |
libxkbcommon-devel \ | |
libxkbcommon-x11-devel \ | |
libXrandr-devel \ | |
make \ | |
pango-devel \ | |
pcre-devel \ | |
startup-notification-devel \ | |
wget \ | |
xcb-util-cursor-devel \ | |
xcb-util-devel \ | |
xcb-util-keysyms-devel \ | |
xcb-util-wm-devel \ | |
xcb-util-xrm-devel \ | |
xorg-x11-util-macros \ | |
yajl-devel \ | |
xterm | |
WORKDIR /usr/src/ | |
RUN git clone --recursive https://github.com/Airblader/xcb-util-xrm \ | |
&& cd xcb-util-xrm \ | |
&& git submodule update --init \ | |
&& ./autogen.sh --prefix=/usr --libdir=/usr/lib64 \ | |
&& make \ | |
&& make install | |
WORKDIR /usr/src/ | |
RUN wget https://github.com/Airblader/i3/archive/$VERSION.tar.gz -O i3.tar.gz \ | |
&& tar xvzf i3.tar.gz \ | |
&& cd i3-$VERSION/ \ | |
&& autoreconf --force --install \ | |
&& mkdir -p build \ | |
&& cd build/ \ | |
&& ../configure --prefix=/usr --sysconfdir=/etc --disable-sanitizers \ | |
&& make \ | |
&& make install | |
ENTRYPOINT ["i3"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thank you for sharing this!
Where should i put the "docker run [image_name]" command? i tried putting it in my .xinitrc file but it did not work. (getting a blank screen)
Obviously, running from inside Gnome gives me "i3: cannot openm display"
Is it even possible to use i3 via docker?