-
Notifications
You must be signed in to change notification settings - Fork 372
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #372 from covexo/issue-370
Implementation of #370 & docs & examples
- Loading branch information
Showing
10 changed files
with
73 additions
and
130 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,60 +11,46 @@ In order to use this example, make sure you have a working minikube setup (you d | |
To deploy the application to minikube simply run `devspace up`. The output of the command should look similar to this: | ||
|
||
``` | ||
[DONE] √ Tiller started | ||
[DONE] √ Internal registry started | ||
[INFO] Create namespace test | ||
[INFO] Building image 'devspace' with engine 'docker' | ||
[DONE] √ Authentication successful (10.102.46.101:5000) | ||
Sending build context to Docker daemon 6.144kB | ||
Step 1/7 : FROM node:8.11.4 | ||
[DONE] √ Authentication successful (hub.docker.com) | ||
Sending build context to Docker daemon 7.077MB | ||
Step 1/8 : FROM node:8.11.4 | ||
---> 8198006b2b57 | ||
Step 2/7 : RUN mkdir /app | ||
Step 2/8 : RUN mkdir /app | ||
---> Using cache | ||
---> 1b6632b2da50 | ||
Step 3/7 : WORKDIR /app | ||
---> be8130ce594c | ||
Step 3/8 : WORKDIR /app | ||
---> Using cache | ||
---> 20b4e5a1df9b | ||
Step 4/7 : COPY package.json . | ||
---> ee7f6e81e51d | ||
Step 5/7 : RUN npm install | ||
---> Running in e6ef4c082b0c | ||
npm notice created a lockfile as package-lock.json. You should commit this file. | ||
npm WARN [email protected] No repository field. | ||
added 48 packages in 1.946s | ||
---> ff5be7678a3d | ||
Step 6/7 : COPY . . | ||
---> b20037e9623f | ||
Step 7/7 : CMD ["npm", "start"] | ||
---> Running in abd0c9294587 | ||
---> f8d49e9378ff | ||
Successfully built f8d49e9378ff | ||
Successfully tagged 10.102.46.101:5000/devspace:oswQSfh | ||
The push refers to repository [10.102.46.101:5000/devspace] | ||
e4f99e03005a: Pushed | ||
c9515cc05f90: Pushed | ||
9ad0fa9ab2ad: Pushed | ||
10959d10898a: Pushed | ||
be0fb77bfb1f: Pushed | ||
63c810287aa2: Pushed | ||
2793dc0607dd: Pushed | ||
74800c25aa8c: Pushed | ||
ba504a540674: Pushed | ||
81101ce649d5: Pushed | ||
daf45b2cad9a: Pushed | ||
8c466bf4ca6f: Pushed | ||
oswQSfh: digest: sha256:af6f6f701136149dc303aad52c124ab8913015e8125ae68994e06325c327cc2e size: 2839 | ||
[INFO] Image pushed to registry (10.102.46.101:5000) | ||
---> a66cd053d094 | ||
Step 4/8 : COPY package.json . | ||
---> Using cache | ||
---> e84f0c80a89d | ||
Step 5/8 : RUN npm install | ||
---> Using cache | ||
---> b972ec2c40f8 | ||
Step 6/8 : COPY . . | ||
---> 867b7c08b0f4 | ||
Step 7/8 : EXPOSE 3000 | ||
---> Running in 50767081a2b8 | ||
---> e43d3516a051 | ||
Step 8/8 : CMD ["npm", "start"] | ||
---> Running in 974c711c9c81 | ||
---> 687b0db6e4d5 | ||
Successfully built 687b0db6e4d5 | ||
Successfully tagged devspace:amodlCX | ||
[INFO] Skip image push for devspace | ||
[DONE] √ Done building and pushing image 'devspace' | ||
[INFO] Deploying devspace-default with helm | ||
[DONE] √ Tiller started | ||
[DONE] √ Deployed helm chart (Release revision: 1) | ||
[DONE] √ Successfully deployed devspace-default | ||
[DONE] √ Finished deploying devspace-default | ||
[DONE] √ Port forwarding started on 3000:3000 | ||
[DONE] √ Sync started on /go-workspace/src/github.com/covexo/devspace/examples/minikube <-> /app (Pod: test/devspace-default-6446cb6b8c-c2l2q) | ||
root@devspace-default-6446cb6b8c-c2l2q:/app# | ||
``` | ||
|
||
The command deployed a tiller server and internal registry and used the minikube docker daemon to build the dockerfile. | ||
The command deployed a tiller server and used the minikube docker daemon to build the dockerfile. | ||
|
||
Furthermore a bi-directional sync was started between the local folder `/go-workspace/src/github.com/covexo/devspace/examples/minikube` and `/app` within the docker container. Whenever you change a file in either of those two folders the change will be synchronized. In addition the container port 3000 was forwarded to your local port 3000. | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,60 +11,46 @@ In order to use this example, make sure you have a working minikube setup (you d | |
This step has to be done once while being online. To deploy the application to minikube simply run `devspace up`. The output of the command should look similar to this: | ||
|
||
``` | ||
[DONE] √ Tiller started | ||
[DONE] √ Internal registry started | ||
[INFO] Create namespace test | ||
[INFO] Building image 'devspace' with engine 'docker' | ||
[DONE] √ Authentication successful (10.102.46.101:5000) | ||
Sending build context to Docker daemon 6.144kB | ||
Step 1/7 : FROM node:8.11.4 | ||
[DONE] √ Authentication successful (hub.docker.com) | ||
Sending build context to Docker daemon 7.077MB | ||
Step 1/8 : FROM node:8.11.4 | ||
---> 8198006b2b57 | ||
Step 2/7 : RUN mkdir /app | ||
Step 2/8 : RUN mkdir /app | ||
---> Using cache | ||
---> 1b6632b2da50 | ||
Step 3/7 : WORKDIR /app | ||
---> be8130ce594c | ||
Step 3/8 : WORKDIR /app | ||
---> Using cache | ||
---> 20b4e5a1df9b | ||
Step 4/7 : COPY package.json . | ||
---> ee7f6e81e51d | ||
Step 5/7 : RUN npm install | ||
---> Running in e6ef4c082b0c | ||
npm notice created a lockfile as package-lock.json. You should commit this file. | ||
npm WARN [email protected] No repository field. | ||
added 48 packages in 1.946s | ||
---> ff5be7678a3d | ||
Step 6/7 : COPY . . | ||
---> b20037e9623f | ||
Step 7/7 : CMD ["npm", "start"] | ||
---> Running in abd0c9294587 | ||
---> f8d49e9378ff | ||
Successfully built f8d49e9378ff | ||
Successfully tagged 10.102.46.101:5000/devspace:oswQSfh | ||
The push refers to repository [10.102.46.101:5000/devspace] | ||
e4f99e03005a: Pushed | ||
c9515cc05f90: Pushed | ||
9ad0fa9ab2ad: Pushed | ||
10959d10898a: Pushed | ||
be0fb77bfb1f: Pushed | ||
63c810287aa2: Pushed | ||
2793dc0607dd: Pushed | ||
74800c25aa8c: Pushed | ||
ba504a540674: Pushed | ||
81101ce649d5: Pushed | ||
daf45b2cad9a: Pushed | ||
8c466bf4ca6f: Pushed | ||
oswQSfh: digest: sha256:af6f6f701136149dc303aad52c124ab8913015e8125ae68994e06325c327cc2e size: 2839 | ||
[INFO] Image pushed to registry (10.102.46.101:5000) | ||
---> a66cd053d094 | ||
Step 4/8 : COPY package.json . | ||
---> Using cache | ||
---> e84f0c80a89d | ||
Step 5/8 : RUN npm install | ||
---> Using cache | ||
---> b972ec2c40f8 | ||
Step 6/8 : COPY . . | ||
---> 867b7c08b0f4 | ||
Step 7/8 : EXPOSE 3000 | ||
---> Running in 50767081a2b8 | ||
---> e43d3516a051 | ||
Step 8/8 : CMD ["npm", "start"] | ||
---> Running in 974c711c9c81 | ||
---> 687b0db6e4d5 | ||
Successfully built 687b0db6e4d5 | ||
Successfully tagged devspace:amodlCX | ||
[INFO] Skip image push for devspace | ||
[DONE] √ Done building and pushing image 'devspace' | ||
[INFO] Deploying devspace-default with helm | ||
[DONE] √ Tiller started | ||
[DONE] √ Deployed helm chart (Release revision: 1) | ||
[DONE] √ Successfully deployed devspace-default | ||
[DONE] √ Finished deploying devspace-default | ||
[DONE] √ Port forwarding started on 3000:3000 | ||
[DONE] √ Sync started on /go-workspace/src/github.com/covexo/devspace/examples/offline-development <-> /app (Pod: test/devspace-default-6446cb6b8c-c2l2q) | ||
root@devspace-default-6446cb6b8c-c2l2q:/app# | ||
``` | ||
|
||
The command deployed a tiller server, internal registry and used the minikube docker daemon to build the dockerfile. | ||
The command deployed a tiller server and used the minikube docker daemon to build the dockerfile. | ||
|
||
Furthermore a bi-directional sync was started between the local folder `/go-workspace/src/github.com/covexo/devspace/examples/offline-development` and `/app` within the docker container. Whenever you change a file in either of those two folders the change will be synchronized. In addition the container port 3000 was forwarded to your local port 3000. | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters