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

Docker build fails while creating custom agent for Aries #866

Closed
shubhadeep-acn opened this issue Jul 22, 2020 · 3 comments
Closed

Docker build fails while creating custom agent for Aries #866

shubhadeep-acn opened this issue Jul 22, 2020 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@shubhadeep-acn
Copy link

Describe the bug
We have deployed the BAF framework and wanted to deploy Indentity-App by referring the documentation https://github.com/hyperledger-labs/blockchain-automation-framework/tree/master/examples/identity-app
We were unable to create Custom Aries Image

To Reproduce
Steps to reproduce the behavior:

  1. Go to Link https://github.com/hyperledger-labs/blockchain-automation-framework/tree/master/examples/identity-app

  2. Click on Step 2 Documentation Link
    We are able to create base Image but when we trigger

  3. Refer Docker Build step in 'Build a custom image'

  4. See error
    `[00:26] Sengupta, Shubhadeep
    I get following error when I run from path

/project/blockchain-automation-framework/examples/identity-app/images/agents
docker build -t aries-agents .

We could see below error
❯ docker build -t aries-agents .
Sending build context to Docker daemon 44.54MB
Step 1/4 : FROM hyperledgerlabs/faber-alice-demo:1.11.0
pull access denied for hyperledgerlabs/faber-alice-demo, repository does not exist or may require 'docker login': denied: requested access to the resource is denied
`
Expected behavior
Custom Docker Image should be build without any error.

Workaround/Fix
I have updated the fix by replacing the base docker which was FROM hyperledgerlabs/faber-alice-demo:1.11.0. to my own custom created Image which was part of Build a base image. step and I was able to create Custom Image

Screenshots
If applicable, add screenshots to help explain your problem.

Environment (please complete the following information):

  • OS: [e.g. MacOS]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

@shubhadeep-acn shubhadeep-acn added the bug Something isn't working label Jul 22, 2020
@sauveergoel
Copy link
Contributor

The error you getting is related to configuring your docker hub account credentials in your execution env.

@shubhadeep-acn
Copy link
Author

I have logged in using my own Docker Hub Credentials , attaching screenshot & my own image which worked ( which is pulled from) https://hub.docker.com/repository/docker/shubhadeep14/faber-alice-demo. or my local repo

image

@sauveergoel
Copy link
Contributor

sauveergoel commented Aug 17, 2020

Docker build is searching for image, hyperledgerlabs/faber-alice-demo, which is not present, you will have to build your own image using https://github.com/hyperledger-labs/blockchain-automation-framework/blob/develop/examples/identity-app/images/agents/README.md#build-a-base-image section. Then push this image to your docker repo and update the Dockerfile accordingly. The enhanced documentation shall be merged soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants