container-build doesn't work on macos #3

Closed
opened 2022-08-25 04:31:48 +00:00 by dboreham · 7 comments
Owner

Possibly something specific to my macbook, but I see this:

Building: cerc/ipld-eth-server
Script: container-build/cerc-ipld-eth-server/build.sh
exec: "com.docker.cli": executable file not found in $PATH

Interwebs say this may be something to do with zsh. To be investigated further. Docker in general works on the machine.

Possibly something specific to my macbook, but I see this: ``` Building: cerc/ipld-eth-server Script: container-build/cerc-ipld-eth-server/build.sh exec: "com.docker.cli": executable file not found in $PATH ``` Interwebs say this may be something to do with zsh. To be investigated further. Docker in general works on the machine.
Author
Owner

Tussled with this some more. The initial problem appears to be specific to my macbook. After reinstalling Docker Desktop, that problem was cured.

However, there's now a second, similar problem:

failed to solve with frontend dockerfile.v0: failed to create LLB definition: rpc error: code = Unknown desc = error getting credentials - err: exec: "docker-credential-desktop": executable file not found in $PATH, out: ``

I've reproduced this on a mac mini at AWS, so it's not specific to my machine.

Tussled with this some more. The initial problem appears to be specific to my macbook. After reinstalling Docker Desktop, that problem was cured. However, there's now a second, similar problem: ``` failed to solve with frontend dockerfile.v0: failed to create LLB definition: rpc error: code = Unknown desc = error getting credentials - err: exec: "docker-credential-desktop": executable file not found in $PATH, out: `` ``` I've reproduced this on a mac mini at AWS, so it's not specific to my machine.
Author
Owner

Seems to be fixed by this: https://stackoverflow.com/questions/67642620/docker-credential-desktop-not-installed-or-not-available-in-path but very odd that we have the problem in an entirely greenfield docker desktop installation.

Seems to be fixed by this: https://stackoverflow.com/questions/67642620/docker-credential-desktop-not-installed-or-not-available-in-path but very odd that we have the problem in an entirely greenfield docker desktop installation.
Author
Owner

Current workaround: rename ~/.docker/config.json -> ./docker/config.json-saved

Current workaround: rename `~/.docker/config.json` -> `./docker/config.json-saved`
rickmanelius commented 2023-01-10 14:42:46 +00:00 (Migrated from github.com)

Yes yes. I had this snag me yet again, and just deleted ~/.docker/config.json to get by it.

@zramsay So I tried this again with the v1.0.5-alpha release and the updated docs you provided last night. Now I'm getting stuck at the stack stand-up step because of a Python error.

  File "/Users/rickmanelius/.shiv/laconic-so_23bc390eae8bbd8a4216b226b4454edf233fa21431364bc1495796b58a35e576/site-packages/app/deploy_system.py", line 44, in command
    compose_dir = Path(__file__).absolute().parent.joinpath("data", "compose")
NameError: name 'Path' is not defined. Did you mean: 'path'?

It looks like we didn't import the Path module needed here https://github.com/cerc-io/stack-orchestrator/blob/main/app/deploy_system.py#L44.

Looks like we might need from pathlib import Path

Yes yes. I had this snag me yet again, and just deleted `~/.docker/config.json` to get by it. @zramsay So I tried this again with the [v1.0.5-alpha](https://github.com/cerc-io/stack-orchestrator/releases/tag/v1.0.5-alpha) release and [the updated docs you provided last night](http://docs-staging.laconic.com/docs/tutorials/quick-start/). Now I'm getting stuck at the stack stand-up step because of a Python error. ``` File "/Users/rickmanelius/.shiv/laconic-so_23bc390eae8bbd8a4216b226b4454edf233fa21431364bc1495796b58a35e576/site-packages/app/deploy_system.py", line 44, in command compose_dir = Path(__file__).absolute().parent.joinpath("data", "compose") NameError: name 'Path' is not defined. Did you mean: 'path'? ``` It looks like we didn't import the `Path` module needed here https://github.com/cerc-io/stack-orchestrator/blob/main/app/deploy_system.py#L44. Looks like we might need `from pathlib import Path`
Author
Owner

@zramsay So I tried this again with the v1.0.5-alpha release and the updated docs you provided last night. Now I'm getting stuck at the stack stand-up step because of a Python error.

Quick process note: please don't use bug reports / issues as a conversation channel. New different problems can become lost if reported as a note on a previous issue. File a new issue with any newly found problem. I've opened a new report for this here: https://github.com/cerc-io/stack-orchestrator/issues/109

> @zramsay So I tried this again with the [v1.0.5-alpha](https://github.com/cerc-io/stack-orchestrator/releases/tag/v1.0.5-alpha) release and [the updated docs you provided last night](http://docs-staging.laconic.com/docs/tutorials/quick-start/). Now I'm getting stuck at the stack stand-up step because of a Python error. > Quick process note: please don't use bug reports / issues as a conversation channel. New different problems can become lost if reported as a note on a previous issue. File a new issue with any newly found problem. I've opened a new report for this here: https://github.com/cerc-io/stack-orchestrator/issues/109
rickmanelius commented 2023-01-10 15:04:56 +00:00 (Migrated from github.com)

Duly noted. I'll keep this open a meta ticket and spin off sub-issues until I complete this happy path for macOS 👍

Duly noted. I'll keep this open a meta ticket and spin off sub-issues until I complete this happy path for macOS 👍
rickmanelius commented 2023-01-10 22:46:39 +00:00 (Migrated from github.com)

@zramsay I'm happy to report I was able to fully step through the quick-start tutorial on macOS. Closing

@zramsay I'm happy to report I was able to fully step through the [quick-start tutorial](http://docs-staging.laconic.com/docs/tutorials/quick-start/) on macOS. Closing
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: cerc-io/stack-orchestrator#3
No description provided.