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

feat(sage): import shiny-base project #2939

Merged
merged 66 commits into from
Dec 7, 2024
Merged
Changes from 1 commit
Commits
Show all changes
66 commits
Select commit Hold shift + click to select a range
b2afebb
Initial commit
brucehoff Oct 19, 2022
f7bea4b
initial commit
brucehoff Oct 19, 2022
390ae92
push image to dockerhub
brucehoff Oct 20, 2022
723164a
fixed whitespace
brucehoff Oct 20, 2022
1c0a136
fixed whitespace
brucehoff Oct 20, 2022
e797d93
fixed whitespace
brucehoff Oct 20, 2022
a1828da
fixed docker image reference
brucehoff Oct 20, 2022
07db874
fixed docker image reference
brucehoff Oct 20, 2022
d7c9fa9
added libssl-dev
brucehoff Oct 21, 2022
155e078
finish shiny install
brucehoff Oct 21, 2022
20b8b29
fixed shiny server startup
brucehoff Oct 21, 2022
40f255c
remove default app's
brucehoff Oct 21, 2022
fea75a0
Set USER as shiny
brucehoff Oct 23, 2022
79d54f9
chmod, set env
brucehoff Oct 24, 2022
5ba0473
make library folder accessible to 'shiny'
brucehoff Oct 24, 2022
af2a5ee
make library folder accessible to 'shiny'
brucehoff Oct 24, 2022
6366f36
configure for just one application
brucehoff Oct 24, 2022
7bac562
configure for just one application
brucehoff Oct 24, 2022
2b9b090
added startup script
brucehoff Oct 24, 2022
94bfc72
added startup.sh script
brucehoff Oct 24, 2022
5105713
use jq to parse env var JSON and fill .Renvion
brucehoff Oct 24, 2022
34cd9c9
install pip
brucehoff Oct 26, 2022
2f19278
added python3-venv
brucehoff Oct 26, 2022
765d6ef
added sudo
brucehoff Oct 26, 2022
00d74d3
improved env var handling
brucehoff Nov 9, 2022
85b5850
revert to 'old' way of passing env var
brucehoff Nov 9, 2022
f84fe2f
revert method to pass env var's
brucehoff Nov 10, 2022
f4f05a8
added cmake
brucehoff Nov 19, 2022
ad45cc3
allow app' specific config
brucehoff Feb 11, 2023
a27bf3e
fixed release-1.1
brucehoff Feb 12, 2023
a72f8ce
updated ReadMe
brucehoff Apr 4, 2023
148bc2e
Added pre-check/linters and security scanning
brucehoff Jul 25, 2024
27e064e
Updated Dockerfile linting
brucehoff Jul 25, 2024
059b4c3
removed 'rm -rf' after update/install to fix error in 'install tzdata'
brucehoff Jul 26, 2024
d492456
restore 'rm -rf /var/lib/apt/lists/*'
brucehoff Jul 26, 2024
c2afc0c
IT-3421: Matrix build; ReadMe
brucehoff Jul 31, 2024
18f9f37
IT-3421: Ensure repo' name is lower case
brucehoff Jul 31, 2024
5f6cd83
IT-3421: Fixed metadata action
brucehoff Jul 31, 2024
b78a9ce
Added check of meta json
brucehoff Jul 31, 2024
9ceb4da
Added check of meta json
brucehoff Jul 31, 2024
2238ce4
Fixed bug
brucehoff Jul 31, 2024
a86ed22
remove erroneous build matrix
brucehoff Aug 1, 2024
29436c6
trying to fix periodic scan by adding 'checkout'
brucehoff Aug 2, 2024
a0b1bcc
fixed daily cron job for Trivy
brucehoff Aug 4, 2024
90bf5b0
build image just before pushing
brucehoff Aug 16, 2024
639129d
set registry push to true
brucehoff Aug 16, 2024
fe7c42f
try using docker save/load
brucehoff Aug 19, 2024
afcbfa2
revert last change
brucehoff Aug 19, 2024
fa62ae8
Dummy commit to trigger build
brucehoff Sep 4, 2024
da0c136
IT-391: Rebuild container when daily Trivy scan fails
brucehoff Oct 30, 2024
02b0110
bump Trivy version from 0.24 to 0.28; run hourly until problem is fixed.
brucehoff Nov 4, 2024
e375480
try getting trivy db from public ECR
brucehoff Nov 4, 2024
8f585c4
revert trivy scans to daily
brucehoff Nov 5, 2024
7582e03
added '\!cancelled() &&' to statement
brucehoff Nov 5, 2024
ca348dd
Fix reference to output in reusable workflow
brucehoff Nov 25, 2024
e587ed2
perform periodic scan on latest tag, not on 'main'
brucehoff Dec 3, 2024
5771c82
perform periodic scan on latest tag, not on 'main'
brucehoff Dec 4, 2024
bb5ad63
try semver-action
brucehoff Dec 5, 2024
e12e6a7
fixed call to semver-action
brucehoff Dec 6, 2024
ee51402
fix reference to get-image-reference
brucehoff Dec 7, 2024
466b457
feat(repo): merge main from https://github.com/Sage-Bionetworks/shiny…
tschaffter Dec 7, 2024
2c5a920
remove files
tschaffter Dec 7, 2024
70c8108
Add project.json
tschaffter Dec 7, 2024
87da159
Update project.json
tschaffter Dec 7, 2024
d7e410a
Ignore Hadolint issues
tschaffter Dec 7, 2024
8b127b3
Ignore one more Hadolint issue
tschaffter Dec 7, 2024
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
Prev Previous commit
Next Next commit
Add project.json
tschaffter committed Dec 7, 2024
commit 70c81085b340200fd70c62509d9223613c40342f
20 changes: 20 additions & 0 deletions apps/sage/shiny-base/project.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"name": "sage-shiny-base",
"$schema": "../../../node_modules/nx/schemas/project-schema.json",
"projectType": "application",
"targets": {
"serve-detach": {
"executor": "nx:run-commands",
"options": {
"command": "docker/sage/serve-detach.sh {project-name}"
}
},
"scan-image": {
"executor": "nx:run-commands",
"options": {
"command": "trivy image ghcr.io/sage-bionetworks/{projectName}:local --quiet",
"color": true
}
}
}
}

