Skip to content

Commit 7a85159

Browse files
test: exclude data.rds from build (#39)
1 parent bbf6cd5 commit 7a85159

2 files changed

Lines changed: 19 additions & 5 deletions

File tree

.seqera/.dockerignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# data.rds is delivered at runtime via the Studios git clone (into
2+
# /workspace/.seqera), not through the image build context. It also
3+
# exceeds the 5MB per-file build-context limit, so it must be excluded
4+
# here or the studio build will fail.
5+
data.rds

.seqera/Dockerfile

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,17 @@ LABEL io.seqera.connect.version="${CONNECT_CLIENT_VERSION}"
7777
COPY --from=connect /usr/bin/connect-client /usr/bin/connect-client
7878
RUN /usr/bin/connect-client --install
7979

80-
WORKDIR /app
81-
82-
# Pre-built shinyngs app and its serialised dataset
83-
COPY app.R data.rds /app/
80+
# ---------------------------------------------------------------
81+
# App code (app.R) and dataset (data.rds) are NOT copied into the
82+
# image. They are delivered at runtime by the Studios git clone into
83+
# /workspace/.seqera (configured via session.clone in studio-config.yaml).
84+
#
85+
# WARNING: If clone is not enabled, the studio won't run — app.R and
86+
# data.rds will be missing from the container.
87+
#
88+
# data.rds is also excluded from the docker build context via
89+
# .seqera/.dockerignore (it exceeds the 5MB build-context file limit).
90+
# ---------------------------------------------------------------
8491

8592
# ---------------------------------------------------------------
8693
# 3) Launch with connect-client --entrypoint (for Platform)
@@ -90,4 +97,6 @@ ENTRYPOINT ["/usr/bin/connect-client", "--entrypoint"]
9097
# Port is set by CONNECT_TOOL_PORT. library() calls are required:
9198
# shinyngs attaches prepareApp() for app.R; shinyBS/shinyjs register
9299
# their addResourcePath hooks (else sbs/shinyBS.css etc. 404).
93-
CMD ["micromamba", "run", "-n", "shinyngs", "R", "-e", "library(shinyngs); library(shinyBS); library(shinyjs); library(markdown); shiny::runApp('/app', host='0.0.0.0', port=as.integer(Sys.getenv('CONNECT_TOOL_PORT')))"]
100+
# runApp() runs from the cloned app dir, so app.R's relative
101+
# readRDS("data.rds") resolves to /workspace/.seqera/data.rds.
102+
CMD ["micromamba", "run", "-n", "shinyngs", "R", "-e", "library(shinyngs); library(shinyBS); library(shinyjs); library(markdown); shiny::runApp('/workspace/.seqera', host='0.0.0.0', port=as.integer(Sys.getenv('CONNECT_TOOL_PORT')))"]

0 commit comments

Comments
 (0)