Add packagin instructions

This commit is contained in:
Bruno Tavares 2014-03-07 00:34:30 -03:00
parent dce2bb2a81
commit 6328b54a8b
3 changed files with 26 additions and 0 deletions

1
.gitignore vendored
View File

@ -1,2 +1,3 @@
.baseline .baseline
compile compile
*.deb

16
Makefile Normal file
View 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

View File

@ -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)