Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/somespecialone/deta-rust-builder
Rust builder image for Deta Space micro
https://github.com/somespecialone/deta-rust-builder
builder deta deta-space docker rust
Last synced: 2 months ago
JSON representation
Rust builder image for Deta Space micro
- Host: GitHub
- URL: https://github.com/somespecialone/deta-rust-builder
- Owner: somespecialone
- Created: 2023-11-05T14:16:11.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-01-03T16:56:05.000Z (about 1 year ago)
- Last Synced: 2024-07-30T18:04:57.612Z (6 months ago)
- Topics: builder, deta, deta-space, docker, rust
- Language: Dockerfile
- Homepage: https://hub.docker.com/r/somespecialone/deta-rust-builder
- Size: 6.84 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Deta Rust Builder
> [!NOTE]
> Image name is `somespecialone/deta-rust-builder`
>
> [Docker link](https://hub.docker.com/r/somespecialone/deta-rust-builder)## Why? 🤔
For now [Deta Space Micro](https://deta.space/docs/en/build/reference/runtime) runtime have installed `glibc 2.27`.
So for Rust applications to work on it, they need to be built on similar systems `(Ubuntu 18.04 glibc 2.27)`.
Building on `Deta Space` with its pipeline exceeds the timeout (also for now).
For this purpose, I create a docker image where such applications can be easily built.## How?
[Command](./build-app.sh) to run in application directory:
```sh
docker run --rm --name rustc --mount type=bind,source="$(pwd)",target=/app somespecialone/deta-rust-builder:latest cargo build --release
```For [Windows](./build-app.ps1) users
or [Docker engine version >=23](https://docs.docker.com/engine/reference/commandline/run/#volume):```sh
docker run --rm --name rustc --mount type=bind,source=.,target=/app somespecialone/deta-rust-builder:latest cargo build --release
```## Example usage
* [random-user-agent](https://github.com/somespecialone/random-user-agent/blob/6b705208b08d07c2626c38d6383ba6d5dc40492f/.github/workflows/deploy.yml#L21)