Skip to content

Commit

Permalink
Renaming + adding first draft of exercise 6
Browse files Browse the repository at this point in the history
Signed-off-by: Silvin Lubecki <[email protected]>
  • Loading branch information
silvin-lubecki committed Dec 2, 2018
1 parent 8ef17a4 commit 46a71a8
Show file tree
Hide file tree
Showing 19 changed files with 69 additions and 5 deletions.
20 changes: 18 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,18 @@
# dap-workshop-dceu18
Docker Application Package Workshop for DockerCon Europe 2018
# Docker Application Package Workshop for DockerCon Europe 2018

Welcome to the Docker Application Package workshop. We prepared for you 6 exercises to discover and master `docker-app` and the Application Package.

* [Exercise 1](exercises/exercise_1/README.md): Set up your environment
* [Exercise 2](exercises/exercise_2/README.md): Write and Deploy a Compose file
* [Exercise 3](exercises/exercise_3/README.md): Discover Docker Application Package
* [Exercise 4](exercises/exercise_4/README.md): Configure your application with parameters
* [Exercise 5](exercises/exercise_5/README.md): Install with docker-app
* [Exercise 6](exercises/exercise_6/README.md): Share your application

**Feel free to ask any question during this workshop.**

Some useful references:
* [Docker Application Package](https://github.com/docker/app) github repository
* [Compose](https://github.com/docker/compose) github repository

PR are welcomed!
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,8 @@ Status: Downloaded newer image for dapworkshop/workshop:latest
Now the workshop can really start!
## How to save your work
**You may want to set a reminder to save your exercises locally before leaving the workshop. We will remind you at the end as well.**.
For those using PWD, you can copy/paste the `SSH` address and use it to `SCP` (Secure File Copy through SSH) all your files:
Expand Down
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
11 changes: 11 additions & 0 deletions exercises/exercise 2/README.md → exercises/exercise_2/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,17 @@ $ touch docker-compose.yml
```
![editor](editor.png)

You should have a file like the following:
```yaml
version: '3.7'
services:
hello:
image: hashicorp/http-echo:latest
command: ["-text", "Hello DockerCon", "-listen",":8080"]
ports:
- 8080:8080
```
## Deploy your Compose file
Now that we have a compose file, we need to deploy it. There are two ways to do this:
Expand Down
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Exercise - Docker Application Package Introduction
# Exercise - Discover Docker Application Package

> **Time**: Approximately 10 minutes
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Exercise - Parameters
# Exercise - Configure your application with parameters

> **Time**: Approximately 15 minutes
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Exercise - Deploy with docker-app
# Exercise - Install with docker-app

With this exerise you will learn how to deploy an application package using `docker-app`.

Expand Down
35 changes: 35 additions & 0 deletions exercises/exercise_6/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# Exercise - Share your application

With this exercise you will learn how to share your application.

Using the commands `push` and `pull`, you can share your bundle on any public or private registry.

`docker-app` will create a manifest and push the `bundle.json` with it. It will also push the invocation image and reference it from the manifest. This is a totally valid way to create an image, compatible with the OCI reference, and then with all the registries (`docker hub`, `docker registry` or the enterprise `docker trust registry`).

## `push` and `pull`

```sh
$ docker-app push --help

Usage: docker-app push [<app-name>] [flags]

Push the application to a registry

Options:
--insecure Use insecure registry, without SSL
--namespace string Namespace to use (default: namespace in metadata)
--repo string Name of the remote repository (default: <app-name>.dockerapp)
-t, --tag string Tag to use (default: version in metadata)
```
**NOTE** about the namespace: it is defined as a registry hostname+ the organisation or the user.
* `--namespace=localhost:5000/myuser` to target a registry run locally
* `--namespace=my.private.registry/myteam` to target a remote registry
* `--namespace=myteam` to target the DockerHub



## inspect

## install

## Summary

0 comments on commit 46a71a8

Please sign in to comment.