Skip to content

Commit

Permalink
fix log redirect command (#1584)
Browse files Browse the repository at this point in the history
* fix log redirect command

* fix log file path
  • Loading branch information
yehiyam authored May 1, 2022
1 parent ce1275e commit 116e8a2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion core/algorithm-builder/environments/java/runJava.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ else
fi
export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/usr/lib/x86_64-linux-gnu/jni/

java -Xms${MIN_MEM} -Xmx${MAX_MEM} -Dcom.amazonaws.sdk.disableCertChecking=true -jar wrapper.jar algorithm_unique_folder/encapsulated-algorithm.jar 2>&1 |tee /hkube-logs/stdout.log
mkfifo /tmp/pipe; (tee -a /hkube-logs/stdout.log < /tmp/pipe & ) ; exec java -Xms${MIN_MEM} -Xmx${MAX_MEM} -Dcom.amazonaws.sdk.disableCertChecking=true -jar wrapper.jar algorithm_unique_folder/encapsulated-algorithm.jar > /tmp/pipe 2>&1
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ COPY --from=build /hkube/algorithm-runner/algorithm_unique_folder/ /hkube/algori

WORKDIR /hkube/algorithm-runner
ENTRYPOINT ["/hkube/docker-entrypoint.sh"]
CMD ["/bin/sh", "-c", "npm start 2>&1 | tee /hkube-logs/stdout.log"]
CMD ["/bin/sh", "-c", "mkfifo /tmp/pipe; (tee -a /hkube-logs/stdout.log < /tmp/pipe & ) ; exec npm start > /tmp/pipe 2>&1"]
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ RUN export dependency_install_cmd=${dependency_install_cmd} && ./dockerfile/requ

ENV PYTHONPATH=$PYTHONPATH:/hkube/algorithm-runner/algorithm_unique_folder
ENTRYPOINT ["/hkube/docker-entrypoint.sh"]
CMD ["/bin/sh", "-c", "python -u app.py 2>&1 |tee /hkube-logs/stdout.log"]
CMD ["/bin/sh", "-c", "mkfifo /tmp/pipe; (tee -a /hkube-logs/stdout.log < /tmp/pipe & ) ; exec python -u app.py > /tmp/pipe 2>&1"]

0 comments on commit 116e8a2

Please sign in to comment.