Skip to content

Commit

Permalink
install: adjustments to building ospf mdr deb package, update to dock…
Browse files Browse the repository at this point in the history
…er install docs and easier breakdown of dedicated dockerfiles
  • Loading branch information
bharnden committed Dec 4, 2023
1 parent a3e324a commit 3e051a3
Show file tree
Hide file tree
Showing 6 changed files with 70 additions and 120 deletions.
67 changes: 0 additions & 67 deletions dockerfiles/Dockerfile.ospf-mdr

This file was deleted.

32 changes: 32 additions & 0 deletions dockerfiles/Dockerfile.ospf-mdr-deb
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# syntax=docker/dockerfile:1
FROM ubuntu:22.04
WORKDIR /opt
RUN apt-get update -y && \
apt-get install -y --no-install-recommends \
git \
ca-certificates \
automake \
make \
libtool \
pkg-config \
gawk \
g++ \
dpkg-dev \
debhelper \
libreadline-dev \
texinfo \
imagemagick \
groff \
build-essential:native \
texlive-latex-recommended \
texlive-plain-generic && \
git clone https://github.com/USNavalResearchLaboratory/ospf-mdr.git && \
cd ospf-mdr && \
./bootstrap.sh && \
./configure && \
(make -f quagga.deb.mk build || make -f quagga.deb.mk build) && \
mv quagga-mr_0.99*.deb /opt/ && \
cd /opt && \
rm -rf ospf-mdr && \
apt-get autoremove -y && \
rm -rf /var/lib/apt/lists/*
33 changes: 33 additions & 0 deletions dockerfiles/Dockerfile.ospf-mdr-rpm
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# syntax=docker/dockerfile:1
FROM rockylinux:8
WORKDIR /opt
RUN yum update -y && \
yum install -y epel-release dnf-plugins-core && \
yum config-manager --set-enabled powertools && \
yum update -y && \
yum install -y \
texinfo \
rpm-build \
texlive-base \
texinfo-tex \
texi2html \
readline-devel \
libpcap-devel \
ImageMagick \
git \
automake \
libtool \
pkg-config \
gcc-c++ \
libcap-devel \
make && \
git clone https://github.com/USNavalResearchLaboratory/ospf-mdr.git && \
cd ospf-mdr && \
./bootstrap.sh && \
./configure && \
(make -f quagga.rpm.mk build || make -f quagga.rpm.mk build) && \
mv .rpmbuild/RPMS/x86_64/quagga-mr-0.99*.rpm /opt/ && \
cd /opt && \
rm -rf ospf-mdr && \
yum autoremove -y && \
yum clean all
31 changes: 0 additions & 31 deletions dockerfiles/Dockerfile.ubuntu
Original file line number Diff line number Diff line change
Expand Up @@ -27,37 +27,6 @@ RUN apt-get update -y && \
./quagga-mr_0.99*.deb && \
apt-get autoremove -y && \
rm -rf /var/lib/apt/lists/*
#RUN apt-get update -y && \
# apt-get install -y --no-install-recommends \
# automake \
# gawk \
# g++ \
# libreadline-dev \
# libtool \
# make \
# pkg-config \
# git && \
# git clone https://github.com/USNavalResearchLaboratory/ospf-mdr.git && \
# cd ospf-mdr && \
# ./bootstrap.sh && \
# ./configure --disable-doc --enable-user=root --enable-group=root \
# --with-cflags=-ggdb --sysconfdir=/usr/local/etc/quagga --enable-vtysh \
# --localstatedir=/var/run/quagga && \
# make -j$(nproc) && \
# make install && \
# cd /opt && \
# rm -rf ospf-mdr && \
# apt-get remove -y \
# automake \
# gawk \
# g++ \
# libreadline-dev \
# libtool \
# make \
# pkg-config \
# git && \
# apt-get autoremove -y && \
# rm -rf /var/lib/apt/lists/*

# install emane
ARG EMANE_RELEASE=emane-1.5.1-release-1
Expand Down
20 changes: 0 additions & 20 deletions dockerfiles/ospf-deb.patch

This file was deleted.

7 changes: 5 additions & 2 deletions docs/install_docker.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,13 @@ Provided Dockerfiles:
```shell
# clone core
git clone https://github.com/coreemu/core.git
cd core
# first you must build EMANE python bindings
docker build -t emane-python -f dockerfiles/Dockerfile.emane-python .
sudo docker build -t emane-python -f dockerfiles/Dockerfile.emane-python .
# build ospf packages
sudo docker build -t ospf-rpm -f dockerfiles/Dockerfile.ospf-mdr-rpm .
sudo docker build -t ospf-deb -f dockerfiles/Dockerfile.ospf-mdr-deb .
# build desired CORE image
cd core
sudo docker build -t core -f dockerfiles/<Dockerfile> .
```

Expand Down

0 comments on commit 3e051a3

Please sign in to comment.