Skip to content

Commit

Permalink
Merge pull request #368 from NIEHS/container-01
Browse files Browse the repository at this point in the history
set up container, def, and archive old bash scripts
  • Loading branch information
kyle-messier authored Oct 1, 2024
2 parents 524fcd7 + bad244e commit 45a2170
Show file tree
Hide file tree
Showing 9 changed files with 54 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/check-standard.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
on:
push:
branches: [main, master]
branches: [main, master, dev]
pull_request:
branches: [main, master]
branches: [main, master, dev]

name: R-CMD-check

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
on:
push:
branches: [main, master]
branches: [main, master, dev]
pull_request:
branches: [main, master]
branches: [main, master, dev]

name: lint

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/pkgdown.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
on:
push:
branches: [main, master]
branches: [main, master, dev]
pull_request:
branches: [main, master]
branches: [main, master, dev]
release:
types: [published]
workflow_dispatch:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test-coverage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
on:
push:
branches: [main, master]
branches: [main, master, dev]
pull_request:
branches: [main, master]
branches: [main, master, dev]

name: test-coverage-local

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
46 changes: 46 additions & 0 deletions container/beethoven_dl_calc.def
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
BootStrap: docker
From: rocker/geospatial:latest

%files
/ddn/gs1/tools/set/R432/lib64/R/library /R_packages


%post
# Update package list
apt-get update

# Install locales and generate the necessary locale
apt-get install -y locales
locale-gen en_US.UTF-8

# Install fonts for Unicode support
apt-get install -y fonts-dejavu fonts-liberation fonts-noto fonts-unifont

# Set locale for the environment
echo "LANG=en_US.UTF-8" >> /etc/default/locale
echo "LC_ALL=en_US.UTF-8" >> /etc/default/locale
export LANG=en_US.UTF-8
export LC_ALL=en_US.UTF-8


mkdir /pipeline
mkdir /input
mkdir /opt/_targets

Rscript -e "install.packages(c('pak','targets','tarchetypes','crew','crew.cluster'))"
Rscript -e "pak::pkg_install('NIEHS/amadeus')"
Rscript -e "remotes::install_github('NIEHS/beethoven')"




%environment
# Set locale for the container environment
export LANG=en_US.UTF-8
export LC_ALL=en_US.UTF-8
export TERM=xterm-256color

%runscript

%labels
basic geospatial with targets and crew plus unicode text so the target progress prints nicely

0 comments on commit 45a2170

Please sign in to comment.