Skip to content

Commit 210af9b

Browse files
committed
feat: add dev.sync.onUpload.exec.once
1 parent 278a3a2 commit 210af9b

61 files changed

Lines changed: 228 additions & 89 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

devspace-schema.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1732,6 +1732,10 @@
17321732
"type": "boolean",
17331733
"description": "Local specifies if the command should be executed locally instead of within the\ncontainer"
17341734
},
1735+
"once": {
1736+
"type": "boolean",
1737+
"description": "Once executes this command only once in the container's life. Can be used to initialize\na container before starting it, but after everything was synced."
1738+
},
17351739
"onChange": {
17361740
"items": {
17371741
"type": "string"

docs/pages/cli.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ Welcome to the DevSpace!
1212
DevSpace accelerates developing, deploying and debugging applications with Docker and Kubernetes. Get started by running the init command in one of your projects:
1313

1414
devspace init
15+
# Develop an existing application
16+
devspace dev
17+
DEVSPACE_CONFIG=other-config.yaml devspace dev
1518

1619
### Options
1720

@@ -21,6 +24,7 @@ DevSpace accelerates developing, deploying and debugging applications with Docke
2124
-h, --help help for devspace
2225
--inactivity-timeout int Minutes the current user is inactive (no mouse or keyboard interaction) until DevSpace will exit automatically. 0 to disable. Only supported on windows and mac operating systems
2326
--kube-context string The kubernetes context to use
27+
--kubeconfig string The kubeconfig path to use
2428
-n, --namespace string The kubernetes namespace to use
2529
--no-warn If true does not show any warning when deploying into a different namespace or kube-context than before
2630
--override-name string If specified will override the devspace.yaml name

docs/pages/cli/devspace_add.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ Adds config sections to devspace.yaml
3131
--disable-profile-activation If true will ignore all profile activations
3232
--inactivity-timeout int Minutes the current user is inactive (no mouse or keyboard interaction) until DevSpace will exit automatically. 0 to disable. Only supported on windows and mac operating systems
3333
--kube-context string The kubernetes context to use
34+
--kubeconfig string The kubeconfig path to use
3435
-n, --namespace string The kubernetes namespace to use
3536
--no-warn If true does not show any warning when deploying into a different namespace or kube-context than before
3637
--override-name string If specified will override the devspace.yaml name

docs/pages/cli/devspace_add_plugin.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ devspace add plugin https://github.com/my-plugin/plugin
3939
--disable-profile-activation If true will ignore all profile activations
4040
--inactivity-timeout int Minutes the current user is inactive (no mouse or keyboard interaction) until DevSpace will exit automatically. 0 to disable. Only supported on windows and mac operating systems
4141
--kube-context string The kubernetes context to use
42+
--kubeconfig string The kubeconfig path to use
4243
-n, --namespace string The kubernetes namespace to use
4344
--no-warn If true does not show any warning when deploying into a different namespace or kube-context than before
4445
--override-name string If specified will override the devspace.yaml name

docs/pages/cli/devspace_analyze.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ devspace analyze --namespace=mynamespace
4545
--disable-profile-activation If true will ignore all profile activations
4646
--inactivity-timeout int Minutes the current user is inactive (no mouse or keyboard interaction) until DevSpace will exit automatically. 0 to disable. Only supported on windows and mac operating systems
4747
--kube-context string The kubernetes context to use
48+
--kubeconfig string The kubeconfig path to use
4849
-n, --namespace string The kubernetes namespace to use
4950
--no-warn If true does not show any warning when deploying into a different namespace or kube-context than before
5051
--override-name string If specified will override the devspace.yaml name

docs/pages/cli/devspace_attach.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ devspace attach -n my-namespace
4646
--disable-profile-activation If true will ignore all profile activations
4747
--inactivity-timeout int Minutes the current user is inactive (no mouse or keyboard interaction) until DevSpace will exit automatically. 0 to disable. Only supported on windows and mac operating systems
4848
--kube-context string The kubernetes context to use
49+
--kubeconfig string The kubeconfig path to use
4950
-n, --namespace string The kubernetes namespace to use
5051
--no-warn If true does not show any warning when deploying into a different namespace or kube-context than before
5152
--override-name string If specified will override the devspace.yaml name

docs/pages/cli/devspace_build.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ Builds all defined images and pushes them
5151
--disable-profile-activation If true will ignore all profile activations
5252
--inactivity-timeout int Minutes the current user is inactive (no mouse or keyboard interaction) until DevSpace will exit automatically. 0 to disable. Only supported on windows and mac operating systems
5353
--kube-context string The kubernetes context to use
54+
--kubeconfig string The kubeconfig path to use
5455
-n, --namespace string The kubernetes namespace to use
5556
--no-warn If true does not show any warning when deploying into a different namespace or kube-context than before
5657
--override-name string If specified will override the devspace.yaml name

docs/pages/cli/devspace_cleanup.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ Cleans up resources
3030
--disable-profile-activation If true will ignore all profile activations
3131
--inactivity-timeout int Minutes the current user is inactive (no mouse or keyboard interaction) until DevSpace will exit automatically. 0 to disable. Only supported on windows and mac operating systems
3232
--kube-context string The kubernetes context to use
33+
--kubeconfig string The kubeconfig path to use
3334
-n, --namespace string The kubernetes namespace to use
3435
--no-warn If true does not show any warning when deploying into a different namespace or kube-context than before
3536
--override-name string If specified will override the devspace.yaml name

docs/pages/cli/devspace_cleanup_images.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ Deletes all locally created docker images from docker
3636
--disable-profile-activation If true will ignore all profile activations
3737
--inactivity-timeout int Minutes the current user is inactive (no mouse or keyboard interaction) until DevSpace will exit automatically. 0 to disable. Only supported on windows and mac operating systems
3838
--kube-context string The kubernetes context to use
39+
--kubeconfig string The kubeconfig path to use
3940
-n, --namespace string The kubernetes namespace to use
4041
--no-warn If true does not show any warning when deploying into a different namespace or kube-context than before
4142
--override-name string If specified will override the devspace.yaml name

docs/pages/cli/devspace_completion.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ Outputs shell completion for the given shell (bash or zsh)
4949
--disable-profile-activation If true will ignore all profile activations
5050
--inactivity-timeout int Minutes the current user is inactive (no mouse or keyboard interaction) until DevSpace will exit automatically. 0 to disable. Only supported on windows and mac operating systems
5151
--kube-context string The kubernetes context to use
52+
--kubeconfig string The kubeconfig path to use
5253
-n, --namespace string The kubernetes namespace to use
5354
--no-warn If true does not show any warning when deploying into a different namespace or kube-context than before
5455
--override-name string If specified will override the devspace.yaml name

0 commit comments

Comments
 (0)