Skip to content

Commit

Permalink
install: fixed ubuntu/rocky to use /opt workdir, added functioning ro…
Browse files Browse the repository at this point in the history
…cky 8 ospf rpm build
  • Loading branch information
bharnden committed Nov 20, 2023
1 parent 611c30d commit 76f342e
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 4 deletions.
35 changes: 33 additions & 2 deletions dockerfiles/Dockerfile.ospf-mdr
Original file line number Diff line number Diff line change
@@ -1,5 +1,36 @@
# syntax=docker/dockerfile:1
FROM ubuntu:18.04 as ospf-mdr
FROM rockylinux:8 as ospf-rpm
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/ && \
yum autoremove -y && \
yum clean all

FROM ubuntu:18.04 as ospf-deb
RUN apt-get update -y && \
apt-get install -y --no-install-recommends \
automake \
Expand Down Expand Up @@ -28,6 +59,6 @@ RUN git clone https://github.com/USNavalResearchLaboratory/ospf-mdr.git && \
./bootstrap.sh && \
./configure && \
make -j$(nproc) && \
make -f quagga.deb.mk build || true
make -f qua.deb.mk build || true && \
cd /opt && \
rm -rf ospf-mdr
2 changes: 1 addition & 1 deletion dockerfiles/Dockerfile.rocky
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# syntax=docker/dockerfile:1
FROM rockylinux:8
ENV LANG en_US.UTF-8
WORKDIR /opt

# install system dependencies
RUN yum update -y && \
Expand Down Expand Up @@ -63,7 +64,6 @@ RUN yum update -y && \
yum clean all

# install core
WORKDIR /opt
ARG CORE_PACKAGE=core_9.0.3_x86_64.rpm
ARG PACKAGE_URL=https://github.com/coreemu/core/releases/latest/download/${CORE_PACKAGE}
RUN yum update -y && \
Expand Down
2 changes: 1 addition & 1 deletion dockerfiles/Dockerfile.ubuntu
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# syntax=docker/dockerfile:1
FROM ubuntu:22.04
ENV DEBIAN_FRONTEND=noninteractive
WORKDIR /opt

# install system dependencies
RUN apt-get update -y && \
Expand Down Expand Up @@ -69,7 +70,6 @@ RUN apt-get update -y && \
rm -rf /var/lib/apt/lists/*

# install core
WORKDIR /opt
ARG CORE_PACKAGE=core_9.0.3_amd64.deb
ARG PACKAGE_URL=https://github.com/coreemu/core/releases/latest/download/${CORE_PACKAGE}
RUN apt-get update -y && \
Expand Down

0 comments on commit 76f342e

Please sign in to comment.