Skip to content

Commit

Permalink
Merge pull request #741 from rstudio/bs-connect-2024.04.01-with-fixes
Browse files Browse the repository at this point in the history
Update Posit Connect version to 2024.04.0 and fix `update-rsc-versions`
  • Loading branch information
bschwedler authored Apr 30, 2024
2 parents 836ee5a + ba8e263 commit 75f550b
Show file tree
Hide file tree
Showing 9 changed files with 23 additions and 23 deletions.
6 changes: 1 addition & 5 deletions Justfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ sed_vars := if os() == "macos" { "-i ''" } else { "-i" }

BUILDX_PATH := ""

RSC_VERSION := "2024.03.0"
RSC_VERSION := "2024.04.0"
RSPM_VERSION := "2023.12.0-13"
RSW_VERSION := "2024.04.0+735.pro3"

Expand Down Expand Up @@ -266,11 +266,7 @@ update-rsc-versions:
connect/.env \
connect/Dockerfile.ubuntu2204 \
connect-content-init/Dockerfile.ubuntu2204
sed {{ sed_vars }} "s/RSC_VERSION:.*/RSC_VERSION: {{ RSC_VERSION }}/g" docker-compose.yml
sed {{ sed_vars }} "s/rstudio\/rstudio-connect:.*/rstudio\/rstudio-connect:{{ RSC_VERSION }}/g" docker-compose.yml
sed {{ sed_vars }} "s/^RSC_VERSION := .*/RSC_VERSION := \"{{ RSC_VERSION }}\"/g" \
connect/Justfile \
connect-content-init/Justfile \
Justfile
sed {{ sed_vars }} -E "s/[0-9]{4}\.[0-9]{1,2}\.[0-9]{1,2}/`just _get-clean-version {{ RSC_VERSION }}`/g" \
connect/README.md \
Expand Down
2 changes: 1 addition & 1 deletion connect-content-init/Dockerfile.ubuntu2204
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ RUN apt-get update && \
apt-get install -y --no-install-recommends ca-certificates curl && \
rm -rf /var/lib/apt/lists/*

ARG RSC_VERSION=2024.03.0
ARG RSC_VERSION=2024.04.0
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
RUN mkdir -p /rsc-staging && \
RSC_VERSION_URL=$(echo -n "${RSC_VERSION}" | sed 's/+/%2B/g') && \
Expand Down
6 changes: 3 additions & 3 deletions connect-content-init/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

# Supported tags and respective Dockerfile links

* [`jammy`, `ubuntu2204`, `jammy-2024.03.0`, `ubuntu2204-2024.03.0`](https://github.com/rstudio/rstudio-docker-products/blob/main/connect/Dockerfile.2204)
* [`jammy`, `ubuntu2204`, `jammy-2024.04.0`, `ubuntu2204-2024.04.0`](https://github.com/rstudio/rstudio-docker-products/blob/main/connect/Dockerfile.2204)

# RStudio Connect Content Init Container

Expand All @@ -31,7 +31,7 @@ The version of the release package to use can be overridden with the
`RSC_VERSION` build arg.

```console
just build ubuntu2204 2024.03.0
just build ubuntu2204 2024.04.0
```

## Testing
Expand All @@ -56,7 +56,7 @@ just test
You can see the different layers that make up the image:

```console
docker history rstudio/rstudio-connect-content-init-preview:2024.03.0-dev-326
docker history rstudio/rstudio-connect-content-init-preview:2024.04.0-dev-326
```

NOTE: almost all the image size is pandoc.
Expand Down
2 changes: 1 addition & 1 deletion connect/.env
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
RSC_VERSION=2024.03.0
RSC_VERSION=2024.04.0
R_VERSION=4.2.3
R_VERSION_ALT=4.1.3
PYTHON_VERSION=3.9.17
Expand Down
4 changes: 2 additions & 2 deletions connect/Dockerfile.ubuntu2204
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ 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 RSC_VERSION=2024.03.0
ARG QUARTO_VERSION=1.3.340
ARG RSC_VERSION=2024.04.0
ARG QUARTO_VERSION=1.4.552
ARG SCRIPTS_DIR=/opt/positscripts

### Install Quarto ###
Expand Down
4 changes: 4 additions & 0 deletions connect/NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# 2024-04-30

- BREAKING: Upgrade the default Quarto version to 1.4.552.

# 2023-08-01
- BREAKING: Removed R 3.6.2, replaced with R 4.1.3.
- Updated R 4.2.0 to 4.2.3.
Expand Down
2 changes: 1 addition & 1 deletion connect/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

# Supported tags and respective Dockerfile links

* [`jammy`, `ubuntu2204`, `jammy-2024.03.0`, `ubuntu2204-2024.03.0`](https://github.com/rstudio/rstudio-docker-products/blob/main/connect/Dockerfile.2204)
* [`jammy`, `ubuntu2204`, `jammy-2024.04.0`, `ubuntu2204-2024.04.0`](https://github.com/rstudio/rstudio-docker-products/blob/main/connect/Dockerfile.2204)

# What is Posit Connect?

Expand Down
18 changes: 9 additions & 9 deletions docker-bake.hcl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
### Variable definitions ###
variable CONNECT_VERSION {
default = "2024.03.0"
default = "2024.04.0"
}

variable PACKAGE_MANAGER_VERSION {
Expand Down Expand Up @@ -101,7 +101,7 @@ variable PACKAGE_MANAGER_BUILD_MATRIX {
variable CONNECT_BUILD_MATRIX {
default = {
builds = [
{os = "ubuntu2204", r_primary = "4.2.3", r_alternate = "4.1.3", py_primary = "3.9.17", py_alternate = "3.8.17", quarto = "1.3.340"},
{os = "ubuntu2204", r_primary = "4.2.3", r_alternate = "4.1.3", py_primary = "3.9.17", py_alternate = "3.8.17", quarto = DEFAULT_QUARTO_VERSION},
]
}
}
Expand Down Expand Up @@ -231,9 +231,9 @@ target "product-base" {
"ghcr.io/rstudio/product-base:${builds.os}-r${builds.r_primary}_${builds.r_alternate}-py${builds.py_primary}_${builds.py_alternate}",
"docker.io/rstudio/product-base:${builds.os}-r${builds.r_primary}_${builds.r_alternate}-py${builds.py_primary}_${builds.py_alternate}",
]

dockerfile = "Dockerfile.${builds.os}"
context = "product/base"
context = "product/base"

matrix = BASE_BUILD_MATRIX
args = {
Expand All @@ -242,7 +242,7 @@ target "product-base" {
PYTHON_VERSION = builds.py_primary
PYTHON_VERSION_ALT = builds.py_alternate
TINI_VERSION = "0.19.0"
}
}
}

target "product-base-pro" {
Expand All @@ -255,7 +255,7 @@ target "product-base-pro" {
"docker.io/rstudio/product-base-pro:${builds.os}-r${builds.r_primary}_${builds.r_alternate}-py${builds.py_primary}_${builds.py_alternate}",
]

dockerfile = "Dockerfile.${builds.os}"
dockerfile = "Dockerfile.${builds.os}"
context = "product/pro"
contexts = {
product-base = "target:product-base-${builds.os}-r${replace(builds.r_primary, ".", "-")}_${replace(builds.r_alternate, ".", "-")}-py${replace(builds.py_primary, ".", "-")}_${replace(builds.py_alternate, ".", "-")}"
Expand Down Expand Up @@ -434,7 +434,7 @@ target "workbench" {
RSW_VERSION = WORKBENCH_VERSION
RSW_NAME = "rstudio-workbench"
RSW_DOWNLOAD_URL = "https://download2.rstudio.org/server/jammy/amd64"
}
}
}

### Workbench for Google Cloud Workstations targets ###
Expand Down Expand Up @@ -469,7 +469,7 @@ target "workbench-for-google-cloud-workstations" {
RSW_VERSION = WORKBENCH_VERSION
RSW_NAME = "rstudio-workbench"
RSW_DOWNLOAD_URL = "https://download2.rstudio.org/server/focal/amd64"
}
}
}

### Workbench for Microsoft Azure ML targets ###
Expand All @@ -496,7 +496,7 @@ target "build-workbench-for-microsoft-azure-ml" {
RSW_VERSION = WORKBENCH_VERSION
RSW_NAME = "rstudio-workbench"
RSW_DOWNLOAD_URL = "https://download2.rstudio.org/server/jammy/amd64"
}
}
}

target "scan-workbench-for-microsoft-azure-ml" {
Expand Down
2 changes: 1 addition & 1 deletion docker-bake.preview.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ variable PACKAGE_MANAGER_BUILD_MATRIX {
variable CONNECT_BUILD_MATRIX {
default = {
builds = [
{os = "ubuntu2204", r_primary = "4.2.3", r_alternate = "4.1.3", py_primary = "3.11.9", py_alternate = "3.10.14", quarto = "1.3.340"},
{os = "ubuntu2204", r_primary = "4.2.3", r_alternate = "4.1.3", py_primary = "3.11.9", py_alternate = "3.10.14", quarto = DEFAULT_QUARTO_VERSION},
]
}
}
Expand Down

0 comments on commit 75f550b

Please sign in to comment.