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

Add cookbook for docker #215

Merged
merged 2 commits into from
Oct 14, 2021
Merged

Conversation

lwronski
Copy link
Contributor

No description provided.

website/docs/cookbooks/scala-docker.md Outdated Show resolved Hide resolved

The following command will generate `hello-docker` image with `latest` tag:
```bash ignore
scala-cli package --docker HelloWorld.scala --docker-image-repository hello-docker
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we need to ignore this commands?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You're right, we should check these code snippets with the docs-checker. I fixed it.

I only skip checking for building docker image with scala-native, because for now, we support it only on Linux environments. It would be a pain if docs-checker failed every time on macOS.


Passing `--docker` to the `package` sub-command generates a docker image. The docker image name parameter `--docker-image-repository` is mandatory.

The following command will generate `hello-docker` image with `latest` tag:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could one configure custom tag? If so I think we should add it to the guide

@romanowski romanowski merged commit 388d18c into VirtusLab:master Oct 14, 2021
@lwronski lwronski deleted the cookbook-docker branch October 26, 2021 06:46
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

Successfully merging this pull request may close these issues.

None yet

2 participants