Skip to content

Commit

Permalink
Merge pull request #2293 from FabianKramm/main
Browse files Browse the repository at this point in the history
feat: add dev.sync.onUpload.exec.once
  • Loading branch information
FabianKramm authored Sep 9, 2022
2 parents 62ea3d5 + 210af9b commit 6636c72
Show file tree
Hide file tree
Showing 61 changed files with 228 additions and 89 deletions.
4 changes: 4 additions & 0 deletions devspace-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -1732,6 +1732,10 @@
"type": "boolean",
"description": "Local specifies if the command should be executed locally instead of within the\ncontainer"
},
"once": {
"type": "boolean",
"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."
},
"onChange": {
"items": {
"type": "string"
Expand Down
4 changes: 4 additions & 0 deletions docs/pages/cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ Welcome to the DevSpace!
DevSpace accelerates developing, deploying and debugging applications with Docker and Kubernetes. Get started by running the init command in one of your projects:

devspace init
# Develop an existing application
devspace dev
DEVSPACE_CONFIG=other-config.yaml devspace dev

### Options

Expand All @@ -21,6 +24,7 @@ DevSpace accelerates developing, deploying and debugging applications with Docke
-h, --help help for devspace
--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
--kube-context string The kubernetes context to use
--kubeconfig string The kubeconfig path to use
-n, --namespace string The kubernetes namespace to use
--no-warn If true does not show any warning when deploying into a different namespace or kube-context than before
--override-name string If specified will override the devspace.yaml name
Expand Down
1 change: 1 addition & 0 deletions docs/pages/cli/devspace_add.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ Adds config sections to devspace.yaml
--disable-profile-activation If true will ignore all profile activations
--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
--kube-context string The kubernetes context to use
--kubeconfig string The kubeconfig path to use
-n, --namespace string The kubernetes namespace to use
--no-warn If true does not show any warning when deploying into a different namespace or kube-context than before
--override-name string If specified will override the devspace.yaml name
Expand Down
1 change: 1 addition & 0 deletions docs/pages/cli/devspace_add_plugin.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ devspace add plugin https://github.com/my-plugin/plugin
--disable-profile-activation If true will ignore all profile activations
--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
--kube-context string The kubernetes context to use
--kubeconfig string The kubeconfig path to use
-n, --namespace string The kubernetes namespace to use
--no-warn If true does not show any warning when deploying into a different namespace or kube-context than before
--override-name string If specified will override the devspace.yaml name
Expand Down
1 change: 1 addition & 0 deletions docs/pages/cli/devspace_analyze.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ devspace analyze --namespace=mynamespace
--disable-profile-activation If true will ignore all profile activations
--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
--kube-context string The kubernetes context to use
--kubeconfig string The kubeconfig path to use
-n, --namespace string The kubernetes namespace to use
--no-warn If true does not show any warning when deploying into a different namespace or kube-context than before
--override-name string If specified will override the devspace.yaml name
Expand Down
1 change: 1 addition & 0 deletions docs/pages/cli/devspace_attach.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ devspace attach -n my-namespace
--disable-profile-activation If true will ignore all profile activations
--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
--kube-context string The kubernetes context to use
--kubeconfig string The kubeconfig path to use
-n, --namespace string The kubernetes namespace to use
--no-warn If true does not show any warning when deploying into a different namespace or kube-context than before
--override-name string If specified will override the devspace.yaml name
Expand Down
1 change: 1 addition & 0 deletions docs/pages/cli/devspace_build.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ Builds all defined images and pushes them
--disable-profile-activation If true will ignore all profile activations
--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
--kube-context string The kubernetes context to use
--kubeconfig string The kubeconfig path to use
-n, --namespace string The kubernetes namespace to use
--no-warn If true does not show any warning when deploying into a different namespace or kube-context than before
--override-name string If specified will override the devspace.yaml name
Expand Down
1 change: 1 addition & 0 deletions docs/pages/cli/devspace_cleanup.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ Cleans up resources
--disable-profile-activation If true will ignore all profile activations
--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
--kube-context string The kubernetes context to use
--kubeconfig string The kubeconfig path to use
-n, --namespace string The kubernetes namespace to use
--no-warn If true does not show any warning when deploying into a different namespace or kube-context than before
--override-name string If specified will override the devspace.yaml name
Expand Down
1 change: 1 addition & 0 deletions docs/pages/cli/devspace_cleanup_images.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ Deletes all locally created docker images from docker
--disable-profile-activation If true will ignore all profile activations
--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
--kube-context string The kubernetes context to use
--kubeconfig string The kubeconfig path to use
-n, --namespace string The kubernetes namespace to use
--no-warn If true does not show any warning when deploying into a different namespace or kube-context than before
--override-name string If specified will override the devspace.yaml name
Expand Down
1 change: 1 addition & 0 deletions docs/pages/cli/devspace_completion.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ Outputs shell completion for the given shell (bash or zsh)
--disable-profile-activation If true will ignore all profile activations
--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
--kube-context string The kubernetes context to use
--kubeconfig string The kubeconfig path to use
-n, --namespace string The kubernetes namespace to use
--no-warn If true does not show any warning when deploying into a different namespace or kube-context than before
--override-name string If specified will override the devspace.yaml name
Expand Down
1 change: 1 addition & 0 deletions docs/pages/cli/devspace_deploy.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ devspace deploy --kube-context=deploy-context
--disable-profile-activation If true will ignore all profile activations
--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
--kube-context string The kubernetes context to use
--kubeconfig string The kubeconfig path to use
-n, --namespace string The kubernetes namespace to use
--no-warn If true does not show any warning when deploying into a different namespace or kube-context than before
--override-name string If specified will override the devspace.yaml name
Expand Down
1 change: 1 addition & 0 deletions docs/pages/cli/devspace_dev.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ Starts your project in development mode
--disable-profile-activation If true will ignore all profile activations
--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
--kube-context string The kubernetes context to use
--kubeconfig string The kubeconfig path to use
-n, --namespace string The kubernetes namespace to use
--no-warn If true does not show any warning when deploying into a different namespace or kube-context than before
--override-name string If specified will override the devspace.yaml name
Expand Down
2 changes: 2 additions & 0 deletions docs/pages/cli/devspace_enter.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ devspace enter bash --image-selector "${runtime.images.app.image}:${runtime.imag
--reconnect Will reconnect the terminal if an unexpected return code is encountered
--screen Use a screen session to connect
--screen-session string The screen session to create or connect to (default "enter")
--tty If to use a tty to start the command (default true)
--wait Wait for the pod(s) to start if they are not running
--workdir string The working directory where to open the terminal or execute the command
```
Expand All @@ -56,6 +57,7 @@ devspace enter bash --image-selector "${runtime.images.app.image}:${runtime.imag
--disable-profile-activation If true will ignore all profile activations
--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
--kube-context string The kubernetes context to use
--kubeconfig string The kubeconfig path to use
-n, --namespace string The kubernetes namespace to use
--no-warn If true does not show any warning when deploying into a different namespace or kube-context than before
--override-name string If specified will override the devspace.yaml name
Expand Down
1 change: 1 addition & 0 deletions docs/pages/cli/devspace_init.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ folder. Creates a devspace.yaml as a starting point.
--disable-profile-activation If true will ignore all profile activations
--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
--kube-context string The kubernetes context to use
--kubeconfig string The kubeconfig path to use
-n, --namespace string The kubernetes namespace to use
--no-warn If true does not show any warning when deploying into a different namespace or kube-context than before
--override-name string If specified will override the devspace.yaml name
Expand Down
1 change: 1 addition & 0 deletions docs/pages/cli/devspace_list.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ Lists configuration
--disable-profile-activation If true will ignore all profile activations
--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
--kube-context string The kubernetes context to use
--kubeconfig string The kubeconfig path to use
-n, --namespace string The kubernetes namespace to use
--no-warn If true does not show any warning when deploying into a different namespace or kube-context than before
--override-name string If specified will override the devspace.yaml name
Expand Down
1 change: 1 addition & 0 deletions docs/pages/cli/devspace_list_commands.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ devspace.yaml
--disable-profile-activation If true will ignore all profile activations
--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
--kube-context string The kubernetes context to use
--kubeconfig string The kubeconfig path to use
-n, --namespace string The kubernetes namespace to use
--no-warn If true does not show any warning when deploying into a different namespace or kube-context than before
--override-name string If specified will override the devspace.yaml name
Expand Down
1 change: 1 addition & 0 deletions docs/pages/cli/devspace_list_contexts.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ devspace list contexts
--disable-profile-activation If true will ignore all profile activations
--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
--kube-context string The kubernetes context to use
--kubeconfig string The kubeconfig path to use
-n, --namespace string The kubernetes namespace to use
--no-warn If true does not show any warning when deploying into a different namespace or kube-context than before
--override-name string If specified will override the devspace.yaml name
Expand Down
1 change: 1 addition & 0 deletions docs/pages/cli/devspace_list_deployments.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ Lists the status of all deployments
--disable-profile-activation If true will ignore all profile activations
--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
--kube-context string The kubernetes context to use
--kubeconfig string The kubeconfig path to use
-n, --namespace string The kubernetes namespace to use
--no-warn If true does not show any warning when deploying into a different namespace or kube-context than before
--override-name string If specified will override the devspace.yaml name
Expand Down
1 change: 1 addition & 0 deletions docs/pages/cli/devspace_list_namespaces.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ Lists all namespaces in the selected kube context
--disable-profile-activation If true will ignore all profile activations
--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
--kube-context string The kubernetes context to use
--kubeconfig string The kubeconfig path to use
-n, --namespace string The kubernetes namespace to use
--no-warn If true does not show any warning when deploying into a different namespace or kube-context than before
--override-name string If specified will override the devspace.yaml name
Expand Down
1 change: 1 addition & 0 deletions docs/pages/cli/devspace_list_plugins.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ devspace list plugins
--disable-profile-activation If true will ignore all profile activations
--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
--kube-context string The kubernetes context to use
--kubeconfig string The kubeconfig path to use
-n, --namespace string The kubernetes namespace to use
--no-warn If true does not show any warning when deploying into a different namespace or kube-context than before
--override-name string If specified will override the devspace.yaml name
Expand Down
1 change: 1 addition & 0 deletions docs/pages/cli/devspace_list_ports.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ Lists the port forwarding configurations
--disable-profile-activation If true will ignore all profile activations
--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
--kube-context string The kubernetes context to use
--kubeconfig string The kubeconfig path to use
-n, --namespace string The kubernetes namespace to use
--no-warn If true does not show any warning when deploying into a different namespace or kube-context than before
--override-name string If specified will override the devspace.yaml name
Expand Down
1 change: 1 addition & 0 deletions docs/pages/cli/devspace_list_profiles.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ Lists all DevSpace configurations for this project
--disable-profile-activation If true will ignore all profile activations
--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
--kube-context string The kubernetes context to use
--kubeconfig string The kubeconfig path to use
-n, --namespace string The kubernetes namespace to use
--no-warn If true does not show any warning when deploying into a different namespace or kube-context than before
--override-name string If specified will override the devspace.yaml name
Expand Down
1 change: 1 addition & 0 deletions docs/pages/cli/devspace_list_sync.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ Lists the sync configuration
--disable-profile-activation If true will ignore all profile activations
--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
--kube-context string The kubernetes context to use
--kubeconfig string The kubeconfig path to use
-n, --namespace string The kubernetes namespace to use
--no-warn If true does not show any warning when deploying into a different namespace or kube-context than before
--override-name string If specified will override the devspace.yaml name
Expand Down
1 change: 1 addition & 0 deletions docs/pages/cli/devspace_list_vars.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ values
--disable-profile-activation If true will ignore all profile activations
--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
--kube-context string The kubernetes context to use
--kubeconfig string The kubeconfig path to use
-n, --namespace string The kubernetes namespace to use
--no-warn If true does not show any warning when deploying into a different namespace or kube-context than before
--override-name string If specified will override the devspace.yaml name
Expand Down
1 change: 1 addition & 0 deletions docs/pages/cli/devspace_logs.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ devspace logs --namespace=mynamespace
--disable-profile-activation If true will ignore all profile activations
--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
--kube-context string The kubernetes context to use
--kubeconfig string The kubeconfig path to use
-n, --namespace string The kubernetes namespace to use
--no-warn If true does not show any warning when deploying into a different namespace or kube-context than before
--override-name string If specified will override the devspace.yaml name
Expand Down
Loading

0 comments on commit 6636c72

Please sign in to comment.