A tool for developers to create cloud-native applications on Kubernetes.
Перейти к файлу
Vishal d82ec4edde Build error and runtime errors with Java pack fixed
1)
The artifact name built was helloworld.jar but the copy command was referring to different name hence build is failing:
```
Step 6/8 : COPY --from=BUILD /usr/src/app/target/app.jar /opt/app.jar
lstat usr/src/app/target/app.jar: no such file or directory
```
Fixed by copying helloworld.jar instead of app.jar

2) Since the jar being deployed was a thin jar without dependencies, it was not able to find Spark classes and thus failing:

```
2017-07-03T10:23:49.370518638Z Exception in thread "main" java.lang.BootstrapMethodError: java.lang.NoClassDefFoundError: spark/Request
2017-07-03T10:23:49.373134679Z 	at helloworld.Hello.main(Hello.java:7)
2017-07-03T10:23:49.373163432Z Caused by: java.lang.NoClassDefFoundError: spark/Request
2017-07-03T10:23:49.373167578Z 	... 1 more
2017-07-03T10:23:49.373170484Z Caused by: java.lang.ClassNotFoundException: spark.Request
2017-07-03T10:23:49.373173097Z 	at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
2017-07-03T10:23:49.373175661Z 	at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
2017-07-03T10:23:49.373178321Z 	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:335)
2017-07-03T10:23:49.373180932Z 	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
2017-07-03T10:23:49.373183512Z 	... 1 more
```
Fixed by using the "-with-dependency" jar
2017-07-03 16:11:19 +05:30
api rewrite `draft init` 2017-06-21 13:36:52 -07:00
chart select storage driver as overlay 2017-06-26 09:00:47 -07:00
cmd Merge pull request #187 from bacongobbler/overlayfs 2017-06-26 12:52:39 -07:00
docs add architecture description 2017-06-21 15:47:55 -07:00
examples Added composer.json file to PHP example 2017-06-22 08:52:16 +02:00
packs Build error and runtime errors with Java pack fixed 2017-07-03 16:11:19 +05:30
pkg cast syscall.Stdin to an int 2017-06-22 10:04:07 -07:00
scripts move hack/ scripts to scripts/ 2017-06-23 14:21:21 -07:00
tests Add \n to the scaffold draftignore example. 2017-06-14 08:56:42 +02:00
.dockerignore
.gitignore add .draftignore 2017-06-14 11:15:03 -07:00
CHANGELOG.md add v0.5.0 CHANGELOG 2017-06-23 10:14:55 -07:00
Dockerfile
GOVERNANCE.md
LICENSE docs(LICENSE): update license details 2017-05-08 12:15:43 -06:00
MAINTAINERS.md add Michelle Noorali as an Admiral 2017-06-08 09:03:06 -07:00
Makefile Merge pull request #136 from bacongobbler/release-checklist-updates 2017-06-14 11:17:40 -07:00
NOTICE feat(server): create docker pull secret in application namespace and append imagepullsecret to default service account. 2017-05-11 10:28:25 -06:00
README.md bump to helm v2.5.0 2017-06-21 08:48:59 -07:00
draft.toml convert tabs to spaces in yaml 2017-05-02 08:57:53 -07:00
glide.lock bump to helm v2.5.0 2017-06-21 08:48:59 -07:00
glide.yaml bump to helm v2.5.0 2017-06-21 08:48:59 -07:00
versioning.mk rename to Azure 2017-05-08 10:25:32 -07:00

README.md

Draft Logo

Draft: Streamlined Kubernetes Development

Build Status

NOTE: Draft is experimental and does not have a stable release yet.

Draft makes it easy to build applications that run on Kubernetes. Draft targets the "inner loop" of a developer's workflow: as they hack on code, but before code is committed to version control.

Using Draft is as simple as:

  1. draft create to containerize your application based on Draft packs
  2. draft up to deploy your application to a Kubernetes dev sandbox, accessible via a public URL
  3. Use a local editor to modify the application, with changes deployed to Kubernetes in seconds

Once the developer is happy with changes made via Draft, they commit and push to version control, after which a continuous integration (CI) system takes over. Draft builds upon Kubernetes Helm and the Kubernetes Chart format, making it easy to construct CI pipelines from Draft-enabled applications.

Here is a video demonstrating how to set up Draft on Azure Container Services:

video demonstrating draft on Azure Container Services

Join the conversation in Slack! If you don't already have a Kubernetes slack account, sign up here.

Installation

Review the Installation Guide to configure and install Draft on to your Kubernetes cluster.

Take Draft for a Spin

Climb aboard and explore the Getting Started Guide - you'll soon be sailing!

Contributing

If you're looking to build from source or get started hacking on Draft, please see the hacking guide for more information.

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.

License

This software is covered under the MIT license. You can read the license here.

This software contains code from Heroku Buildpacks, which are also covered by the MIT license.

This software contains code from Helm, which is covered by the Apache v2.0 license.

You can read third-party software licenses here.