-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update dependencies, add worker events.
- Loading branch information
Showing
19 changed files
with
2,558 additions
and
17,931 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
web/node_modules | ||
web/dist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
web/node_modules | ||
web/dist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,36 @@ | ||
ARG PUBLIC_URL=/ | ||
ARG BASE_URL=/ | ||
|
||
FROM node:22 | ||
ARG PUBLIC_URL | ||
ARG BASE_URL | ||
WORKDIR /src | ||
|
||
COPY web/package.json /src | ||
COPY web/package-lock.json /src | ||
RUN npm ci | ||
|
||
COPY web /src | ||
RUN PUBLIC_URL=${PUBLIC_URL} npm run build | ||
RUN npm run build -- --base=${BASE_URL} | ||
|
||
FROM rocker/r-ver:latest | ||
ARG PUBLIC_URL | ||
ARG BASE_URL | ||
|
||
RUN R -e 'install.packages("pak", repos = sprintf("https://r-lib.github.io/p/pak/stable/%s/%s/%s", .Platform$pkgType, R.Version()$os, R.Version()$arch))' | ||
|
||
COPY DESCRIPTION /src/DESCRIPTION | ||
RUN R -e 'pak::local_install_deps("/src")' | ||
|
||
COPY . /src | ||
COPY NAMESPACE /src | ||
COPY R /src/R | ||
COPY inst /src/inst | ||
RUN R -e 'pak::local_install("/src")' | ||
|
||
COPY --from=0 /src/build/static /static | ||
COPY --from=0 /src/build/index.html /static/index.html | ||
COPY --from=0 /src/dist /static | ||
|
||
COPY --chmod=755 <<EOF /usr/local/bin/rrq.dashboard | ||
#!/usr/bin/env Rscript | ||
rrq.dashboard:::main() | ||
EOF | ||
|
||
ENV PUBLIC_URL=${PUBLIC_URL} | ||
CMD exec rrq.dashboard --static=/static --base-path=${PUBLIC_URL} | ||
ENV BASE_URL=${BASE_URL} | ||
CMD exec rrq.dashboard --static=/static --base-path=${BASE_URL} | ||
EXPOSE 8888 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1" /> | ||
<meta name="description" content="A dashboard for rrq tasks"/> | ||
<title>rrq dashboard</title> | ||
</head> | ||
<body> | ||
<noscript>You need to enable JavaScript to run this app.</noscript> | ||
<div id="root"></div> | ||
<script type="module" src="/src/index.jsx"></script> | ||
</body> | ||
</html> | ||
|
Oops, something went wrong.