|
| 1 | +--- |
| 2 | +layout: post |
| 3 | +title: "v0.1.17 Dispatch Release" |
| 4 | +year: 2018 |
| 5 | +--- |
| 6 | + |
| 7 | +# v0.1.17 Dispatch Release |
| 8 | + |
| 9 | +[Download v0.1.17](https://github.com/vmware/dispatch/releases/tag/v0.1.17) |
| 10 | + |
| 11 | + |
| 12 | +## Support for seeding Dispatch with images |
| 13 | +It has never been easier to run your first function on Dispatch! We have added a new CLI command to seed your Dispatch setup with the |
| 14 | +base-images and images of commonly used languages in the Dispatch community. Simply run the following command against your Dispatch installation: |
| 15 | +```shell |
| 16 | +$ dispatch create seed-images |
| 17 | +Created BaseImage: nodejs-base |
| 18 | +Created BaseImage: python3-base |
| 19 | +Created BaseImage: powershell-base |
| 20 | +Created BaseImage: java-base |
| 21 | +Created Image: nodejs |
| 22 | +Created Image: python3 |
| 23 | +Created Image: powershell |
| 24 | +Created Image: java |
| 25 | +``` |
| 26 | + |
| 27 | +You should then be able to view a list of base-images and images that were added to your setup wit the following commands: |
| 28 | +```shell |
| 29 | +$ dispatch get base-images |
| 30 | + NAME | URL | STATUS | CREATED DATE |
| 31 | +--------------------------------------------------------------------------------------------------- |
| 32 | + nodejs-base | dispatchframework/nodejs-base:0.0.8 | READY | Tue Jun 12 18:39:04 PDT 2018 |
| 33 | + powershell-base | dispatchframework/powershell-base:0.0.9 | READY | Tue Jun 12 18:39:05 PDT 2018 |
| 34 | + java-base | dispatchframework/java-base:0.0.9 | READY | Tue Jun 12 18:39:05 PDT 2018 |
| 35 | + python3-base | dispatchframework/python3-base:0.0.8 | READY | Tue Jun 12 18:39:05 PDT 2018 |
| 36 | + |
| 37 | + |
| 38 | +$ dispatch get images |
| 39 | + NAME | URL | BASEIMAGE | STATUS | CREATED DATE |
| 40 | +---------------------------------------------------------------------------- |
| 41 | + nodejs | | nodejs-base | READY | Tue Jun 12 18:39:05 PDT 2018 |
| 42 | + python3 | | python3-base | READY | Tue Jun 12 18:39:05 PDT 2018 |
| 43 | + powershell | | powershell-base | READY | Tue Jun 12 18:39:05 PDT 2018 |
| 44 | + java | | java-base | READY | Tue Jun 12 18:39:05 PDT 2018 |
| 45 | + |
| 46 | +``` |
| 47 | + |
| 48 | +You are now all set to write your function in one of these languages. For more detailed steps please follow the instructions in the [examples](https://vmware.github.io/dispatch/documentation/guides/quickstart#get-the-examples) section of our QuickStart guide. |
| 49 | + |
| 50 | +## Improved IAM bootstrap workflow |
| 51 | +When you install Dispatch with [authentication](https://vmware.github.io/dispatch/documentation/guides/setup-authentication), you need to add the initial |
| 52 | +authorization policies before you can use the setup. This is akin to setting up an administrative account in your new laptop. Previously, the workflow to |
| 53 | +bootstrap Dispatch with the policies included several commands that has now been consolidated into a single `dispatch manage bootstrap` command. |
| 54 | + |
| 55 | +This is a privileged command (similar to `dispatch install`) and thus requires access to the underlying Kubernetes cluster on which Dispatch is installed. Ensure this by pointing your `kubectl` config file to the |
| 56 | +right cluster. |
| 57 | + |
| 58 | +Run the command by specifying the email address of a valid user from your Identity Provider (e.g github) to the `dispatch manage bootstrap` command. e.g |
| 59 | + |
| 60 | +```shell |
| 61 | +$ dispatch manage bootstrap --bootstrap-user xyz@example.com |
| 62 | +Enabling bootstrap mode |
| 63 | +waiting for bootstrap status....success |
| 64 | +Creating Organization: default |
| 65 | +Creating Policy: default-policy |
| 66 | +Disabling bootstrap mode (takes up to 30s to take effect) |
| 67 | +waiting for bootstrap status....success |
| 68 | +``` |
| 69 | + |
| 70 | +This single command will force Dispatch to enter a special bootstrap mode, add the initial policies and then disable the bootstrap mode. The specified user is configured with an |
| 71 | +authorization policy that allows full administrative access of Dispatch. You can now run other dispatch commands or add [additional policies](https://vmware.github.io/dispatch/documentation/guides/setup-authentication#7-configuring-additional-policies) |
| 72 | +to onboard more users. |
| 73 | + |
| 74 | +## CLI command to print version information |
| 75 | + |
| 76 | +A new CLI Command `dispatch version` has been added to print the client and server versions. The server version corresponds to the dispatch deployment that is configured |
| 77 | +in the current context of the dispatch config file `HOME/.dispatch/config.json`. The support for CLI contexts was added in the previous [release](https://vmware.github.io/dispatch/2018/06/06/v0-1-16-release.html). |
| 78 | + |
| 79 | +```shell |
| 80 | +$ dispatch version --json |
| 81 | +{ |
| 82 | + "client": { |
| 83 | + "version": "v0.1.16-5-gf535bc07", |
| 84 | + "commit": "f535bc07c3f84ce2ad9f296c1eaca9aab45aa853", |
| 85 | + "buildDate": "2018-06-06T17:23:30Z", |
| 86 | + "goVersion": "go1.10.2", |
| 87 | + "compiler": "gc", |
| 88 | + "platform": "darwin/amd64" |
| 89 | + }, |
| 90 | + "server": { |
| 91 | + "version": "v0.1.16-5-gf535bc07", |
| 92 | + "commit": "f535bc07c3f84ce2ad9f296c1eaca9aab45aa853", |
| 93 | + "buildDate": "2018-06-06T17:23:30Z", |
| 94 | + "goVersion": "go1.10.2", |
| 95 | + "compiler": "gc", |
| 96 | + "platform": "linux/amd64" |
| 97 | + } |
| 98 | +} |
| 99 | +``` |
| 100 | + |
| 101 | + |
0 commit comments