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

ch create for csci350 errors out, but run_scripts workflow works for some people #15

Closed
a-harhar opened this issue Jan 23, 2024 · 4 comments
Assignees

Comments

@a-harhar
Copy link
Contributor

a-harhar commented Jan 23, 2024

Describe the bug

When running the ch command from cs350-docker to create the csci350 container, it produces the following error:

v1: Pulling from camerondurham/cs350-docker Cannot create new environment. Error from Dockerfile build: no matching manifest for linux/arm64/v8 in the manifest list entries

To Reproduce

Simply using the ch create command from cs350-docker causes this issue to appear. The issue states no manifest for linux/arm64/v8 -- I'm not entirely sure about this but I think it is attempting to use my host platform as the image's platform?

This issue does not occur when using the run_scripts workflow, which works completely fine!

Screenshots

Running with ./run.sh start:
image

Running with ch create:
image

Desktop (please complete the following information):

  • OS: MacOS v13.0.1
  • Latest Docker Version (just updated)

Additional context
While run_scripts workflow is working for me, some other students are complaining that it doesn't work for them either. They are running into the same issue as before:

./run.sh start

Running Docker image

[+] Running 0/1

⠇ gdbserver Pulling 2.9s

no matching manifest for linux/arm64/v8 in the manifest list entries

@a-harhar
Copy link
Contributor Author

a-harhar commented Jan 23, 2024

UPDATE:
Since this was a versioning issue with the platform, I had students change the docker-compose.yml file to add the following line:

platform: linux/amd64

The final file looks something like this:
image

Seems like this worked for others facing this issue using the run_scripts workflow! However ch workflow is still not working and continues to run into the same issue

@camerondurham
Copy link
Owner

camerondurham commented Jan 23, 2024

@a-harhar Thanks for bringing this up! You're right, I should have explicitly specified the required platform as you did and that's a bug. Feel free to PR the change to the Docker compose file or I'll do it after work.

And for ch, looks like not specifying platform: linux/amd64 in ch is a bug/feature required to make this config work, otherwise it will default to host platform that would be wrong for anything not x86.

@a-harhar
Copy link
Contributor Author

Created a PR #16 for the issue. Thank you so much for your timely response, it is very much appreciated!

@camerondurham
Copy link
Owner

camerondurham commented Jan 24, 2024

I'm going to close this after releasing your change in #16 to ch in version v0.3.7. Feel free to re-open if issues recur!

To upgrade, users can run ch upgrade for commands to upgrade to latest version.

Example:

ch upgrade

        current version 0.3.7, latest version v0.3.7

        Please run the following upgrade command (detected macOS operating system):

        bash <(curl -s https://raw.githubusercontent.com/camerondurham/ch/main/scripts/install-ch.sh)

        For more help, see the repository README: https://github.com/camerondurham/ch

Users that installed via brew can upgrade with brew upgrade camerondurham/tap/ch to get the latest build and follow instructions in this repo.

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