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

Document the required command for c2c build in MacOS #5714

Merged
merged 1 commit into from
Oct 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion examples/docker-hello-world/docker_hello_world.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@ For all the supported key value properties, see [Code to Cloud specification](ht
::: code Cloud.toml :::

Execute the `bal build` command to build the Ballerina package. Code to Cloud generates only one container per package.
>**Note:** For Mac users with Apple Silicon chips, run `export DOCKER_DEFAULT_PLATFORM=linux/amd64` before building the image. This is necessary because the Ballerina base image doesn't yet support the M1 chip.
>**Note:** For Mac users with Apple Silicon chips, set an environment variable `DOCKER_DEFAULT_PLATFORM` to `linux/amd64`, before building the image. This is because the Ballerina Docker image is not supported on Apple Silicon chips yet.
> ```
> export DOCKER_DEFAULT_PLATFORM=linux/amd64
> ```

::: out build_output.out :::

Expand Down
5 changes: 4 additions & 1 deletion examples/kubernetes-hello-world/kubernetes_hello_world.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@ For all the supported key value properties, see [Code to Cloud Specification](ht
::: code Cloud.toml :::

Execute the `bal build` command to build the Ballerina package. Code to Cloud generates only one container per package.
>**Note:** For Mac users with Apple Silicon chips, run `export DOCKER_DEFAULT_PLATFORM=linux/amd64` before building the image. This is necessary because the Ballerina base image doesn't yet support the M1 chip.
>**Note:** The macOS users with Apple silicon chip need set an environment variable `DOCKER_DEFAULT_PLATFORM` to `linux/amd64`, before building the image. This is because the Ballerina Docker image is not supported on Apple silicon chips yet.
> ```
> export DOCKER_DEFAULT_PLATFORM=linux/amd64
> ```

::: out build_output.out :::

Expand Down
Loading