From f40de9f838833b988f9e9721c96d669fe6f6f43b Mon Sep 17 00:00:00 2001 From: Blake Harnden <32446120+bharnden@users.noreply.github.com> Date: Fri, 27 May 2022 20:54:47 -0700 Subject: [PATCH] install: added dockerfile for oracle linux support --- Dockerfile.oracle | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 Dockerfile.oracle diff --git a/Dockerfile.oracle b/Dockerfile.oracle new file mode 100644 index 00000000..28a488b0 --- /dev/null +++ b/Dockerfile.oracle @@ -0,0 +1,37 @@ +# syntax=docker/dockerfile:1 +FROM oraclelinux:8 +LABEL Description="CORE Docker Oracle Linux Image" + +# define variables +ARG PREFIX=/usr +ARG BRANCH=docker-updates + +# define environment +ENV DEBIAN_FRONTEND=noninteractive +ENV LANG en_US.UTF-8 + +# install core +RUN yum -y update && \ + yum install -y git sudo wget tzdata unzip python39 which iproute-tc hostname xterm +WORKDIR /root +RUN git clone https://github.com/coreemu/core +WORKDIR /root/core +RUN git checkout ${BRANCH} +RUN PYTHON=python3.9 PYTHON_DEP=python39 ./setup.sh +RUN . /root/.bashrc && PYTHON=python3.9 PYTHON_DEP=python39 inv install -v -p ${PREFIX} +# install emane packages and python bindings +WORKDIR /root +RUN yum config-manager --set-enabled ol8_codeready_builder && yum install -y protobuf-devel +RUN wget -q https://adjacentlink.com/downloads/emane/emane-1.3.3-release-1.el8.x86_64.tar.gz && \ + tar xf emane-1.3.3-release-1.el8.x86_64.tar.gz && \ + cd emane-1.3.3-release-1/rpms/el8/x86_64 && \ + yum install -y epel-release && \ + yum install -y ./openstatistic*.rpm ./emane*.rpm ./python3-emane-1.3.3*.rpm && \ + cd ../../../.. && \ + rm emane-1.3.3-release-1.el8.x86_64.tar.gz && \ + rm -rf emane-1.3.3-release-1 +WORKDIR /root/core +RUN . /root/.bashrc && PYTHON=python3.9 PATH=/root/protoc/bin:$PATH inv install-emane -v -e v1.3.3 + +# run daemon +CMD ["core-daemon"]