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

No such image: drogon:latest #5

Closed
CyrusVorwald opened this issue Nov 28, 2022 · 6 comments
Closed

No such image: drogon:latest #5

CyrusVorwald opened this issue Nov 28, 2022 · 6 comments
Labels
bug Something isn't working

Comments

@CyrusVorwald
Copy link

CyrusVorwald commented Nov 28, 2022

When initializing a project with samples, I get the following error:

fatal Failed to fetch boilerplate. Error: (HTTP code 404) no such container - No such image: drogon:latest

See the full command log below

❯ yarn run drogon init
yarn run v1.22.17
$ node -p "'export const LIB_VERSION = ' + JSON.stringify(require('./package.json').version) + ';'" > src/version.ts
$ npx ts-node src/index.ts init
 _ .-') _  _  .-')                                             .-') _ ,---.
( (  OO) )( \( -O )                                           ( OO ) )|   |
 \     .'_ ,------.  .-'),-----.   ,----.     .-'),-----. ,--./ ,--,' |   |
 ,`'--..._)|   /`. '( OO'  .-.  ' '  .-./-') ( OO'  .-.  '|   \ |  |\ |   |
 |  |  \  '|  /  | |/   |  | |  | |  |_( O- )/   |  | |  ||    \|  | )|   |
 |  |   ' ||  |_.' |\_) |  |\|  | |  | .--, \\_) |  |\|  ||  .     |/ |  .'
 |  |   / :|  .  '.'  \ |  | |  |(|  | '. (_/  \ |  | |  ||  |\    |  `--'
 |  '--'  /|  |\  \    `'  '-'  ' |  '--'  |    `'  '-'  '|  | \   |  .--.
 `-------' `--' '--'     `-----'   `------'       `-----' `--'  `--'  '--'
✔ Name of the project … ibc-icon
✔ Do you want to initialize your Drogon project with samples? … no / yes
✔ Do you want to generate a keystore for this project? … no / yes
✔ Current working directory looks like a Drogon project. Do you want to overwrite all files? … no / yes
✔ Pick a boilerplate › Hello World
✨ Scaffolding done 🎉
✖  fatal     Failed to fetch boilerplate. Error: (HTTP code 404) no such container - No such image: drogon:latest
error Command failed with exit code 1.
@CyrusVorwald CyrusVorwald added the bug Something isn't working label Nov 28, 2022
ant4g0nist added a commit that referenced this issue Dec 4, 2022
@r3dsm0k3
Copy link
Collaborator

r3dsm0k3 commented Dec 9, 2022

This should be fixed now. Thank you for raising the issue @CyrusVorwald

@r3dsm0k3 r3dsm0k3 closed this as completed Dec 9, 2022
r3dsm0k3 added a commit that referenced this issue Jan 15, 2023
* feat: adds init, install and compile commands
changes:
- adds install command to pull in Docker images
- adds init command that initializes a Drogon project
- adds compile command that compiles the initialised Drogon project
- adds pulling in biolerplates/scaffolding
- adds workflows to build Drogon and Gochain images

* fix: fixes github action files

* fix: fixes Dockerfile and github actions

* fix: adds icon/gradle*

* fix: fixes github actions

* fix: updates github actions to create packages

* fix: updates github actions to create packages

* fix: fixes github actions to fix permissions

* adds docker hub push

* fix: fixes the github workflow

* fix: fixes the push to the community page

* feat: adds support for testing, optimizing
changes:
- adds 4 new commands
- test command to run tests
- optimize command to run optimizeJar tasks
- deploy command to run deployJar tasks
- gradlew subcommand that exposes gradle wrapper to drogon
- compile and test command now return CI/CD friendly exit codes
- install now pulls docker images from docker hub instead of ghcr.io

* fix: adds Docker debian image
Changes:
- adds Debian Docker image and improves goloop support

* fix: fix github actions

* feat: adds sandbox, goloop subcommands
changes:
- adds sandbox start and sandbox stop subcommands
- adds goloop command
- adds keystore command to generate keystores
- restructures code

* fix: fixes github actions

* fix: fixes github actions

* fix: fixes #5

* fix: fixes gochain image

* chore: adding dev dependencies and some run scripts to make it easier

* chore: removes yarn lock; lets use npm

* chore: linter fixes

* chore: removes the @typescript-eslint/no-explicit-any; FIX later

* chore: fixes the linter warnings; disabled the rules for irrelevant ones

* feat: adds ability to generate binary with pkg

* fix: fixes the issue with the github action checkout (#7)

* fix: gochain build err on docker file (#9)

* fix: fixes the issue where the gochain was not getting built inside dockerfile

* fix: fixes the image tagging

Co-authored-by: ant4g0nist <ant4g0nist@users.noreply.github.com>
Co-authored-by: Chaithu <3500559+ant4g0nist@users.noreply.github.com>
r3dsm0k3 added a commit that referenced this issue Jan 16, 2023
* prepare tsconfig for publish

* adds run scripts

* linter error fix

* 0.1.1

* Revert "0.1.1"

This reverts commit f83ceba.

* 0.1.1

* 0.1.2

* ability to read the lib version from the package

* Milestone 2 (#13)

* feat: adds init, install and compile commands
changes:
- adds install command to pull in Docker images
- adds init command that initializes a Drogon project
- adds compile command that compiles the initialised Drogon project
- adds pulling in biolerplates/scaffolding
- adds workflows to build Drogon and Gochain images

* fix: fixes github action files

* fix: fixes Dockerfile and github actions

* fix: adds icon/gradle*

* fix: fixes github actions

* fix: updates github actions to create packages

* fix: updates github actions to create packages

* fix: fixes github actions to fix permissions

* adds docker hub push

* fix: fixes the github workflow

* fix: fixes the push to the community page

* feat: adds support for testing, optimizing
changes:
- adds 4 new commands
- test command to run tests
- optimize command to run optimizeJar tasks
- deploy command to run deployJar tasks
- gradlew subcommand that exposes gradle wrapper to drogon
- compile and test command now return CI/CD friendly exit codes
- install now pulls docker images from docker hub instead of ghcr.io

* fix: adds Docker debian image
Changes:
- adds Debian Docker image and improves goloop support

* fix: fix github actions

* feat: adds sandbox, goloop subcommands
changes:
- adds sandbox start and sandbox stop subcommands
- adds goloop command
- adds keystore command to generate keystores
- restructures code

* fix: fixes github actions

* fix: fixes github actions

* fix: fixes #5

* fix: fixes gochain image

* chore: adding dev dependencies and some run scripts to make it easier

* chore: removes yarn lock; lets use npm

* chore: linter fixes

* chore: removes the @typescript-eslint/no-explicit-any; FIX later

* chore: fixes the linter warnings; disabled the rules for irrelevant ones

* feat: adds ability to generate binary with pkg

* fix: fixes the issue with the github action checkout (#7)

* fix: gochain build err on docker file (#9)

* fix: fixes the issue where the gochain was not getting built inside dockerfile

* fix: fixes the image tagging

Co-authored-by: ant4g0nist <ant4g0nist@users.noreply.github.com>
Co-authored-by: Chaithu <3500559+ant4g0nist@users.noreply.github.com>

* adds installation instructions

* adds package name

* adds github workflows

* updates version from package

* chore: bumps version

Co-authored-by: coconut-bunch <ajith.c@outlook.com>
Co-authored-by: ant4g0nist <ant4g0nist@users.noreply.github.com>
Co-authored-by: Chaithu <3500559+ant4g0nist@users.noreply.github.com>
r3dsm0k3 added a commit that referenced this issue Jan 16, 2023
* feat: adds init, install and compile commands
changes:
- adds install command to pull in Docker images
- adds init command that initializes a Drogon project
- adds compile command that compiles the initialised Drogon project
- adds pulling in biolerplates/scaffolding
- adds workflows to build Drogon and Gochain images

* fix: fixes github action files

* fix: fixes Dockerfile and github actions

* fix: adds icon/gradle*

* fix: fixes github actions

* fix: updates github actions to create packages

* fix: updates github actions to create packages

* fix: fixes github actions to fix permissions

* adds docker hub push

* fix: fixes the github workflow

* fix: fixes the push to the community page

* feat: adds support for testing, optimizing
changes:
- adds 4 new commands
- test command to run tests
- optimize command to run optimizeJar tasks
- deploy command to run deployJar tasks
- gradlew subcommand that exposes gradle wrapper to drogon
- compile and test command now return CI/CD friendly exit codes
- install now pulls docker images from docker hub instead of ghcr.io

* fix: adds Docker debian image
Changes:
- adds Debian Docker image and improves goloop support

* fix: fix github actions

* feat: adds sandbox, goloop subcommands
changes:
- adds sandbox start and sandbox stop subcommands
- adds goloop command
- adds keystore command to generate keystores
- restructures code

* fix: fixes github actions

* fix: fixes github actions

* fix: fixes #5

* fix: fixes gochain image

* chore: adding dev dependencies and some run scripts to make it easier

* chore: removes yarn lock; lets use npm

* chore: linter fixes

* chore: removes the @typescript-eslint/no-explicit-any; FIX later

* chore: fixes the linter warnings; disabled the rules for irrelevant ones

* feat: adds ability to generate binary with pkg

* fix: fixes the issue with the github action checkout (#7)

* fix: gochain build err on docker file (#9)

* fix: fixes the issue where the gochain was not getting built inside dockerfile

* fix: fixes the image tagging

* feat: npm package release (#14)

* prepare tsconfig for publish

* adds run scripts

* linter error fix

* 0.1.1

* Revert "0.1.1"

This reverts commit f83ceba.

* 0.1.1

* 0.1.2

* ability to read the lib version from the package

* Milestone 2 (#13)

* feat: adds init, install and compile commands
changes:
- adds install command to pull in Docker images
- adds init command that initializes a Drogon project
- adds compile command that compiles the initialised Drogon project
- adds pulling in biolerplates/scaffolding
- adds workflows to build Drogon and Gochain images

* fix: fixes github action files

* fix: fixes Dockerfile and github actions

* fix: adds icon/gradle*

* fix: fixes github actions

* fix: updates github actions to create packages

* fix: updates github actions to create packages

* fix: fixes github actions to fix permissions

* adds docker hub push

* fix: fixes the github workflow

* fix: fixes the push to the community page

* feat: adds support for testing, optimizing
changes:
- adds 4 new commands
- test command to run tests
- optimize command to run optimizeJar tasks
- deploy command to run deployJar tasks
- gradlew subcommand that exposes gradle wrapper to drogon
- compile and test command now return CI/CD friendly exit codes
- install now pulls docker images from docker hub instead of ghcr.io

* fix: adds Docker debian image
Changes:
- adds Debian Docker image and improves goloop support

* fix: fix github actions

* feat: adds sandbox, goloop subcommands
changes:
- adds sandbox start and sandbox stop subcommands
- adds goloop command
- adds keystore command to generate keystores
- restructures code

* fix: fixes github actions

* fix: fixes github actions

* fix: fixes #5

* fix: fixes gochain image

* chore: adding dev dependencies and some run scripts to make it easier

* chore: removes yarn lock; lets use npm

* chore: linter fixes

* chore: removes the @typescript-eslint/no-explicit-any; FIX later

* chore: fixes the linter warnings; disabled the rules for irrelevant ones

* feat: adds ability to generate binary with pkg

* fix: fixes the issue with the github action checkout (#7)

* fix: gochain build err on docker file (#9)

* fix: fixes the issue where the gochain was not getting built inside dockerfile

* fix: fixes the image tagging

Co-authored-by: ant4g0nist <ant4g0nist@users.noreply.github.com>
Co-authored-by: Chaithu <3500559+ant4g0nist@users.noreply.github.com>

* adds installation instructions

* adds package name

* adds github workflows

* updates version from package

* chore: bumps version

Co-authored-by: coconut-bunch <ajith.c@outlook.com>
Co-authored-by: ant4g0nist <ant4g0nist@users.noreply.github.com>
Co-authored-by: Chaithu <3500559+ant4g0nist@users.noreply.github.com>

Co-authored-by: ant4g0nist <ant4g0nist@users.noreply.github.com>
Co-authored-by: Chaithu <3500559+ant4g0nist@users.noreply.github.com>
Co-authored-by: coconut-bunch <ajith.c@outlook.com>
@CyrusVorwald
Copy link
Author

CyrusVorwald commented Feb 13, 2023

I still have this issue with the following reproduction steps:

❯ npm install -g @icon-community/drogon

 _ .-') _  _  .-')                                             .-') _ ,---. 
( (  OO) )( \( -O )                                           ( OO ) )|   | 
 \     .'_ ,------.  .-'),-----.   ,----.     .-'),-----. ,--./ ,--,' |   | 
 ,`'--..._)|   /`. '( OO'  .-.  ' '  .-./-') ( OO'  .-.  '|   \ |  |\ |   | 
 |  |  \  '|  /  | |/   |  | |  | |  |_( O- )/   |  | |  ||    \|  | )|   | 
 |  |   ' ||  |_.' |\_) |  |\|  | |  | .--, \\_) |  |\|  ||  .     |/ |  .' 
 |  |   / :|  .  '.'  \ |  | |  |(|  | '. (_/  \ |  | |  ||  |\    |  `--'  
 |  '--'  /|  |\  \    `'  '-'  ' |  '--'  |    `'  '-'  '|  | \   |  .--.  
 `-------' `--' '--'     `-----'   `------'       `-----' `--'  `--'  '--'  
✔ Name of the project … sample
✔ Do you want to initialize your Drogon project with samples? … no / **yes**
✔ Do you want to generate a keystore for this project? … no / **yes**
(node:74548) UnhandledPromiseRejectionWarning: Error: (HTTP code 404) no such container - No such image: iconcommunity/drogon:latest 
    at /Users/cyrusvorwald/.nvm/versions/node/v14.17.0/lib/node_modules/@icon-community/drogon/node_modules/docker-modem/lib/modem.js:336:17
    at getCause (/Users/cyrusvorwald/.nvm/versions/node/v14.17.0/lib/node_modules/@icon-community/drogon/node_modules/docker-modem/lib/modem.js:366:7)
    at Modem.buildPayload (/Users/cyrusvorwald/.nvm/versions/node/v14.17.0/lib/node_modules/@icon-community/drogon/node_modules/docker-modem/lib/modem.js:335:5)
    at IncomingMessage.<anonymous> (/Users/cyrusvorwald/.nvm/versions/node/v14.17.0/lib/node_modules/@icon-community/drogon/node_modules/docker-modem/lib/modem.js:303:16)
    at IncomingMessage.emit (events.js:388:22)
    at endReadableNT (internal/streams/readable.js:1336:12)
    at processTicksAndRejections (internal/process/task_queues.js:82:21)
(Use `node --trace-warnings ...` to show where the warning was created)
(node:74548) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:74548) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.```

@CyrusVorwald CyrusVorwald reopened this Feb 13, 2023
@coconut-bunch
Copy link
Collaborator

you'll have to first do drogon install before you can do the init. init makes sure the necessary images are available locally.

@CyrusVorwald
Copy link
Author

I was not able to do drogon install. See #21 for more on that.

@FidelVe
Copy link

FidelVe commented Feb 15, 2023

Im having the same issue,

I started running npm install -g @icon-community/drogon as per the instructions in the README.md.

after that I executed drogon init this is the result:

fidel@laptop:~/code/js/projects/icon-projects/drogon/01$ drogon init
 _ .-') _  _  .-')                                             .-') _ ,---. 
( (  OO) )( \( -O )                                           ( OO ) )|   | 
 \     .'_ ,------.  .-'),-----.   ,----.     .-'),-----. ,--./ ,--,' |   | 
 ,`'--..._)|   /`. '( OO'  .-.  ' '  .-./-') ( OO'  .-.  '|   \ |  |\ |   | 
 |  |  \  '|  /  | |/   |  | |  | |  |_( O- )/   |  | |  ||    \|  | )|   | 
 |  |   ' ||  |_.' |\_) |  |\|  | |  | .--, \\_) |  |\|  ||  .     |/ |  .' 
 |  |   / :|  .  '.'  \ |  | |  |(|  | '. (_/  \ |  | |  ||  |\    |  `--'  
 |  '--'  /|  |\  \    `'  '-'  ' |  '--'  |    `'  '-'  '|  | \   |  .--.  
 `-------' `--' '--'     `-----'   `------'       `-----' `--'  `--'  '--'  
✔ Name of the project … test-1
✔ Do you want to initialize your Drogon project with samples? … no / yes
✔ Do you want to generate a keystore for this project? … no / yes
/home/fidel/.nvm/versions/node/v18.13.0/lib/node_modules/@icon-community/drogon/node_modules/docker-modem/lib/modem.js:336
      var msg = new Error(
                ^

Error: (HTTP code 404) no such container - No such image: iconcommunity/drogon:latest 
    at /home/fidel/.nvm/versions/node/v18.13.0/lib/node_modules/@icon-community/drogon/node_modules/docker-modem/lib/modem.js:336:17
    at getCause (/home/fidel/.nvm/versions/node/v18.13.0/lib/node_modules/@icon-community/drogon/node_modules/docker-modem/lib/modem.js:366:7)
    at Modem.buildPayload (/home/fidel/.nvm/versions/node/v18.13.0/lib/node_modules/@icon-community/drogon/node_modules/docker-modem/lib/modem.js:335:5)
    at IncomingMessage.<anonymous> (/home/fidel/.nvm/versions/node/v18.13.0/lib/node_modules/@icon-community/drogon/node_modules/docker-modem/lib/modem.js:303:16)
    at IncomingMessage.emit (node:events:525:35)
    at endReadableNT (node:internal/streams/readable:1359:12)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
  reason: 'no such container',
  statusCode: 404,
  json: { message: 'No such image: iconcommunity/drogon:latest' }
}

Node.js v18.13.0

@r3dsm0k3
Copy link
Collaborator

@CyrusVorwald I see. imho it it s a different issue. Since the pre-requisites are not met, (in this case the docker images which needs to be pulled), the init command is failing.

Although this error is expected, the UX can be very much improved. I have added an enhancement ticket for this #23.

@FidelVe , I am assuming that perhaps you did not do drogon install before doing the init. There was a gap in the documentation with regards to this, added a PR to address the documentation issue #22.

Thank both of you for the bug reports. Im currently closing this issue because the documentation is updated now.

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

4 participants