Files
Docker-Chevereto/docs/BUILDING.md

53 lines
1.3 KiB
Markdown
Raw Normal View History

2022-04-02 19:59:46 -03:00
# Build
2021-06-27 13:14:27 -04:00
2022-10-18 10:13:49 -03:00
## Make image
2022-09-08 13:40:50 -04:00
2024-02-09 11:46:51 -03:00
This command creates the Docker image for Chevereto by downloading the software at `./chevereto` and then build from [Dockerfile](../Dockerfile). It will generate multiple semantic version tags `4.0.0`, `4.0` and `4`.
2021-06-27 13:14:27 -04:00
2022-04-02 19:59:46 -03:00
```sh
make image <options>
```
2021-08-03 12:41:26 -04:00
2022-11-28 19:18:32 -03:00
### Options
2021-08-03 12:41:26 -04:00
2023-12-13 09:21:10 -03:00
| Option | Example | Description |
| ------- | ---------------- | ---------------------------- |
| VERSION | `VERSION=4.0` | System version (4.x) |
| EDITION | `EDITION=pro` | System edition (pro,free) |
| TARGET | `TARGET=default` | Image base name suffix (any) |
2022-09-08 13:40:50 -04:00
2022-10-07 13:40:09 -03:00
Example:
```sh
2022-11-12 18:22:28 -03:00
make image VERSION=4.0
2022-10-07 13:40:09 -03:00
```
2022-11-28 19:18:32 -03:00
### Notes on TARGET
2022-11-12 18:22:28 -03:00
Images will have a tag named following this convention:
2022-10-18 10:13:49 -03:00
2022-11-17 13:51:40 -03:00
| Target | Naming | Example |
| ------- | --------------------- | ----------------- |
| default | chevereto:VERSION | chevereto:4.0 |
| dev | chevereto-dev:VERSION | chevereto-dev:4.0 |
2022-11-28 19:18:32 -03:00
| any | chevereto-any:VERSION | chevereto-any:4.0 |
2022-10-18 10:13:49 -03:00
2022-11-12 18:22:28 -03:00
## Make custom images
2022-09-08 13:40:50 -04:00
2022-11-12 18:22:28 -03:00
This command creates the Docker image for Chevereto copying the contents from `./chevereto` and then build from [Dockerfile](../Dockerfile).
2022-09-08 13:40:50 -04:00
```sh
make image-custom <options>
```
Available options:
* VERSION=4.0
2022-11-17 13:51:40 -03:00
* TARGET=default
2021-08-03 12:41:26 -04:00
2022-10-07 13:40:09 -03:00
Example:
```sh
2022-11-12 18:22:28 -03:00
make image-custom VERSION=4.0
2022-10-07 13:40:09 -03:00
```