Skip to content
This repository has been archived by the owner on Jun 13, 2021. It is now read-only.

Introduce CNAB core commands #443

Merged
merged 14 commits into from
Jan 31, 2019

Commits on Jan 15, 2019

  1. Introduce a new run binary, which is the new docker-app CNAB "backend".

    In future commits, the docker-app binary will be mutated as a frontend, and all the installation logic will be moved to the run binary.
    run comes with the 4 CNAB core commands: install/uninstall/status/upgrade.
    
    Adds github.com/deislabs/duffle as vendoring
    
    Signed-off-by: Silvin Lubecki <silvin.lubecki@docker.com>
    silvin-lubecki committed Jan 15, 2019
    Configuration menu
    Copy the full SHA
    aba83a5 View commit details
    Browse the repository at this point in the history

Commits on Jan 31, 2019

  1. Add the CNAB base invocation-image build target in the Dockerfile.

    * Fix tag generation by truncating the git sha.
    * Fix saving cnab base image to a global tmp directory and put it in a local git ignored directory (_build).
    * Remove the cnab base image from the CI local daemon
    * Load invocation image directly instead of using a make target.
    
    Signed-off-by: Silvin Lubecki <silvin.lubecki@docker.com>
    silvin-lubecki committed Jan 31, 2019
    Configuration menu
    Copy the full SHA
    f009c0e View commit details
    Browse the repository at this point in the history
  2. Add bundle command to create a CNAB from a Docker Application Package

    Signed-off-by: Silvin Lubecki <silvin.lubecki@docker.com>
    silvin-lubecki committed Jan 31, 2019
    Configuration menu
    Copy the full SHA
    5bf177d View commit details
    Browse the repository at this point in the history
  3. Bump docker/cli, moby/moby, grpc, runc and duffle

    Signed-off-by: Silvin Lubecki <silvin.lubecki@docker.com>
    silvin-lubecki committed Jan 31, 2019
    Configuration menu
    Copy the full SHA
    8574b9a View commit details
    Browse the repository at this point in the history
  4. * Add Install command to install any CNAB bundle.

    Install command also detects if the argument is a Docker Application Package. It will then bundle it and run the CNAB action Install.
    It is now a CNAB installer, and all the docker-app deployment logic is moved to the docker-app backend binary run in cmd/run/install.go.
    The installation is added in the duffle claim store.
    
    * Rename deploy command to install (with still alias to deploy)
    
    Signed-off-by: Silvin Lubecki <silvin.lubecki@docker.com>
    silvin-lubecki committed Jan 31, 2019
    Configuration menu
    Copy the full SHA
    daa2241 View commit details
    Browse the repository at this point in the history
  5. Add Uninstall command, to uninstall a claim from the duffle claim store.

    It will run the Uninstall CNAB action in the cmd/run/uninstall.go to remove a Docker Application Package deployment.
    
    Signed-off-by: Silvin Lubecki <silvin.lubecki@docker.com>
    silvin-lubecki committed Jan 31, 2019
    Configuration menu
    Copy the full SHA
    76b4d3c View commit details
    Browse the repository at this point in the history
  6. Add upgrade command to modify a CNAB installation.

    Signed-off-by: Silvin Lubecki <silvin.lubecki@docker.com>
    silvin-lubecki committed Jan 31, 2019
    Configuration menu
    Copy the full SHA
    bd3b894 View commit details
    Browse the repository at this point in the history
  7. Add status command to query the status of a CNAB installation.

    For a Docker Application Package, it will run a "docker stack services" on the deployed stack.
    
    Signed-off-by: Silvin Lubecki <silvin.lubecki@docker.com>
    silvin-lubecki committed Jan 31, 2019
    Configuration menu
    Copy the full SHA
    5633f15 View commit details
    Browse the repository at this point in the history
  8. Update README with CNAB

    Signed-off-by: Silvin Lubecki <silvin.lubecki@docker.com>
    silvin-lubecki committed Jan 31, 2019
    Configuration menu
    Copy the full SHA
    d17548a View commit details
    Browse the repository at this point in the history
  9. Add CNAB examples

    *Fix running docker-app validate only on application package examples and skip CNAB examples.
    
    Signed-off-by: Christopher Crone <christopher.crone@docker.com>
    chris-crone authored and silvin-lubecki committed Jan 31, 2019
    Configuration menu
    Copy the full SHA
    520a7b1 View commit details
    Browse the repository at this point in the history
  10. getTargetContext now resolves the current context if the target conte…

    …xt has not been specified.
    
    Factorize credentialset and target-context flags.
    Extract all helper functions to their own go file.
    
    Signed-off-by: Silvin Lubecki <silvin.lubecki@docker.com>
    silvin-lubecki committed Jan 31, 2019
    Configuration menu
    Copy the full SHA
    172ce06 View commit details
    Browse the repository at this point in the history
  11. Rename the cmd/run binary to cmd/cnab-run.

    Signed-off-by: Silvin Lubecki <silvin.lubecki@docker.com>
    silvin-lubecki committed Jan 31, 2019
    Configuration menu
    Copy the full SHA
    312da0c View commit details
    Browse the repository at this point in the history
  12. Various cleanings, including missing EOL, typos, comments, ...

    Signed-off-by: Silvin Lubecki <silvin.lubecki@docker.com>
    silvin-lubecki committed Jan 31, 2019
    Configuration menu
    Copy the full SHA
    d8fe337 View commit details
    Browse the repository at this point in the history
  13. Wrap tar errors with some context

    Signed-off-by: Silvin Lubecki <silvin.lubecki@docker.com>
    silvin-lubecki committed Jan 31, 2019
    Configuration menu
    Copy the full SHA
    196387f View commit details
    Browse the repository at this point in the history