Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fn create context container-registry ? #104

Open
Arvinzhu opened this issue Sep 25, 2019 · 1 comment
Open

fn create context container-registry ? #104

Arvinzhu opened this issue Sep 25, 2019 · 1 comment
Assignees

Comments

@Arvinzhu
Copy link

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 ?

@michael-w-williams michael-w-williams self-assigned this Sep 26, 2019
@michael-w-williams
Copy link
Member

Hi Arvinzhu,

Thanks for trying out Fn. I think you have the value mostly right, however, I don't think you include the "http://" 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 "http://" 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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants