From ba60714ab7954f2faa5f63405ea40fbc24f65246 Mon Sep 17 00:00:00 2001 From: FMotalleb Date: Thu, 31 Oct 2024 14:33:14 +0330 Subject: [PATCH] feat: added build image method --- README.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/README.md b/README.md index 90aa238..c9d9749 100644 --- a/README.md +++ b/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 > Please note that in standard docker installations, owner of the files generated in license directory will be root +#### Method (1): Pull image + ```bash docker run --rm -it \ -v "./license:/license-generator/build" \ @@ -49,6 +51,22 @@ docker run --rm -it \ 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 Before starting, ensure your environment is properly configured.