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 container example not working on Windows #3254

Open
polkx opened this issue Oct 29, 2024 · 1 comment
Open

Docker container example not working on Windows #3254

polkx opened this issue Oct 29, 2024 · 1 comment
Labels
bug Something isn't working docker Issues tied with docker integration. package command requires scoping Issue requires a spike to revalidate it and assign an up-to date scope for its requirements. windows Windows-specific issues

Comments

@polkx
Copy link

polkx commented Oct 29, 2024

Version(s)
scala-cli 1.5.1
scala 3.5.1
Docker-desktop 4.34.3
Windows 11

Describe the bug
I tried to run this example on Windows.
When I run the command
scala-cli --power package --docker HelloDocker.scala --docker-image-repository hello-docker
everything works
but when I want to run the image (docker run hello-docker:latest) I get the error:

/app: 1: @echo: not found
: not found
: not found
: not found
/app: 5: @REM: not found
/app: 6: Syntax error: "(" unexpected (expecting "then")

I don't know if this is a problem with my computer or a problem with running it on Windows.
I'll add, that it works fine on Mac OS.

Could someone check if it works on Windows and why I get this error?

@polkx polkx added the bug Something isn't working label Oct 29, 2024
@Gedochao Gedochao added windows Windows-specific issues requires scoping Issue requires a spike to revalidate it and assign an up-to date scope for its requirements. docker Issues tied with docker integration. package command labels Oct 29, 2024
@polkx
Copy link
Author

polkx commented Oct 29, 2024

If I execute the command scala-cli --power package --docker HelloDocker.scala --docker-image-repository hello-docker on the Ubuntu 24 (WSL) environment then the created image works on both environments (WSL and Windows) (command docker run hello-docker:latest).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working docker Issues tied with docker integration. package command requires scoping Issue requires a spike to revalidate it and assign an up-to date scope for its requirements. windows Windows-specific issues
Projects
None yet
Development

No branches or pull requests

2 participants