-
Notifications
You must be signed in to change notification settings - Fork 1
Clean up repository #10
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
base: develop
Are you sure you want to change the base?
Changes from all commits
9dfac5c
64bbb0e
5a4f490
225fbd2
883825c
0c21302
4d2e03d
0e51cde
3db2206
0d0e4b2
1bf1d2b
e447bd9
3d2db6e
b72b2cd
5164d5c
db88529
4fedf4a
0d5a92d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1,7 @@ | ||
| * text=auto | ||
|
|
||
| # Files under a files/ directory are COPY'd into Docker images and | ||
| # run/sourced as Unix scripts. Force LF line endings on checkout so a | ||
| # fresh enlistment is always correct, regardless of the checkout | ||
| # machine's core.autocrlf setting. | ||
| **/files/** text eol=lf |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -6,6 +6,9 @@ name: hadolint | |
| branches: | ||
| - develop | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| jobs: | ||
| hadolint: | ||
| name: hadolint | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| --- | ||
| name: 'Run Shellcheck' | ||
|
|
||
| "on": | ||
| - pull_request | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| jobs: | ||
| shellcheck: | ||
| name: Shellcheck | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@v6 | ||
|
|
||
| - name: Run ShellCheck | ||
| uses: ludeeus/action-shellcheck@2.0.0 | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,31 @@ | ||
| # Build the LabKey R Docker images. | ||
| # | ||
| # Usage: | ||
| # make <target> [R_VERSION=<tag>] | ||
| # | ||
| # Targets: | ||
| # r labkey/r (from ubuntu; version is fixed in the Dockerfile) | ||
| # rsandbox labkey/rsandbox (from rocker/r-ver:$(R_VERSION)) | ||
| # rstudio-base labkey/rstudio-base (from rocker/rstudio:$(R_VERSION)) | ||
| # rstudio labkey/rstudio (from labkey/rstudio-base:$(R_VERSION); builds rstudio-base first) | ||
| # all build every image above | ||
| # | ||
| # Requires Docker 17.05.0 or greater. | ||
|
|
||
| .PHONY: all r rsandbox rstudio-base rstudio | ||
|
|
||
| R_VERSION ?= latest | ||
|
|
||
| all: r rsandbox rstudio-base rstudio | ||
|
|
||
| r: | ||
| docker build -t labkey/r:latest r | ||
|
|
||
| rsandbox: | ||
| docker build --build-arg VERSION=$(R_VERSION) -t labkey/rsandbox:$(R_VERSION) rsandbox | ||
|
|
||
| rstudio-base: | ||
| docker build --build-arg VERSION=$(R_VERSION) -t labkey/rstudio-base:$(R_VERSION) rstudio-base | ||
|
|
||
| rstudio: rstudio-base | ||
| docker build --build-arg VERSION=$(R_VERSION) -t labkey/rstudio:$(R_VERSION) rstudio |
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,28 +1,25 @@ | ||
| ARG VERSION=4.0.5 | ||
| ARG VERSION=latest | ||
| FROM rocker/rstudio:${VERSION} | ||
|
|
||
| SHELL ["/bin/bash", "-o", "pipefail", "-c"] | ||
|
|
||
| RUN apt-get update && \ | ||
| apt-get install -y --no-install-recommends apt-utils && \ | ||
| apt-get install -y --no-install-recommends dos2unix nano procps libxml2-dev xvfb zlib1g-dev libuv1-dev && \ | ||
| apt-get install -y --no-install-recommends nano procps libxml2-dev xvfb zlib1g-dev libuv1-dev && \ | ||
| apt-get clean && \ | ||
| rm -rf /var/lib/apt/lists/* | ||
|
|
||
| COPY conf /etc/cont-init.d/ | ||
| RUN dos2unix /etc/cont-init.d/conf | ||
| COPY files/conf /etc/cont-init.d/ | ||
|
|
||
| COPY install.R / | ||
| COPY files/install.R / | ||
| RUN R --no-site-file -f install.R && \ | ||
| chmod -R 755 /usr/local/lib/R/library && \ | ||
| chmod -R 755 /usr/local/lib/R/site-library | ||
|
|
||
| COPY Rprofile.site /Rprofile.site.tmp | ||
| RUN dos2unix /Rprofile.site.tmp && \ | ||
| cat /Rprofile.site.tmp >> /usr/local/lib/R/etc/Rprofile.site && \ | ||
| COPY files/Rprofile.site /Rprofile.site.tmp | ||
| RUN cat /Rprofile.site.tmp >> /usr/local/lib/R/etc/Rprofile.site && \ | ||
| rm /Rprofile.site.tmp | ||
| RUN echo "R_LIBS_USER=~/R/$(R --version | grep -Eo '[0-9]+[.]+[0-9]+')/library" >> /usr/local/lib/R/etc/Renviron | ||
|
|
||
| COPY cleanupSessionFiles.sh / | ||
| RUN dos2unix /cleanupSessionFiles.sh && \ | ||
| chmod 755 /cleanupSessionFiles.sh | ||
| COPY files/cleanupSessionFiles.sh / | ||
| RUN chmod 755 /cleanupSessionFiles.sh |
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
Uh oh!
There was an error while loading. Please reload this page.