Skip to content

Fix symbolic link in Dockerfile_java_cli #396

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 5, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docker/Dockerfile_java_cli
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@ RUN curl -H "Authorization: Bearer ${ACCESS_TOKEN}" \
&& unzip "${JAVA_CLI_ZIP_NAME}" \
&& rm "${JAVA_CLI_ZIP_NAME}"

ENV JAVA_CLI_PATH="$(find $pwd -type f -name "utbot-cli*")"
ENV JAVA_CLI_PATH="$(find /usr/src -type f -name utbot-cli*)"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You use /usr/src in two places so maybe it would be useful to switch to variable. Use ARG to access variable only in build stage or ENV to use inside docker container as well

RUN ln -s "${JAVA_CLI_PATH}" $pwd/utbot-cli.jar