Skip to content

Commit

Permalink
Make it executable
Browse files Browse the repository at this point in the history
  • Loading branch information
cansavvy committed Jan 30, 2025
1 parent 69e8d3d commit 4b9a3a5
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
12 changes: 5 additions & 7 deletions ottrpal/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
FROM jhudsl/base_ottr
FROM jhudsl/base_ottr:dev
LABEL maintainer="[email protected]"

RUN installGithub.r \
jhudsl/ottrpal \
jhudsl/cow
WORKDIR /app

COPY entrypoint.sh .

ARG CHECK_TYPE
ENV CHECK_TYPE=${INPUT_CHECK_TYPE}
RUN chmod +x entrypoint.sh

ENTRYPOINT ["Rscript -e 'ottrpal::check(check_type == ${INPUT_CHECK_TYPE})'"]
ENTRYPOINT ["/app/entrypoint.sh"]
8 changes: 8 additions & 0 deletions ottrpal/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/sh

Rscript -e "ottrpal::ottr_check(check_type = '$1', path = '$2')"

# Save output
echo "error_name=$error_name" >> $GITHUB_OUTPUT
echo "report_path=$report_path" >> $GITHUB_OUTPUT
echo "chk_results=$chk_results" >> $GITHUB_OUTPUT

0 comments on commit 4b9a3a5

Please sign in to comment.