Skip to content

Instantly share code, notes, and snippets.

@nicr9
Last active February 17, 2016 08:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nicr9/b90bcafcdd621ef4560e to your computer and use it in GitHub Desktop.
Save nicr9/b90bcafcdd621ef4560e to your computer and use it in GitHub Desktop.
FROM ubuntu:12.04
MAINTAINER Nic Roland "nicroland9@gmail.com"
RUN apt-get update && \
apt-get install -y autoconf automake git g++ console-tools language-pack-en-base make && \
apt-get clean
RUN locale-gen en_US.UTF-8
RUN git clone https://github.com/kernc/logkeys
WORKDIR logkeys
RUN ./autogen.sh
WORKDIR build
RUN mkdir /dev/input && \
touch /dev/input/eventX && \
../configure && \
make && \
make install
ENTRYPOINT logkeys --start --output test.log && \
tail -f test.log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment