https://github.com/cscfi/docker-emscripten-crypt4gh
Docker image for compiling crypt4gh applications built with emscripten into wasm
https://github.com/cscfi/docker-emscripten-crypt4gh
crypt4gh docker docker-image emscripten emscripten-sdk libsodium openssl webassembly
Last synced: over 1 year ago
JSON representation
Docker image for compiling crypt4gh applications built with emscripten into wasm
- Host: GitHub
- URL: https://github.com/cscfi/docker-emscripten-crypt4gh
- Owner: CSCfi
- License: mit
- Created: 2023-02-03T10:50:45.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-08-12T05:55:35.000Z (almost 2 years ago)
- Last Synced: 2025-01-07T12:23:54.153Z (over 1 year ago)
- Topics: crypt4gh, docker, docker-image, emscripten, emscripten-sdk, libsodium, openssl, webassembly
- Language: Dockerfile
- Homepage:
- Size: 43 KB
- Stars: 1
- Watchers: 4
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Emscripten docker image for compiling crypt4gh applications
This implementation was extracted from [swift-browser-ui](https://github.com/CSCfi/swift-browser-ui/blob/e1b2525be8a5b779dca524378746637e9bfab4ee/devproxy/Dockerfile-emsdk-deps).
This container makes it easy to compile `crypt4gh` applications built with `emscripten` into `wasm` without installing dependencies locally.
## Stack
The provided docker image is an extension of [emscripten/emsdk](https://hub.docker.com/r/emscripten/emsdk/tags) official docker image.
Included libraries
- [libsodium](https://libsodium.org)
- [openssl](https://www.openssl.org)
- [libcrypt4gh](https://github.com/CSCfi/libcrypt4gh)
- [libcrypt4gh-keys](https://github.com/CSCfi/libcrypt4gh-keys)
## How to use this container
Build the image with
docker buildx build .
or download it
docker pull ghcr.io/cscfi/docker-emscripten-crypt4gh:latest
Build your application
docker run --rm -it --mount type=bind,source=${YOUR_APPLICATION_SOURCE_CODE},target=/src/ ghcr.io/cscfi/docker-emscripten-crypt4gh:latest YOUR-MAKEFILE-COMMAND-HERE
## Extras
You can provide argument variables to change which library versions get built.
`emscripten`, `libsodium`, and `openssl` versions can be changed with `--build-arg` by changing the value of `EMSCRIPTEN_VERSION`, `LIBSODIUM_VERSION`, `EMSDK_IMAGE` and `OPENSSL_VERSION`.
>__NOTE:__ To build only ARM images use -arm in version tag and for ARM built images. For example `EMSDK_IMAGE --build-arg="EMSDK_IMAGE=/emscripten/emsdk" --build-arg="EMSCRIPTEN_VERSION=3.1.21-arm"` instructs to use locally build emsdk:3.1.21-arm container.
# License
`docker-emscripten-crypt4gh` and its sources are released under MIT License.