(metadataOpen = false)}>
Path
Summary
Language
{#if lockedLanguage}
As a forked script, the language '{script.language}' cannot be modified.
{/if}
{#each langs as [label, lang]}
{@const isPicked = script.language == lang && template == 'script'}
{
template = 'script'
initContent(lang, script.kind, template)
script.language = lang
}}
disabled={lockedLanguage}
>
{label}
{/each}
{
if (isCloudHosted()) {
sendUserToast(
'You cannot use Docker scripts on the multi-tenant platform. Use a dedicated instance or self-host windmill instead.',
true,
[
{
label: 'Learn more',
callback: () => {
window.open('https://www.windmill.dev/docs/advanced/docker', '_blank')
}
}
]
)
return
}
template = 'docker'
initContent(Script.language.BASH, script.kind, template)
script.language = Script.language.BASH
}}
>
Docker
{
initContent(Script.language.BUN, script.kind, template)
script.language = Script.language.BUN
}}
>
Typescript (Bun, experimental)
Description
Worker group tag The script will be executed on a worker configured to accept its worker group tag. For
instance, you could setup an "highmem", or "gpu" worker group.
{#if $workerTags}
{#if $workerTags?.length > 0}
{
if (script.tag == '') {
script.tag = undefined
}
}}
>
{#if script.tag}
reset to default
{:else}
Worker Group
{/if}
{#each $workerTags ?? [] as tag (tag)}
{tag}
{/each}
{:else}
No custom worker group defined on this instance
{/if}
{/if}
{#if !isCloudHosted()}
Custom env variablesAdditional static custom env variables to pass to the script.
Format is: `{'='}`
{#if Array.isArray(script.envs ?? [])}
{#each script.envs ?? [] as v, i}
{
script.envs && script.envs.splice(i, 1)
script.envs = script.envs
}}
>
{/each}
{#if script.envs && script.envs.length > 0}
Static envs variables are not passed in preview but solely on deployed scripts.
{/if}
{/if}
{
if (script.envs == undefined || !Array.isArray(script.envs)) {
script.envs = []
}
script.envs = script.envs.concat('')
}}
>
Add item
{/if}