Skip to content

new-app examples doesn't include http(s) git repo #1522

Closed

Description

@thoraxe
Examples:

        # Try to create an application based on the source code in the current directory
        $ osc new-app .

        $ Use the public Docker Hub MySQL image to create an app
        $ osc new-app mysql

        # Use a MySQL image in a private registry to create an app
        $ osc new-app myregistry.com/mycompany/mysql

There's not an indication that you can point at a git repo directly. This works:

osc new-app https://github.com/openshift/simple-openshift-sinatra-sti.git
simple-openshift-sinatra
simple-openshift-sinatra-sti
simple-openshift-sinatra-sti
simple-openshift-sinatra-sti
Service "simple-openshift-sinatra" created at 172.30.17.20:8080 to talk to pods over port 8080.
A build was created - you can run `osc start-build simple-openshift-sinatra-sti` to start it.

Activity

  1. smarterclayton commented on Apr 1, 2015

    @smarterclayton
    Contributor

    They should match osc help examples

  2. thoraxe commented on Apr 1, 2015

    @thoraxe
    ContributorAuthor

    "osc help"'s example is not complete enough documentation for new-app.

    There's also no mention of how to specify a branch (eg: --ref from ex generate)

  3. added a commit that references this issue on Aug 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions