mirror of
https://github.com/Lakr233/GitLab-License-Generator.git
synced 2026-01-30 11:55:35 +02:00
feat: added build image method
This commit is contained in:
18
README.md
18
README.md
@@ -37,6 +37,8 @@ Features are extracted from an object filled with constants. The most comprehens
|
|||||||
Using this method license files are generated under `./license` directory
|
Using this method license files are generated under `./license` directory
|
||||||
> Please note that in standard docker installations, owner of the files generated in license directory will be root
|
> Please note that in standard docker installations, owner of the files generated in license directory will be root
|
||||||
|
|
||||||
|
#### Method (1): Pull image
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
docker run --rm -it \
|
docker run --rm -it \
|
||||||
-v "./license:/license-generator/build" \
|
-v "./license:/license-generator/build" \
|
||||||
@@ -49,6 +51,22 @@ docker run --rm -it \
|
|||||||
ghcr.io/lakr233/gitlab-license-generator:main
|
ghcr.io/lakr233/gitlab-license-generator:main
|
||||||
```
|
```
|
||||||
|
|
||||||
|
#### Method (2): Build image
|
||||||
|
|
||||||
|
```bash
|
||||||
|
git clone https://github.com/Lakr233/GitLab-License-Generator.git
|
||||||
|
docker build GitLab-License-Generator -t gitlab-license-generator:main
|
||||||
|
docker run --rm -it \
|
||||||
|
-v "./license:/license-generator/build" \
|
||||||
|
-e LICENSE_NAME="Tim Cook" \
|
||||||
|
-e LICENSE_COMPANY="Apple Computer, Inc." \
|
||||||
|
-e LICENSE_EMAIL="tcook@apple.com" \
|
||||||
|
-e LICENSE_PLAN="ultimate" \
|
||||||
|
-e LICENSE_USER_COUNT="2147483647" \
|
||||||
|
-e LICENSE_EXPIRE_YEAR="2500" \
|
||||||
|
gitlab-license-generator:main
|
||||||
|
```
|
||||||
|
|
||||||
### Manual: Prerequisites
|
### Manual: Prerequisites
|
||||||
|
|
||||||
Before starting, ensure your environment is properly configured.
|
Before starting, ensure your environment is properly configured.
|
||||||
|
|||||||
Reference in New Issue
Block a user