Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/letiemble/docker-berp
Docker image to execute the BERP parser
https://github.com/letiemble/docker-berp
Last synced: 26 days ago
JSON representation
Docker image to execute the BERP parser
- Host: GitHub
- URL: https://github.com/letiemble/docker-berp
- Owner: letiemble
- License: gpl-3.0
- Created: 2023-10-08T08:25:20.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-05-25T08:01:38.000Z (7 months ago)
- Last Synced: 2024-10-14T23:23:26.241Z (2 months ago)
- Language: Dockerfile
- Size: 19.5 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# BERP Docker Image
A Docker image to execute the BERP parser inside a container without needing to install a [.NET runtime][dotnet] and the [BERP parser][berp] on your machine.
## Usage
To use the image, run the following command:
```bash
docker run --rm -it \
-v $(pwd):/app \
-e "GRAMMAR_FILE=grammar.berp" \
-e "TEMPLATE_FILE=template.razor" \
-e "OUTPUT_FILE=output.cs" \
letiemble/berp:1.4.0
```The `/app` volume is used as the base mount point for the container.
The `GRAMMAR_FILE`, `TEMPLATE_FILE` and `OUTPUT_FILE` environment variables are used to set the paths to the grammar file, the template file and the output file respectively, relative to the base mount point.## Build
To build the image, run the following command:
```bash
docker buildx build -t letiemble/berp:1.4.0 .
```To build the multi-architecture image, run the following command:
```bash
docker buildx create --name BUILDER --use
docker buildx build --platform linux/amd64,linux/arm64 -t letiemble/berp:1.4.0 --push .
docker buildx rm BUILDER
```[berp]: https://github.com/gasparnagy/berp
[dotnet]: https://dotnet.microsoft.com/download