-
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.
Merge pull request #709 from rstudio/dev
Merge dev to main
- Loading branch information
Showing
20 changed files
with
193 additions
and
53 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
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 |
---|---|---|
|
@@ -56,11 +56,16 @@ runs: | |
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v2 | ||
|
||
- name: Free Disk space | ||
shell: bash | ||
run: | | ||
sudo rm -rf /usr/local/lib/android # will release about 10 GB | ||
sudo rm -rf /usr/share/dotnet # will release about 20GB | ||
- name: Free Disk Space (Ubuntu) | ||
uses: jlumbroso/[email protected] | ||
with: | ||
tool-cache: false | ||
android: true | ||
dotnet: true | ||
haskell: true | ||
large-packages: true | ||
docker-images: true | ||
swap-storage: false | ||
|
||
- name: Login to ghcr.io | ||
uses: docker/login-action@v3 | ||
|
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,127 @@ | ||
on: | ||
schedule: | ||
- cron: '0 14 * * 1' # If updating this value, be sure to update logic for all `push-image` arguments! | ||
push: | ||
branches: | ||
- main | ||
- dev | ||
pull_request: | ||
|
||
name: Workbench for Azure ML - Build, Test, Scan, and Push | ||
jobs: | ||
build-workbench-for-azure-ml: | ||
env: | ||
product: workbench-for-microsoft-azure-ml | ||
os: ubuntu2204 | ||
r-primary: 4.2.3 | ||
r-alternate: 4.1.3 | ||
py-primary: 3.9.14 | ||
py-alternate: 3.8.15 | ||
runs-on: ubuntu-latest-4x | ||
name: build-workbench-for-azure-ml | ||
|
||
permissions: | ||
contents: read | ||
packages: write | ||
|
||
steps: | ||
|
||
- name: Check Out Repo - cron main | ||
if: github.event.schedule == '0 14 * * 1' | ||
uses: actions/checkout@v3 | ||
with: | ||
ref: main | ||
|
||
- name: Check Out Repo | ||
if: github.event.schedule != '0 14 * * 1' | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up Just | ||
uses: extractions/setup-just@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Get Version | ||
id: get-version | ||
run: | | ||
VERSION=$(just -f ci.Justfile get-version ${{ env.product }} --type=release --local) | ||
echo "VERSION=$VERSION" >> $GITHUB_OUTPUT | ||
- name: Get build args | ||
id: get-build-args | ||
run: | | ||
EOF=$(dd if=/dev/urandom bs=15 count=1 status=none | base64) | ||
BUILD_ARGS=$( \ | ||
just -f ci.Justfile \ | ||
R_VERSION=${{ env.r-primary }} \ | ||
R_VERSION_ALT=${{ env.r-alternate }} \ | ||
PYTHON_VERSION=${{ env.py-primary }} \ | ||
PYTHON_VERSION_ALT=${{ env.py-alternate }} \ | ||
get-product-args \ | ||
${{ env.product }} \ | ||
${{ env.os }} \ | ||
${{ steps.get-version.outputs.VERSION }} \ | ||
) | ||
echo "BUILD_ARGS<<$EOF" >> $GITHUB_OUTPUT | ||
echo "$BUILD_ARGS" >> $GITHUB_OUTPUT | ||
echo "$EOF" >> $GITHUB_OUTPUT | ||
- name: Get tags | ||
id: get-tags | ||
run: | | ||
IMAGE_TAGS=$( \ | ||
just -f ci.Justfile \ | ||
R_VERSION=${{ env.r-primary }} \ | ||
R_VERSION_ALT=${{ env.r-alternate }} \ | ||
PYTHON_VERSION=${{ env.py-primary }} \ | ||
PYTHON_VERSION_ALT=${{ env.py-alternate }} \ | ||
get-product-tags \ | ||
${{ env.product }} \ | ||
${{ env.os }} \ | ||
${{ steps.get-version.outputs.VERSION }} \ | ||
) | ||
echo "IMAGE_TAGS=$IMAGE_TAGS" >> $GITHUB_OUTPUT | ||
- name: Build/Test/Scan/Push product image | ||
id: build1 | ||
uses: ./.github/actions/build-test-scan-push | ||
continue-on-error: true | ||
with: | ||
context: ./${{ env.product }} | ||
os: ${{ env.os }} | ||
product: ${{ env.product }} | ||
image-tags: ${{ steps.get-tags.outputs.IMAGE_TAGS }} | ||
build-args: ${{ steps.get-build-args.outputs.BUILD_ARGS }} | ||
push-image: ${{ github.ref == 'refs/heads/main' || github.event.schedule == '0 14 * * 1' }} | ||
snyk-token: ${{ secrets.SNYK_TOKEN }} | ||
snyk-org-id: ${{ secrets.SNYK_ORG_ID }} | ||
ghcr-token: ${{ secrets.GITHUB_TOKEN }} | ||
dockerhub-username: ${{ secrets.DOCKER_HUB_USERNAME }} | ||
dockerhub-token: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }} | ||
gcp-json: '${{ secrets.GCP_ARTIFACT_REGISTRY_JSON }}' | ||
|
||
# Begin retry logic | ||
|
||
- name: Wait 60s on failure before retrying | ||
if: steps.build1.outcome == 'failure' | ||
run: sleep 60 | ||
|
||
- name: Retry - Build/Test/Scan/Push product image | ||
id: build2 | ||
if: steps.build1.outcome == 'failure' | ||
uses: ./.github/actions/build-test-scan-push | ||
with: | ||
context: ./${{ env.product }} | ||
os: ${{ env.os }} | ||
product: ${{ env.product }} | ||
image-tags: ${{ steps.get-tags.outputs.IMAGE_TAGS }} | ||
build-args: ${{ steps.get-build-args.outputs.BUILD_ARGS }} | ||
push-image: ${{ github.ref == 'refs/heads/main' || github.event.schedule == '0 14 * * 1' }} | ||
snyk-token: ${{ secrets.SNYK_TOKEN }} | ||
snyk-org-id: ${{ secrets.SNYK_ORG_ID }} | ||
ghcr-token: ${{ secrets.GITHUB_TOKEN }} | ||
dockerhub-username: ${{ secrets.DOCKER_HUB_USERNAME }} | ||
dockerhub-token: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }} | ||
gcp-json: '${{ secrets.GCP_ARTIFACT_REGISTRY_JSON }}' | ||
|
||
# End retry logic |
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
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,23 +1,23 @@ | ||
[ | ||
{"r": "3.1.3", "py": "2.7.18", "drivers": "2023.12.1", "os": "ubuntu1804", "os_alt": "bionic"}, | ||
{"r": "3.2.5", "py": "2.7.18", "drivers": "2023.12.1", "os": "ubuntu1804", "os_alt": "bionic"}, | ||
{"r": "3.3.3", "py": "3.6.13", "drivers": "2023.12.1", "os": "ubuntu1804", "os_alt": "bionic"}, | ||
{"r": "3.4.4", "py": "3.6.13", "drivers": "2023.12.1", "os": "ubuntu1804", "os_alt": "bionic"}, | ||
{"r": "3.4.4", "py": "3.7.10", "drivers": "2023.12.1", "os": "ubuntu1804", "os_alt": "bionic"}, | ||
{"r": "3.5.3", "py": "2.7.18", "drivers": "2023.12.1", "os": "ubuntu1804", "os_alt": "bionic"}, | ||
{"r": "3.5.3", "py": "3.7.10", "drivers": "2023.12.1", "os": "ubuntu1804", "os_alt": "bionic"}, | ||
{"r": "3.6.3", "py": "2.7.18", "drivers": "2023.12.1", "os": "ubuntu1804", "os_alt": "bionic"}, | ||
{"r": "3.6.3", "py": "3.6.13", "drivers": "2023.12.1", "os": "ubuntu1804", "os_alt": "bionic"}, | ||
{"r": "3.6.3", "py": "3.8.8", "drivers": "2023.12.1", "os": "ubuntu1804", "os_alt": "bionic"}, | ||
{"r": "4.0.5", "py": "3.6.13", "drivers": "2023.12.1", "os": "ubuntu1804", "os_alt": "bionic"}, | ||
{"r": "4.0.5", "py": "3.7.10", "drivers": "2023.12.1", "os": "ubuntu1804", "os_alt": "bionic"}, | ||
{"r": "4.0.5", "py": "3.8.8", "drivers": "2023.12.1", "os": "ubuntu1804", "os_alt": "bionic"}, | ||
{"r": "4.0.5", "py": "3.9.2", "drivers": "2023.12.1", "os": "ubuntu1804", "os_alt": "bionic"}, | ||
{"r": "4.1.0", "py": "3.8.8", "drivers": "2023.12.1", "os": "ubuntu1804", "os_alt": "bionic"}, | ||
{"r": "4.1.0", "py": "3.9.2", "drivers": "2023.12.1", "os": "ubuntu1804", "os_alt": "bionic"}, | ||
{"r": "4.1.3", "py": "3.10.4", "drivers": "2023.12.1", "os": "ubuntu1804", "os_alt": "bionic"}, | ||
{"r": "3.6.3", "py": "3.8.16", "drivers": "2023.12.1", "os": "ubuntu2204", "os_alt": "jammy"}, | ||
{"r": "4.0.5", "py": "3.9.16", "drivers": "2023.12.1", "os": "ubuntu2204", "os_alt": "jammy"}, | ||
{"r": "4.1.3", "py": "3.10.11", "drivers": "2023.12.1", "os": "ubuntu2204", "os_alt": "jammy"}, | ||
{"r": "4.2.2", "py": "3.11.3", "drivers": "2023.12.1", "os": "ubuntu2204", "os_alt": "jammy"} | ||
{"r": "3.1.3", "py": "2.7.18", "drivers": "2024.03.0", "os": "ubuntu1804", "os_alt": "bionic"}, | ||
{"r": "3.2.5", "py": "2.7.18", "drivers": "2024.03.0", "os": "ubuntu1804", "os_alt": "bionic"}, | ||
{"r": "3.3.3", "py": "3.6.13", "drivers": "2024.03.0", "os": "ubuntu1804", "os_alt": "bionic"}, | ||
{"r": "3.4.4", "py": "3.6.13", "drivers": "2024.03.0", "os": "ubuntu1804", "os_alt": "bionic"}, | ||
{"r": "3.4.4", "py": "3.7.10", "drivers": "2024.03.0", "os": "ubuntu1804", "os_alt": "bionic"}, | ||
{"r": "3.5.3", "py": "2.7.18", "drivers": "2024.03.0", "os": "ubuntu1804", "os_alt": "bionic"}, | ||
{"r": "3.5.3", "py": "3.7.10", "drivers": "2024.03.0", "os": "ubuntu1804", "os_alt": "bionic"}, | ||
{"r": "3.6.3", "py": "2.7.18", "drivers": "2024.03.0", "os": "ubuntu1804", "os_alt": "bionic"}, | ||
{"r": "3.6.3", "py": "3.6.13", "drivers": "2024.03.0", "os": "ubuntu1804", "os_alt": "bionic"}, | ||
{"r": "3.6.3", "py": "3.8.8", "drivers": "2024.03.0", "os": "ubuntu1804", "os_alt": "bionic"}, | ||
{"r": "4.0.5", "py": "3.6.13", "drivers": "2024.03.0", "os": "ubuntu1804", "os_alt": "bionic"}, | ||
{"r": "4.0.5", "py": "3.7.10", "drivers": "2024.03.0", "os": "ubuntu1804", "os_alt": "bionic"}, | ||
{"r": "4.0.5", "py": "3.8.8", "drivers": "2024.03.0", "os": "ubuntu1804", "os_alt": "bionic"}, | ||
{"r": "4.0.5", "py": "3.9.2", "drivers": "2024.03.0", "os": "ubuntu1804", "os_alt": "bionic"}, | ||
{"r": "4.1.0", "py": "3.8.8", "drivers": "2024.03.0", "os": "ubuntu1804", "os_alt": "bionic"}, | ||
{"r": "4.1.0", "py": "3.9.2", "drivers": "2024.03.0", "os": "ubuntu1804", "os_alt": "bionic"}, | ||
{"r": "4.1.3", "py": "3.10.4", "drivers": "2024.03.0", "os": "ubuntu1804", "os_alt": "bionic"}, | ||
{"r": "3.6.3", "py": "3.8.16", "drivers": "2024.03.0", "os": "ubuntu2204", "os_alt": "jammy"}, | ||
{"r": "4.0.5", "py": "3.9.16", "drivers": "2024.03.0", "os": "ubuntu2204", "os_alt": "jammy"}, | ||
{"r": "4.1.3", "py": "3.10.11", "drivers": "2024.03.0", "os": "ubuntu2204", "os_alt": "jammy"}, | ||
{"r": "4.2.2", "py": "3.11.3", "drivers": "2024.03.0", "os": "ubuntu2204", "os_alt": "jammy"} | ||
] |
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 |
---|---|---|
|
@@ -6,7 +6,7 @@ FROM ${REGISTRY}/rstudio/content-base:r${R_VERSION}-py${PYTHON_VERSION}-ubuntu18 | |
LABEL maintainer="RStudio Docker <[email protected]>" | ||
|
||
# Install RStudio Professional Drivers ----------------------------------------# | ||
ARG DRIVERS_VERSION=2023.12.1 | ||
ARG DRIVERS_VERSION=2024.03.0 | ||
ARG R_VERSION | ||
ARG DEBIAN_FRONTEND=noninteractive | ||
|
||
|
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 |
---|---|---|
|
@@ -6,7 +6,7 @@ FROM ${REGISTRY}/rstudio/content-base:r${R_VERSION}-py${PYTHON_VERSION}-ubuntu22 | |
LABEL maintainer="RStudio Docker <[email protected]>" | ||
|
||
# Install RStudio Professional Drivers ----------------------------------------# | ||
ARG DRIVERS_VERSION=2023.12.1 | ||
ARG DRIVERS_VERSION=2024.03.0 | ||
ARG R_VERSION | ||
ARG DEBIAN_FRONTEND=noninteractive | ||
|
||
|
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
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
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,4 +1,4 @@ | ||
R_VERSION=4.1.0 | ||
PYTHON_VERSION=3.9.5 | ||
RSW_VERSION=2023.12.1+402.pro1 | ||
DRIVERS_VERSION=2023.12.1-1 | ||
DRIVERS_VERSION=2024.03.0-1 |
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
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
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,4 @@ | ||
packages: | ||
- rgdal | ||
- ggplot2 | ||
- mlflow | ||
- odbc | ||
|