Unchanged files with check annotations Beta

FROM ubuntu:22.04
RUN apt-get -y update && apt-get -y upgrade

Check failure on line 3 in apps/sage/shiny-base/Dockerfile

GitHub Actions / hadolint

DL3009 info: Delete the apt-get lists after installing something
# The following is necessary to avoid an interactive prompt when installing r-base
RUN DEBIAN_FRONTEND=noninteractive TZ=Etc/UTC apt-get -y install tzdata

Check failure on line 5 in apps/sage/shiny-base/Dockerfile

GitHub Actions / hadolint

DL3015 info: Avoid additional packages by specifying `--no-install-recommends`
# instructions here: https://www.rstudio.com/products/shiny/download-server/ubuntu/
RUN apt-get install -y r-base r-base-dev

Check failure on line 7 in apps/sage/shiny-base/Dockerfile

GitHub Actions / hadolint

DL3059 info: Multiple consecutive `RUN` instructions. Consider consolidation.

Check failure on line 7 in apps/sage/shiny-base/Dockerfile

GitHub Actions / hadolint

DL3015 info: Avoid additional packages by specifying `--no-install-recommends`
RUN apt-get install -y libssl-dev libcurl4-openssl-dev libxml2-dev jq pip sudo python3-venv

Check failure on line 8 in apps/sage/shiny-base/Dockerfile

GitHub Actions / hadolint

DL3059 info: Multiple consecutive `RUN` instructions. Consider consolidation.

Check failure on line 8 in apps/sage/shiny-base/Dockerfile

GitHub Actions / hadolint

DL3015 info: Avoid additional packages by specifying `--no-install-recommends`
# cmake is needed to install some packages
RUN apt-get install -y cmake

Check failure on line 11 in apps/sage/shiny-base/Dockerfile

GitHub Actions / hadolint

DL3015 info: Avoid additional packages by specifying `--no-install-recommends`

Check failure on line 11 in apps/sage/shiny-base/Dockerfile

GitHub Actions / hadolint

DL3059 info: Multiple consecutive `RUN` instructions. Consider consolidation.
RUN Rscript -e "install.packages('shiny', repos='http://cran.rstudio.com/')"

Check failure on line 13 in apps/sage/shiny-base/Dockerfile

GitHub Actions / hadolint

DL3059 info: Multiple consecutive `RUN` instructions. Consider consolidation.
RUN apt-get install -y gdebi-core wget && rm -rf /var/lib/apt/lists/*

Check failure on line 14 in apps/sage/shiny-base/Dockerfile

GitHub Actions / hadolint

DL3015 info: Avoid additional packages by specifying `--no-install-recommends`
RUN wget https://download3.rstudio.org/ubuntu-18.04/x86_64/shiny-server-1.5.19.995-amd64.deb
RUN gdebi --n shiny-server-1.5.19.995-amd64.deb