# syntax=docker/dockerfile:1 FROM ubuntu:20.04 LABEL Description="CORE Docker Ubuntu Image" # define variables ARG PREFIX=/usr/local ARG BRANCH=docker-updates # define environment ENV DEBIAN_FRONTEND=noninteractive # install core RUN apt-get update && \ apt-get install -y git sudo wget tzdata python3.10 \ curl \ xauth \ xterm \ vim \ nano \ wireshark \ firefox \ net-tools \ rsync \ openssh-server \ openssh-client \ vsftpd \ atftpd \ atftp \ mini-httpd \ lynx \ tcpdump \ wireshark \ iperf \ iperf3 \ tshark \ openssh-sftp-server \ bind9 \ bind9-utils \ openvpn \ isc-dhcp-server \ isc-dhcp-client \ whois \ ipcalc \ socat \ hping3 WORKDIR /root RUN git clone https://github.com/coreemu/core WORKDIR /root/core RUN git checkout ${BRANCH} RUN ./setup.sh RUN . /root/.bashrc && inv install -v -p ${PREFIX} # install emane packages and python bindings WORKDIR /root RUN wget -q https://adjacentlink.com/downloads/emane/emane-1.3.3-release-1.ubuntu-20_04.amd64.tar.gz && \ tar xf emane*.tar.gz && \ cd emane-1.3.3-release-1/debs/ubuntu-20_04/amd64 && \ apt-get install -y ./emane*.deb ./python3-emane_*.deb && \ cd ../../../.. && \ rm emane-1.3.3-release-1.ubuntu-20_04.amd64.tar.gz && \ rm -rf emane-1.3.3-release-1 WORKDIR /root/core RUN . /root/.bashrc && inv install-emane -v -e v1.3.3 # run daemon CMD ["core-daemon"] RUN curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain nightly -y && \ echo 'source $HOME/.cargo/env' >> $HOME/.bashrc