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

Can not deploy private registry docker images #24

Closed
r-chris opened this issue Mar 15, 2018 · 2 comments
Closed

Can not deploy private registry docker images #24

r-chris opened this issue Mar 15, 2018 · 2 comments

Comments

@r-chris
Copy link

r-chris commented Mar 15, 2018

Manifest file:

applications:
- name: test-deploy-private
  docker:
    image: PRIVATE_DOCKER_REGISTRY_NAME/test-app:latest
    username: ***
  command: null
  memory: 128M
  instances: 1
  disk_quota: 5G
  health-check-type: process
  routes:
    - route: test-deploy-private.***

Deployment plan:

- name: deploy-cli-private
  plan:
  - get: git
    passed: [build-private]
    trigger: false
  - put: cf-cli-env
    params:
      command: push
      manifest: git/manifest-private.yml
      environment_variables:
        CF_DOCKER_PASSWORD: ((docker-registry-password))
      cf_trace: true

Error message:

Using manifest file git/manifest-private.yml

FAILED
No Docker password was provided. Please provide the password by setting the CF_DOCKER_PASSWORD environment variable.
@r-chris
Copy link
Author

r-chris commented Mar 15, 2018

Probably related to #23. I tried to create a very simple, minimalistic deployment setup to test pushing an app from our private registry, but it doesn't seem to work with the build-in cf-resource or with this cf-cli-resource. Any help would be much appreciated.

@patrickcrocker
Copy link
Member

Implemented in v2.8.0.

Please note that you are going to see the same issue you reported here if you use a placeholder for docker.username in your manifest.yml file.

This is a limitation of the cf cli, and not the cf-cli-resource or cf-resource.

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