From 2df9b3ee8c5f01bb7b3aefc78f8cee090b7504f4 Mon Sep 17 00:00:00 2001 From: Andrei Zhabinski Date: Wed, 9 Oct 2024 20:59:26 +0000 Subject: [PATCH] fix --- Dockerfile | 11 ++++------- scripts/entrypoint.sh | 4 +++- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/Dockerfile b/Dockerfile index a9aa278..7762687 100644 --- a/Dockerfile +++ b/Dockerfile @@ -90,11 +90,6 @@ RUN chown ${user}:${user} /home/${user}/.bashrc ## Julia -RUN wget -O test.tgz https://github.com/confluentinc/librdkafka/archive/refs/tags/v2.5.3.tar.gz -# RUN tar -xzf test.tgz -RUN du test.tgz -RUN head -n 100 test.tgz - WORKDIR /opt RUN wget -O julia.tgz https://julialang-s3.julialang.org/bin/linux/x64/${JULIA_VERSION_SHORT}/julia-${JULIA_VERSION}-linux-x86_64.tar.gz RUN tar -xzf julia.tgz @@ -124,7 +119,9 @@ RUN chmod -R a+rwx /opt/kafka_${KAFKA_VERSION}/logs ## Scripts -COPY scripts/entrypoint.sh /entrypoint.sh +ENV RDKAFKA_TEST_DIR=/opt/RDKafka.jl +COPY . ${RDKAFKA_TEST_DIR} +RUN chown -R ${user}:${user} ${RDKAFKA_TEST_DIR} # -------------------------- USER LAND ------------------------------ @@ -133,4 +130,4 @@ USER ${user} ## Launch -ENTRYPOINT ["/entrypoint.sh"] \ No newline at end of file +ENTRYPOINT ["${RDKAFKA_TEST_DIR}/scripts/entrypoint.sh"] \ No newline at end of file diff --git a/scripts/entrypoint.sh b/scripts/entrypoint.sh index ebe9241..fb85a46 100755 --- a/scripts/entrypoint.sh +++ b/scripts/entrypoint.sh @@ -1,3 +1,5 @@ #!/bin/bash +set -e -echo "It's alive!" \ No newline at end of file +cd $RDKAFKA_TEST_DIR +julia -e "import Pkg; Pkg.test()" \ No newline at end of file