Add packagin instructions
This commit is contained in:
parent
dce2bb2a81
commit
6328b54a8b
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,2 +1,3 @@
|
|||||||
.baseline
|
.baseline
|
||||||
compile
|
compile
|
||||||
|
*.deb
|
||||||
|
16
Makefile
Normal file
16
Makefile
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
SHELL:=/bin/bash
|
||||||
|
|
||||||
|
VERSION=0.0.1
|
||||||
|
|
||||||
|
deb: clean
|
||||||
|
fpm -s dir -t deb -n kickstart \
|
||||||
|
-x usr/local/share/kickstart/.baseline \
|
||||||
|
-x usr/local/share/kickstart/.git \
|
||||||
|
-x usr/local/share/kickstart/kickstart/compile \
|
||||||
|
-v $(VERSION) \
|
||||||
|
--after-install <(echo "ln -s /usr/local/share/kickstart/bin/kickstart /usr/local/bin/kickstart") \
|
||||||
|
--after-remove <(echo "$(RM) /usr/local/bin/kickstart") \
|
||||||
|
.=/usr/local/share/kickstart
|
||||||
|
|
||||||
|
clean:
|
||||||
|
rm *.deb 2>/dev/null || true
|
@ -184,5 +184,14 @@ Docker images tested:
|
|||||||
* [moul/sshd](https://index.docker.io/u/moul/sshd/)
|
* [moul/sshd](https://index.docker.io/u/moul/sshd/)
|
||||||
* [bltavares/centos-ssh](https://index.docker.io/u/bltavares/centos-ssh/)
|
* [bltavares/centos-ssh](https://index.docker.io/u/bltavares/centos-ssh/)
|
||||||
|
|
||||||
|
### Packaging
|
||||||
|
|
||||||
|
#### .deb
|
||||||
|
You need to have make and fpm installed.
|
||||||
|
|
||||||
|
```bash
|
||||||
|
make deb
|
||||||
|
```
|
||||||
|
|
||||||
### Thanks
|
### Thanks
|
||||||
This project was inspired on [sunzi](https://github.com/kenn/sunzi)
|
This project was inspired on [sunzi](https://github.com/kenn/sunzi)
|
||||||
|
Loading…
Reference in New Issue
Block a user