Skip to content

Instantly share code, notes, and snippets.

@amitsaha
Created April 14, 2014 07:53
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 amitsaha/10625582 to your computer and use it in GitHub Desktop.
Save amitsaha/10625582 to your computer and use it in GitHub Desktop.
Fedora Dockerfile for running lshw tests
# use: docker run -i -t -v $PWD:/home/lshw/lshw_test:rw -u root eded06474d8f ./run-tests.sh
# https://index.docker.io/_/centos/
FROM fedora
MAINTAINER Beaker developers
# Install dependencies.
RUN yum -y install fakeroot fakechroot docbook-utils make gcc-c++
# Remove yum metadata.
RUN yum clean all
RUN useradd lshw
USER lshw
VOLUME ["/home/lshw/lshw_test"]
WORKDIR /home/lshw/lshw_test
ENV LANG C
CMD ["/bin/bash"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment