Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/a1ecbr0wn/cross-openssl
- Owner: a1ecbr0wn
- License: apache-2.0
- Created: 2022-04-26T21:39:26.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-06-10T17:03:46.000Z (over 2 years ago)
- Last Synced: 2023-03-06T17:11:30.064Z (over 1 year ago)
- Language: Shell
- Size: 14.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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 .
```