Skip to content

Commit

Permalink
Assert correctness of ci images (#90)
Browse files Browse the repository at this point in the history
  • Loading branch information
walkowif authored Dec 7, 2023
1 parent 6bcad52 commit 8314cba
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ jobs:
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
password: ${{ secrets.REPO_GITHUB_TOKEN }}

- name: Set build variables 📐
id: build_vars
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/linter.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
fetch-depth: 0

- name: Lint Code Base 🧶
uses: github/super-linter/slim@v5
uses: super-linter/super-linter/slim@v5
env:
VALIDATE_ALL_CODEBASE: false
DEFAULT_BRANCH: main
Expand Down
7 changes: 7 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ COPY --chmod=0755 [\
# Install sysdeps
RUN ./install_sysdeps.sh ${DISTRIBUTION}

RUN R --version && \
java -version && \
python3 --version

# Install R packages
RUN ./install_cran_pkgs.R ${DISTRIBUTION} && \
./install_bioc.R ${BIOC_VERSION} && \
Expand All @@ -49,5 +53,8 @@ RUN ./install_cran_pkgs.R ${DISTRIBUTION} && \
install_other_pkgs.R \
install_pip_pkgs.py

# Prevent pushing of the image without pdflatex installed.
RUN pdflatex --version

# Run RStudio
CMD ["/init"]
12 changes: 10 additions & 2 deletions scripts/install_cran_pkgs.R
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,11 @@ tlmgr install makeindex metafont mfware inconsolata tex ae parskip listings xcol
tlmgr path add
'
# nolint end
system(tinytex_installer)
exit_status <- system(tinytex_installer)
cat("TinyTeX installer exited with code =", exit_status, "\n")
if (exit_status != 0) {
quit(status = exit_status)
}
tinytex::r_texmf()
permission_update <- '
chown -R root:staff /opt/TinyTeX
Expand All @@ -291,7 +295,11 @@ chmod -R g+wx /opt/TinyTeX/bin
export PATH=/opt/TinyTeX/bin/x86_64-linux:${PATH}
echo "PATH=${PATH}" >> ${R_HOME}/etc/Renviron
'
system(permission_update)
exit_status <- system(permission_update)
cat("TinyTeX permission update exited with code =", exit_status, "\n")
if (exit_status != 0) {
quit(status = exit_status)
}
}

# Update all packages
Expand Down

0 comments on commit 8314cba

Please sign in to comment.