Created
July 26, 2016 03:13
-
-
Save wataken44/e5e6c7f94b257c15196d50bab9a9a2de to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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