Skip to content

Commit

Permalink
Update instructions for cross compilation
Browse files Browse the repository at this point in the history
Also removing unused file
  • Loading branch information
erikbosch committed Jul 1, 2024
1 parent d5fdcfa commit 961dfb8
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 103 deletions.
11 changes: 10 additions & 1 deletion doc/docker.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
It is possible to build can-provider as a Docker container

```console
docker build -f Dockerfile --progress=plain --build-arg TARGETPLATFORM=linux/amd64 -t can-provider:latest .
docker build -f Dockerfile --progress=plain -t can-provider:latest .
```

The same container can be used for both connecting to Databroker and Server:
Expand All @@ -14,6 +14,15 @@ docker run --net=host -e LOG_LEVEL=INFO can-provider:latest --server-type kuksa
docker run --net=host -e LOG_LEVEL=INFO can-provider:latest --server-type kuksa_val_server
```

## Building for a different architecture

You can build for a different architecture by using the `--platform` argument.
You might need to install `qemu-user-static` depending on your distribution.

```console
docker buildx build -f Dockerfile --progress=plain --platform=linux/arm64 -t can-provider:latest .
```

## Pre-built Docker container

A pre-built Docker container is available in the repository. The container is availablat the github container registry via
Expand Down
102 changes: 0 additions & 102 deletions docker-build.sh

This file was deleted.

0 comments on commit 961dfb8

Please sign in to comment.