Skip to content
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

Assert correctness of ci images #90

Merged
merged 15 commits into from
Dec 7, 2023
Merged
Show file tree
Hide file tree
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 .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
walkowif marked this conversation as resolved.
Show resolved Hide resolved

# 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
Loading