Skip to content

Instantly share code, notes, and snippets.

@stevommmm
Created February 2, 2019 03:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save stevommmm/5cfe41429579b07862b5f68942915ed2 to your computer and use it in GitHub Desktop.
Save stevommmm/5cfe41429579b07862b5f68942915ed2 to your computer and use it in GitHub Desktop.
Compile i3 centos-7
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"]
@amitlevy21
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment