-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement stage tests for connect (borked)
- Loading branch information
1 parent
bf20f94
commit d02d71d
Showing
5 changed files
with
96 additions
and
40 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,5 +1,5 @@ | ||
# Tag from https://hub.docker.com/_/ubuntu/ | ||
FROM ubuntu:22.04 | ||
FROM ubuntu:22.04 as build | ||
LABEL maintainer="RStudio Connect <[email protected]>" | ||
|
||
# Install required tools: | ||
|
@@ -23,3 +23,10 @@ RUN mkdir -p /rsc-staging && \ | |
|
||
COPY --chmod=755 entrypoint.sh /usr/local/bin/entrypoint.sh | ||
CMD ["/usr/local/bin/entrypoint.sh"] | ||
|
||
FROM build as test | ||
|
||
ARG RSC_VERSION=2024.02.0 | ||
|
||
RUN --mount=type=bind,target=/tmp/test,source=test/ \ | ||
/tmp/test/run_tests.sh |
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,10 +1,11 @@ | ||
# syntax=docker/dockerfile:1-labs | ||
ARG R_VERSION=4.2.3 | ||
ARG R_VERSION_ALT=4.1.3 | ||
ARG PYTHON_VERSION=3.9.17 | ||
ARG PYTHON_VERSION_ALT=3.8.17 | ||
ARG SRC_IMAGE_NAME=product-base-pro | ||
ARG REGISTRY=ghcr.io | ||
FROM ${REGISTRY}/rstudio/${SRC_IMAGE_NAME}:ubuntu2204-r${R_VERSION}_${R_VERSION_ALT}-py${PYTHON_VERSION}_${PYTHON_VERSION_ALT} | ||
FROM ${REGISTRY}/rstudio/${SRC_IMAGE_NAME}:ubuntu2204-r${R_VERSION}_${R_VERSION_ALT}-py${PYTHON_VERSION}_${PYTHON_VERSION_ALT} as build | ||
LABEL maintainer="RStudio Docker <[email protected]>" | ||
|
||
COPY --chmod=0775 startup.sh /usr/local/bin/startup.sh | ||
|
@@ -44,3 +45,16 @@ VOLUME ["/data"] | |
|
||
ENTRYPOINT ["tini", "--"] | ||
CMD ["/usr/local/bin/startup.sh"] | ||
|
||
FROM build as test | ||
|
||
ARG R_VERSION=4.2.3 | ||
ARG R_VERSION_ALT=4.1.3 | ||
ARG PYTHON_VERSION=3.12.1 | ||
ARG PYTHON_VERSION_ALT=3.11.7 | ||
ARG RSC_VERSION=2024.02.0 | ||
ARG OS=ubuntu2204 | ||
|
||
RUN --mount=type=bind,target=/tmp/test,source=test/ \ | ||
--security=insecure \ | ||
/tmp/test/run_tests.sh |
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