Created
May 26, 2015 18:47
-
-
Save cnf/7ecccd01c03e08de7f77 to your computer and use it in GitHub Desktop.
VyOS Docker Build
This file contains hidden or 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
#!/bin/bash | |
cd /build | |
git clone https://github.com/vyos/build-iso.git | |
cd /build/build-iso | |
export PATH=/sbin:/usr/sbin:$PATH | |
autoreconf -i | |
./configure # --with-kernel-flavor=amd64-vyos | |
make iso | |
ls -lh livecd/binary.iso |
This file contains hidden or 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:squeeze | |
ENV DEBIAN_FRONTEND noninteractive | |
RUN apt-get update \ | |
&& apt-get install -y wget \ | |
&& wget -O - http://packages.vyos.net/vyos-pubkey.gpg | apt-key add - \ | |
&& echo "deb http://backports.debian.org/debian-backports squeeze-backports main" > /etc/apt/sources.list.d/bp.list \ | |
&& apt-get update \ | |
&& apt-get -t squeeze-backports install -y squashfs-tools \ | |
&& apt-get install -y git autoconf dpkg-dev live-helper syslinux genisoimage make lsb-release fakechroot devscripts | |
RUN mkdir /build | |
ADD build.sh /build.sh | |
WORKDIR /build | |
ENTRYPOINT ["/build.sh"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment