Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/a1ecbr0wn/cross-openssl

docker container for building stuff with openssl
https://github.com/a1ecbr0wn/cross-openssl

Last synced: about 1 month ago
JSON representation

docker container for building stuff with openssl

Awesome Lists containing this project

README

        

# cross-openssl Dockerfile

[![Docker Image CI](https://github.com/a1ecbr0wn/cross-openssl/actions/workflows/docker-image-main.yaml/badge.svg)](https://github.com/a1ecbr0wn/cross-openssl/actions/workflows/docker-image-main.yaml)

Dockerfile extension of [rustembedded/cross:*](https://github.com/cross-rs/cross/tree/main/docker) and libssl.

Published to Dockerhub as [alecbrown/cross-openssl](https://hub.docker.com/repository/docker/alecbrown/cross-openssl).

To use this with cross for your rust builds, create a `Cross.toml` file in the base of your project and add the following entries for the platforms you require:

``` toml
[target.x86_64-unknown-linux-gnu]
image = "alecbrown/cross-openssl:x86_64-unknown-linux-gnu"

[target.armv7-unknown-linux-gnueabihf]
image = "alecbrown/cross-openssl:armv7-unknown-linux-gnueabihf"

[target.aarch64-unknown-linux-gnu]
image = "alecbrown/cross-openssl:aarch64-unknown-linux-gnu"
```

To run this Docker directly, run:

- intel linux:

``` bash
docker run -it alecbrown/cross-openssl:x86_64-unknown-linux-gnu
```

- raspberry pi 1, 2 & 3

``` bash
docker run -it alecbrown/cross-openssl:armv7-unknown-linux-gnueabihf
```

- raspberry pi 4

``` bash
docker run -it alecbrown/cross-openssl:aarch64-unknown-linux-gnu
```

- Multiarch build example

``` bash
docker buildx build -t alecbrown/cross-openssl:armv7-unknown-linux-gnueabihf -f Dockerfile.armv7-unknown-linux-gnueabihf --platform linux/arm64/v8,linux/arm/v7,linux/amd64 --push .
```