Skip to content

Commit

Permalink
Document the required command for c2c build in MacOS
Browse files Browse the repository at this point in the history
  • Loading branch information
anuruddhal committed Oct 9, 2024
1 parent 6016b78 commit b9aa205
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
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

0 comments on commit b9aa205

Please sign in to comment.