From: Quentin Young Date: Tue, 20 Mar 2018 14:43:21 +0000 (-0400) Subject: doc: cleanup alpine build doc X-Git-Tag: frr-5.0-dev~125^2~3 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=7d4cab4df308315972ea8dfda628d3856ef2b856;p=matthieu%2Ffrr.git doc: cleanup alpine build doc Signed-off-by: Quentin Young --- diff --git a/doc/developer/building-frr-on-alpine.rst b/doc/developer/building-frr-on-alpine.rst index 27718bdc80..68031b3b61 100644 --- a/doc/developer/building-frr-on-alpine.rst +++ b/doc/developer/building-frr-on-alpine.rst @@ -6,42 +6,54 @@ For building Alpine Linux dev packages, we use docker. Install docker 17.05 or later ----------------------------- -Depending on your host, there are different ways of installing -docker. Refer to the documentation here for instructions on how -to install a free version of docker: https://www.docker.com/community-edition +Depending on your host, there are different ways of installing docker. Refer +to the documentation here for instructions on how to install a free version of +docker: https://www.docker.com/community-edition Work with sources ----------------- - git clone https://github.com/frrouting/frr.git frr - cd frr +:: + + git clone https://github.com/frrouting/frr.git frr + cd frr Build apk packages ------------------ - ./docker/alpine/build.sh +:: + + ./docker/alpine/build.sh This will put the apk packages in: - ./docker/pkgs/apk/x86_64/ +:: + + ./docker/pkgs/apk/x86_64/ Usage ----- To add the packages to a docker image, create a Dockerfile in ./docker/pkgs: - FROM alpine:3.7 - RUN mkdir -p /pkgs - ADD apk/ /pkgs/ - RUN apk add --no-cache --allow-untrusted /pkgs/x86_64/*.apk +:: + + FROM alpine:3.7 + RUN mkdir -p /pkgs + ADD apk/ /pkgs/ + RUN apk add --no-cache --allow-untrusted /pkgs/x86_64/*.apk And build a docker image: - docker build --rm --force-rm -t alpine-dev-pkgs:latest docker/pkgs +:: + + docker build --rm --force-rm -t alpine-dev-pkgs:latest docker/pkgs And run the image: - docker run -it --rm alpine-dev-pkgs:latest /bin/sh +:: + + docker run -it --rm alpine-dev-pkgs:latest /bin/sh Currently, we only package the raw daemons and example files, so, you'll need to run the daemons by hand (or, better, orchestrate in the Dockerfile).