Skip to content

fn create context container-registry ? #104

Open

Description

@Arvinzhu

Deploying first app
In first place please create a new Fn CLI context for the particular deployment:

fn create context distributed-fn --registry <container-registry> --api-url http://api.fn.local:8080
fn use context distributed-fn

Who can tell me what's the --registry <container-registry> means ?
I think --registry <container-registry> means docker hub registry , so I set value http://f1361db2.m.daocloud.io but it semms not current.

[root@localhost pyfn]# fn -v deploy --app testapp
Deploying pyfn to app: testapp
Bumped to version 0.0.2
Building image http://f1361db2.m.daocloud.io/pyfn:0.0.2 
FN_REGISTRY:  http://f1361db2.m.daocloud.io
Current Context:  distributed-fn
invalid argument "http://f1361db2.m.daocloud.io/pyfn:0.0.2" for "-t, --tag" flag: invalid reference format
See 'docker build --help'.

Could someone tell me how to deal with this problem ?

Activity

  1. michael-w-williams commented on Sep 26, 2019

    @michael-w-williams
    Member

    Hi Arvinzhu,

    Thanks for trying out Fn. I think you have the value mostly right, however, I don't think you include the "https://" in the registry value.

    As an example, I am gonna a refer to an example on the Oracle Functions Quickstart site.

    In this example the service defines the structure for their registry value as:
    fn update context registry <region-code>.ocir.io/<tenancy-namespace>/<repo-name>

    which results in this for a command:
    fn update context registry phx.ocir.io/ansh81vru1zp/acme-repo

    For Docker hub, I believe you just use your docker hub username, for example:
    fn update context registry your-username-here

    From the data you provided it looks like you are using a different service so your mileage may vary. But I would try removing the "https://" protocol specification from the host name and path and see if that works.

    Let me know how it goes.

    Mike W.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

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