Skip to content

Commit 8de6bf3

Browse files
authored
Merge pull request #489 from devspace-cloud/cloud-refactor
Update examples
2 parents ba40419 + d5d6eaa commit 8de6bf3

File tree

15 files changed

+30
-34
lines changed

15 files changed

+30
-34
lines changed

cmd/open.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ func (cmd *OpenCmd) RunOpen(cobraCmd *cobra.Command, args []string) {
104104

105105
// Check if domain there is a domain for the space
106106
if space.Domain == nil {
107-
log.Fatalf("Space %s has no domain. See https://devspace.cloud/docs/domains/connect on how to connect domains", space.Name)
107+
log.Fatalf("Space %s has no domain. See https://devspace.cloud/docs/cloud/domains/connect on how to connect domains", space.Name)
108108
}
109109

110110
now := time.Now()

examples/kaniko/.devspace/config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version: v1alpha2
1+
version: v1alpha3
22
cluster:
33
kubeContext: minikube
44
namespace: devspace

examples/microservices/.devspace/config.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version: v1alpha2
1+
version: v1alpha3
22
cluster:
33
kubeContext: minikube
44
namespace: devspace
@@ -41,13 +41,13 @@ dev:
4141
images:
4242
node:
4343
build:
44-
contextPath: node/
45-
dockerfilePath: node/Dockerfile
44+
context: node/
45+
dockerfile: node/Dockerfile
4646
image: node
4747
skipPush: true
4848
php:
4949
build:
50-
contextPath: php/
51-
dockerfilePath: php/Dockerfile
50+
context: php/
51+
dockerfile: php/Dockerfile
5252
image: php
5353
skipPush: true

examples/minikube/.devspace/config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version: v1alpha2
1+
version: v1alpha3
22
cluster:
33
kubeContext: minikube
44
namespace: devspace

examples/php-mysql-example/.devspace/config.yaml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
version: v1alpha2
2-
cluster:
3-
cloudProvider: devspace-cloud
4-
# kubeContext: minikube
1+
version: v1alpha3
2+
#cluster:
3+
# kubeContext: minikube
54
deployments:
65
- helm:
76
chartPath: ./chart
@@ -28,4 +27,4 @@ dev:
2827
images:
2928
default:
3029
createPullSecret: true
31-
image: dscr.io/fabiankramm/devspace
30+
image: dscr.io/yourusername/devspace

examples/php-mysql-example/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
# Php Mysql example
22

3-
This example shows you how to develop and deploy a small php and mysql application with devspace on devspace.cloud. For a more detailed documentation, take a look at https://devspace.cloud/docs
3+
This example shows you how to develop and deploy a small php and mysql application with devspace. For a more detailed documentation, take a look at https://devspace.cloud/docs
44

55
# Step 0: Prerequisites
66

77
In order to get things ready do the following:
88
1. Install docker
9-
2. Run `devspace login`
9+
2. Run `devspace login` (If you want to use your own cluster just skip this step)
1010
3. Exchange the image `dscr.io/yourusername/devspace` in `.devspace/config` and `chart/values.yaml` with your username (you can also use a different registry, but make sure you are logged in with `docker login`)
11-
4. Run `devspace create space quickstart` to create a new kubernetes namespace in the devspace.cloud (if you want to use your own cluster just erase the cloudProvider in `.devspace/config` and skip this step)
11+
4. Run `devspace create space quickstart` to create a new kubernetes namespace in the devspace.cloud (if you want to use your own cluster just skip this step and devspace will use the current kubectl context)
1212

1313
# Step 1: Develop the application
1414

examples/php-mysql-example/chart/values.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ components:
33
containers:
44
- # Image tag will be automatically updated in runtime
55
# when running devspace deploy or devspace dev
6-
image: dscr.io/fabiankramm/devspace
6+
image: dscr.io/yourusername/devspace
77
service:
88
name: external
99
type: ClusterIP

examples/quickstart-kubectl/.devspace/config.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
version: v1alpha2
2-
cluster:
3-
cloudProvider: devspace-cloud
1+
version: v1alpha3
2+
#cluster:
43
# kubeContext: minikube
54
deployments:
65
- name: devspace-default

examples/quickstart-kubectl/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ This example shows you how to develop and deploy a small node express applicatio
77
In order to get things ready do the following:
88
1. Install docker
99
2. Install kubectl (https://kubernetes.io/docs/tasks/tools/install-kubectl/)
10-
3. Run `devspace login`
10+
3. Run `devspace login` (If you want to use your own cluster just skip this step)
1111
4. Exchange the image `dscr.io/yourusername/devspace` in `.devspace/config` and `kube/deployment.yaml` with your username (you can also use a different registry, but make sure you are logged in with `docker login`)
12-
5. Run `devspace create space quickstart` to create a new kubernetes namespace in the devspace.cloud (if you want to use your own cluster just erase the cloudProvider in `.devspace/config` and skip this step)
12+
5. Run `devspace create space quickstart` to create a new kubernetes namespace in the devspace.cloud (if you want to use your own cluster just skip this step and devspace will use the current kubectl context)
1313

1414
# Step 1: Develop the application
1515

examples/quickstart/.devspace/config.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
version: v1alpha2
2-
cluster:
3-
cloudProvider: devspace-cloud
1+
version: v1alpha3
2+
#cluster:
43
# kubeContext: minikube
54
dev:
65
overrideImages:

0 commit comments

Comments
 (0)