Skip to content

Commit 36109ad

Browse files
committed
Add doc for using pkger during development
1 parent dcf2166 commit 36109ad

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

README.md

+31
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,34 @@
33
```
44
pkger -r RELEASE.2021-01-08T19-38-39Z
55
```
6+
7+
## Packaging minio during development (for testing, etc)
8+
9+
1. First install pkger so it is available in PATH.
10+
11+
2. Prepare the release directory, `dist` below:
12+
13+
```shell
14+
mkdir -p ./dist/linux-amd64
15+
16+
# REPLACE THE TIMESTAMP AND THE GIT TAG!
17+
VERSION=RELEASE.2025-03-12T00-00-00Z.debug.GIT_TAG
18+
19+
# Move the binary to the dist directory
20+
mv ./minio ./dist/linux-amd64/minio.$VERSION
21+
```
22+
23+
3. Ensure minio.service exists:
24+
25+
```
26+
wget -O minio.service "https://raw.githubusercontent.com/minio/minio-service/refs/heads/master/linux-systemd/minio.service"
27+
```
28+
29+
4. Run pkger:
30+
31+
```shell
32+
# Now run pkger.
33+
pkger -r $VERSION --appName minio --ignore --releaseDir=dist
34+
```
35+
36+
5. `./dist will contain the packaged files (rpm, deb, etc).

0 commit comments

Comments
 (0)