You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
735 B

  1. ARG DOCKER_REGISTRY_HOST
  2. ARG CURRENT_DISTRO
  3. ARG PEPENGINE_VERSION
  4. ARG SEQUOIA_VERSION
  5. ARG YML2_VERSION
  6. FROM ${DOCKER_REGISTRY_HOST}/pep-${CURRENT_DISTRO}-engine-deps:${SEQUOIA_VERSION}-${YML2_VERSION}
  7. ENV BUILDROOT /build
  8. ENV INSTPREFIX /install
  9. ENV OUTDIR /out
  10. ARG PEP_MACHINE_DIR
  11. ### Setup working directory
  12. USER root
  13. RUN mkdir -p ${BUILDROOT}/pEpEngine
  14. COPY . ${BUILDROOT}/pEpEngine
  15. RUN chown -R pep-builder:pep-builder ${BUILDROOT}/pEpEngine
  16. WORKDIR ${BUILDROOT}/pEpEngine
  17. USER pep-builder
  18. ARG YML2_VERSION
  19. ARG ENGINE_VERSION
  20. ARG CURRENT_DISTRO
  21. ### Build pEpEngine
  22. RUN sh ./scripts/common/build_pEpEngine.sh
  23. ### Install Systemdb
  24. USER root
  25. RUN sh ./scripts/common/install_pEpEngine_systemdb.sh && \
  26. rm -rf ${BUILDROOT}/*