Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/andrewn6/forge
a small server that takes a github repo/local path and builds it using nixpacks
https://github.com/andrewn6/forge
Last synced: 6 days ago
JSON representation
a small server that takes a github repo/local path and builds it using nixpacks
- Host: GitHub
- URL: https://github.com/andrewn6/forge
- Owner: andrewn6
- Created: 2023-08-19T18:27:10.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-09-06T23:31:25.000Z (over 1 year ago)
- Last Synced: 2024-12-31T07:44:24.943Z (8 days ago)
- Language: Rust
- Size: 41 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Forge
Small service that uses [https://nixpacks.com](Nixpacks) to create docker images from git repositories or local paths.
## gettin started 🦀
make sure you have rust and docker installed on ur system
and create a .env file, copy the values from .env.example and fill those in.
now you can build & run the project like this `cargo b` `cargo run`
you should be able to access the server at localhost:8084, and it should show a basic html page.
### trigger an image build
```
{
"path": "https://github.com/username/repo.git",
"name": "image-name",
"envs": ["ENV_VAR1=value", "ENV_VAR2=value"],
"build_options": {
"print_dockerfile": false,
"tags": ["v1.0", "latest"],
"labels": [],
"quiet": false,
"no_cache": false,
"inline_cache": false,
"platform": ["linux/amd64"],
"current_dir": false,
"no_error_without_start": false,
"verbose": false
}
}
```### Logs Retrieval
To retrieve logs for a specific container, send a GET request to /logs with the following query parameters:```
container_id: The ID of the container for which you want to retrieve logs.
start_time: The start time of the log collection period in RFC3339 format.
end_time: The end time of the log collection period in RFC3339 format.
```