Skip to content

Instantly share code, notes, and snippets.

@cnf
Created May 26, 2015 18:47
  • Star 13 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save cnf/7ecccd01c03e08de7f77 to your computer and use it in GitHub Desktop.
VyOS Docker Build
#!/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
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