Closed aleLoPrete closed 6 months ago
Thank you for reporting this issue, It seems that a couple of errors where added in the last commit, so I just corrected them. Also, here is an updated dockerfile that takes advantage of the fact that ION has now moved to GitHub. If possible, please let me know if this worked.
# ======================================================================
# pyion_v412_bpv7.dockerfile
# Install a 64-bit Docker image with ION v4.1.2
# Usage Example
# ----------------
# C:\> docker build -t pyion_bpv7:4.1.2 -f .\pyion_v412_bpv7_ubuntu.dockerfile --build-arg IMAGE_NAME=ubuntu:20.04 .
# Author: Marc Sanchez Net
# Date: 5/01/2024
# ======================================================================
# Define base image and pull it
ARG IMAGE_NAME=ubuntu:20.04
FROM $IMAGE_NAME
# =====================================================
# === SET WORKING DIRECTORY
# =====================================================
# Set environment variables.
ENV HOME /home
ENV ION_HOME /home/ion-open-source-4.1.2
ENV PYION_HOME /home/pyion-4.1.2
ENV PYION_BP_VERSION BPv7
# Define working directory.
WORKDIR /home
# =====================================================
# === INSTALL DEPENDENCIES
# =====================================================
# Install basic dependencies
RUN apt update
RUN apt install -y git
RUN apt install -y --no-install-recommends man-db
RUN apt install -y --no-install-recommends build-essential
RUN apt install -y --no-install-recommends dos2unix
# Install ION dependencies
RUN apt install -y --no-install-recommends autotools-dev
RUN apt install -y --no-install-recommends automake
RUN apt install -y --no-install-recommends libtool
# Install Python dependencies
RUN apt install -y --no-install-recommends python3-dev
RUN apt install -y --no-install-recommends python3-setuptools
# Clean up (see https://www.fromlatest.io/#/ and
# https://hackernoon.com/tips-to-reduce-docker-image-sizes-876095da3b34)
RUN rm -rf /var/lib/apt/lists/*
# =============================================================
# === DOWNLOAD, COMPILE AND BUILD ION
# =============================================================
RUN git clone --single-branch --branch ion-open-source-4.1.2 https://github.com/nasa-jpl/ION-DTN.git $ION_HOME
RUN \
cd $ION_HOME && \
autoreconf -fi && \
./configure && \
make && \
make install && \
ldconfig
# =============================================================
# === DOWNLOAD PYION FROM GITHUB AND COMPILE IT
# =============================================================
RUN git clone --single-branch --branch v4.1.2 https://github.com/msancheznet/pyion.git $PYION_HOME
RUN \
cd $PYION_HOME && \
find $PYION_HOME -type f -print0 | xargs -0 dos2unix && \
python3 setup.py install && \
chmod -R +x $PYION_HOME
# =====================================================
# === OPEN BASH TERMINAL UPON START
# =====================================================
# Define default command.
CMD ["tail", "-f", "/dev/null"]
Thank you! Everything is working fine now.
Hello, I am currently working on an interop test between ESA-BP/ION-DTN. Pyion would be an amazing tool to have. I have tried to run the Dockerfile proposed in the documentation, but I get an error during the installation. I also tried to install pyion outside the container, installing ION-DTN and setting all environment variables but I am encountering the same error.
Context:
Command executed in the same directory of Dockerfile (used
--build-arg
instead of--build_arg
):Error output: