Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
FROM debian:jessie
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"
RUN cd /home/builduser/onie/build-config && make debian-prepare-build-host
RUN su builduser -c "git config --global; git config --global 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
You can’t perform that action at this time.