Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dfdx committed Oct 9, 2024
1 parent 1968955 commit 2df9b3e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
11 changes: 4 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 ------------------------------

Expand All @@ -133,4 +130,4 @@ USER ${user}

## Launch

ENTRYPOINT ["/entrypoint.sh"]
ENTRYPOINT ["${RDKAFKA_TEST_DIR}/scripts/entrypoint.sh"]
4 changes: 3 additions & 1 deletion scripts/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/bin/bash
set -e

echo "It's alive!"
cd $RDKAFKA_TEST_DIR
julia -e "import Pkg; Pkg.test()"

0 comments on commit 2df9b3e

Please sign in to comment.