-
Notifications
You must be signed in to change notification settings - Fork 574
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
readme: update 'build manually' instructions
Public build assumes clang-12. Also adds a reference to instructions for using the pre-baked docker image with the frozen toolchain Signed-off-by: Ivo Jimenez <[email protected]>
- Loading branch information
Showing
2 changed files
with
27 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# Docker Image with Redpanda Toolchain | ||
|
||
The `Dockerfile` available in this folder defines the contents of the image published to <https://hub.docker.com/r/vectorized/redpanda-toolchain>. | ||
To build Redpanda using this image: | ||
|
||
```bash | ||
docker pull vectorized/redpanda-toolchain | ||
|
||
cd redpanda/ | ||
docker run --rm -ti -v $PWD:$PWD:Z -w $PWD vectorized/redpanda-toolchain ./build.sh | ||
``` | ||
|
||
You can add the `--ipc=host` flag to share the host's `/dev/shm` folder, so that the `CCACHE_DIR` folder (`/dev/shm/redpanda` by default) can be available across `docker run` invocations. | ||
|
||
In systems with SELinux enabled, the `:Z` bind-mount option might cause the container to take too long to setup (due to SELinux labels being applied to individual files). | ||
To avoid this, you can add the `--privileged` flag, and that will instruct Docker (or Podman) to skip applying SELinux profiles. | ||
|
||
If you need rebuild the toolchain image locally: | ||
|
||
```bash | ||
docker build \ | ||
-t vectorized/redpanda-toolchain \ | ||
-f tools/docker/Dockerfile \ | ||
. | ||
``` |