Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
FROM debian:jessie
MAINTAINER example@example.com
RUN apt-get clean && apt-get update
RUN apt-get install -y git-core sudo make wget pkg-config cpio
RUN useradd -m builduser
RUN echo 'builduser ALL=(ALL:ALL) ALL' >> /etc/sudoers
RUN su builduser -c "cd /home/builduser/; git clone https://github.com/opencomputeproject/onie"
RUN cd /home/builduser/onie/build-config && make debian-prepare-build-host
RUN su builduser -c "git config --global user.email example@example.com; git config --global user.name example"
RUN chsh -s /bin/bash builduser
RUN echo 'export PATH=$PATH:/sbin/:/usr/sbin/' >> /home/builduser/.bashrc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment