Skip to content

Commit

Permalink
mock-kraken
Browse files Browse the repository at this point in the history
  • Loading branch information
datanel committed Oct 21, 2024
1 parent 37bd6e7 commit f10d3d5
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
8 changes: 8 additions & 0 deletions docker/build_kraken_deb11.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,16 @@
cd /navitia/navitia/
mkdir -p docker_build && cd docker_build
cmake -DCMAKE_BUILD_TYPE=Release ../source

# kraken
make -j$(($(grep -c '^processor' /proc/cpuinfo)+1)) protobuf_files
make -j$(($(grep -c '^processor' /proc/cpuinfo)+1)) kraken

# mocks for integration tests
make -j$(($(grep -c '^processor' /proc/cpuinfo)+1)) departure_board_test
make -j$(($(grep -c '^processor' /proc/cpuinfo)+1)) main_routing_test

# some binaries for tyr-worker
make -j$(($(grep -c '^processor' /proc/cpuinfo)+1)) cities
make -j$(($(grep -c '^processor' /proc/cpuinfo)+1)) ed2nav
make -j$(($(grep -c '^processor' /proc/cpuinfo)+1)) fare2ed
Expand Down
24 changes: 24 additions & 0 deletions docker/debian11/Dockerfile-mock-kraken
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
FROM debian:bullseye-slim

WORKDIR /srv/kraken

RUN apt-get update --fix-missing \
&& apt-get install -y libgoogle-perftools4 \
libboost-all-dev \
libprotobuf-dev \
liblog4cplus-2.0.5 \
libzmq3-dev \
libpqxx-dev \
netcat \
&& apt-get purge -y \
&& apt-get autoremove -y

COPY ./docker_build/tests/mock-kraken/departure_board_test /srv/kraken/departure_board_test
RUN chmod +x /srv/kraken/departure_board_test

COPY ./docker_build/tests/mock-kraken/main_routing_test /srv/kraken/main_routing_test
RUN chmod +x /srv/kraken/main_routing_test

EXPOSE 30000
ENV KRAKEN_GENERAL_zmq_socket=tcp://*:30000
ENV KRAKEN_GENERAL_log_level=INFO

0 comments on commit f10d3d5

Please sign in to comment.