mirror of
https://github.com/jesseduffield/lazydocker.git
synced 2026-07-25 08:31:03 +00:00
Detailed development Docker build in readme with all build args
This commit is contained in:
parent
20f4ad8e49
commit
767488a5e7
1 changed files with 11 additions and 3 deletions
14
README.md
14
README.md
|
|
@ -60,8 +60,6 @@ go get github.com/jesseduffield/lazydocker
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
docker build -t lazydocker https://github.com/jesseduffield/lazydocker.git
|
docker build -t lazydocker https://github.com/jesseduffield/lazydocker.git
|
||||||
# or locally within the repository:
|
|
||||||
docker build -t lazydocker .
|
|
||||||
```
|
```
|
||||||
|
|
||||||
- If you have a ARM 32 bit v6 architecture
|
- If you have a ARM 32 bit v6 architecture
|
||||||
|
|
@ -93,7 +91,17 @@ go get github.com/jesseduffield/lazydocker
|
||||||
https://github.com/jesseduffield/lazydocker.git
|
https://github.com/jesseduffield/lazydocker.git
|
||||||
```
|
```
|
||||||
|
|
||||||
You can also add `--build-arg VCS_REF=$(git rev-parse HEAD)` so that the go build and the container contain the commit used.
|
- For development:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
git clone https://github.com/jesseduffield/lazydocker.git
|
||||||
|
cd lazydocker
|
||||||
|
docker build -t lazydocker \
|
||||||
|
--build-arg BUILD_DATE=`date -u +"%Y-%m-%dT%H:%M:%SZ"` \
|
||||||
|
--build-arg VCS_REF=`git rev-parse --short HEAD` \
|
||||||
|
--build-arg VERSION=`git describe --abbrev=0 --tag` \
|
||||||
|
.
|
||||||
|
```
|
||||||
|
|
||||||
</p></details>
|
</p></details>
|
||||||
1. Run it
|
1. Run it
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue