Skip to content

Instantly share code, notes, and snippets.

@cnf

cnf/Dockerfile

Created May 26, 2015
Embed
What would you like to do?
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