Skip to content

Docker image to build Rust plugins for either aarch64 or x86_64.

Notifications You must be signed in to change notification settings

Cliffback/rust-plugin-builder-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 

Repository files navigation

rust-plugin-builder-docker

Docker image to build Rust plugins for either aarch64 or x86_64.

This was created to get Rust plugin binaries for use in prebuilt Docker containers depending on external binaries when run on non-linux systems, in my case macOS. I needed linux binaries, and could only find the source for the binaries I needed, so I created this Dockerfile to compile the binaries I needed.

Usage

Run the following commands to build the image for your target architecture, and the cargo plugins you want.

docker build --target x86_64 --build-arg PLUGINS="plugin1 plugin2" -t cargoimage .

Run the container to get access to the binaries.

docker run --name cargocontainer cargoimage

Copy the binaries to your host machine.

docker cp cargocontainer:/workspace/binaries ~/.tmp/cargo

Remove the container and image.

docker rm cargocontainer && docker rmi cargoimage

About

Docker image to build Rust plugins for either aarch64 or x86_64.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published