Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: publishing metadata document schema #318

Merged
merged 22 commits into from
Nov 29, 2023
Merged
Show file tree
Hide file tree
Changes from 18 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
67 changes: 67 additions & 0 deletions schema/deploy.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
"$schema" = "./posit-publishing-schema-v3.json"
type = "quarto"
entrypoint = "report.qmd"
title = "Regional Quarterly Sales Report"
description = "This is the quarterly sales report, broken down by region."
thumbnail = "images/thumbnail.jpg"
tags = [ "sales", "quarterly", "regional" ]

secrets = ["API_KEY"]

[python]
version = "3.11.3"
package-file = "requirements.txt"
package-manager = "pip"

[r]
version = "4.3.1"
package-file = "renv.lock"
package-manager = "renv"

[quarto]
version = "1.4"

[environment]
API_URL = "https://example.com/api"

[[schedules]]
start = "2023-10-25T08:00:00Z"
recurrence = "FREQ=MONTHLY;INTERVAL=3"

[[access.users]]
id = "jqpublic"
guid = "536b456e-0311-4f92-ba10-dbf1db8a468e"
name = "John Q. Public"
permissions = "editor"

[[access.groups]]
id = "Data Science Team"
guid = "8b4fde3e-f995-4894-bc02-ae47538262ff"
name = "Data Science Team"
permissions = "editor"

[connect.access]
run-as = "rstudio-connect"
run-as-current-user = false

[connect.runtime]
connection-timeout = 5
read-timeout = 30
init-timeout = 60
idle-timeout = 120
max-processes = 5
min-processes = 1
max-connections = 50
load-factor = 0.5

[connect.kubernetes]
amd-gpu-limit = 0
cpu-limit = 1
cpu-request = 0.5
image-name = "posit/connect-runtime-python3.11-r4.3"
memory-limit = "100000000"
memory-request = "20000000"
nvidia-gpu-limit = 0
service-account-name = "posit-connect-content"
r-environment-management = true
py-environment-management = true
65 changes: 65 additions & 0 deletions schema/posit-publishing-record-schema-v3.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://github.com/rstudio/publishing-client/posit-publishing-record-schema-v3.json",
"type": "object",
"additionalProperties": false,
"description": "Posit Publishing Record",
"required": [
"$schema",
"server-url",
"id",
"configuration"
],
"properties": {
"$schema": {
"type": "string",
"format": "url",
"description": "URL of the json-schema definition for this file. Must be 'https://cdn.posit.co/connect/posit-publishing-record-schema-v3.json'.",
"enum": [
"./posit-publishing-record-schema-v3.json"
],
"examples": [
"https://cdn.posit.co/connect/posit-publishing-record-schema-v3.json"
]
},
"server-url": {
"type": "string",
"format": "uri",
"description": "URL of the server where this content was deployed.",
"examples": [
"https://connect.example.com"
]
},
"id": {
"type": "string",
"description": "Unique ID of this deployment.",
"examples": [
"de2e7bdb-b085-401e-a65c-443e40009749"
]
},
"configuration-file": {
"type": "string",
"description": "Name of the configuration file that was used during deployment.",
"examples": [
"production.toml"
]
},
"configuration": {
"$ref": "./posit-publishing-schema-v3.json"
},
"files": {
"type": "array",
"items": {
"type": [
"string"
]
},
"description": "Project-relative paths of the files that were included in the deployment.",
"examples": [
"app.py",
"model/weights.csv"
]

}
}
}
Loading