Commit 053d81eb authored by Andres Anaya Amariels's avatar Andres Anaya Amariels 🚀
Browse files

Enhance Dockerfile: improve logging messages for provider and invoker execution

parent b62d6a28
Loading
Loading
Loading
Loading
Loading
+8 −5
Original line number Diff line number Diff line
FROM labs.etsi.org:5050/ocf/capif/python:3-slim-bullseye

RUN apt update
# Update package index and install required tools
RUN apt update && apt install -y git nano && \
    rm -rf /var/lib/apt/lists/*

WORKDIR /sdk

# Copy project files into the container
COPY .. .

# Install Python dependencies
RUN python -m pip install --upgrade pip
RUN pip install -r installation/requirements.txt
RUN pip install .

# Define entrypoint: run provider first, then invoker
ENTRYPOINT sh -c '\
  set -e && \
  echo "Executing provider..." && \
  echo "🚀 Starting provider execution..." && \
  cd ci_cd_test/testing_samples/testing_provider_sample && \
  python testing_provider.py && \
  echo "✅ Provider finished." && \
  echo "🚀 Executing invoker..." && \
  echo "✅ Provider execution finished." && \
  echo "🚀 Starting invoker execution..." && \
  cd ../testing_invoker_sample && \
  python network_app_invoker.py && \
  echo "✅ Invoker finished."'
 No newline at end of file
  echo "✅ Invoker execution finished."'
 No newline at end of file