Imported rkt-images into tenku

This commit is contained in:
gdm85 2015-09-26 10:02:51 +02:00
parent 93b96bc594
commit f5ddf1062e
5 changed files with 102 additions and 0 deletions

1
rkt/.gitignore vendored Normal file
View File

@ -0,0 +1 @@
nginx/nginx.aci

22
rkt/Makefile Normal file
View File

@ -0,0 +1,22 @@
## define here all recursively buildable targets
SUBDIRS := nginx
.PHONY := $(SUBDIRS) recurse clean get-tools
.DEFAULT_GOAL := recurse
RECURSE_TARGET ?= $(MAKECMDGOALS)
recurse:
@for D in $(SUBDIRS) ; do \
if [ -e $${D}/Makefile ]; then \
$(MAKE) -C "$${D}" $(RECURSE_TARGET) || exit $$? ; \
fi ; \
done
clean: ; @$(MAKE) RECURSE_TARGET=clean recurse
## disable entering/exiting messages
#.SILENT:
get-tools:
go get github.com/gdm85/deb2aci

28
rkt/README.md Normal file
View File

@ -0,0 +1,28 @@
rkt images
==========
This repository contains recipes for various [ACI](https://github.com/appc/spec/blob/master/spec/aci.md) images that can be used with [rkt](https://github.com/coreos/rkt).
<a rel="license" href="http://creativecommons.org/licenses/by-sa/2.0/"><img alt="Creative Commons License" style="border-width:0" src="http://i.creativecommons.org/l/by-sa/2.0/88x31.png" /></a><br />This work is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by-sa/2.0/">Creative Commons Attribution-ShareAlike 2.0 Generic License</a>.
Building
========
You will need [deb2aci](https://github.com/gdm85/deb2aci) to build these ACI images; you can fetch it automatically into your ``GOPATH`` with:
```
make get-tools
```
To build all images, run:
```
make
```
To build a specific image, for example ``nginx``, run:
```
make -C nginx
```
**DO NOT** run ``make nginx``, it would not build anything.
Each image subdirectory comes with a README.md for specific documentation and instructions.

13
rkt/nginx/Makefile Normal file
View File

@ -0,0 +1,13 @@
.DEFAULT_GOAL := all
.PHONY := all clean
## all necessary deb packages
DEBS := nginx
all: nginx.aci
nginx.aci:
deb2aci -pkg $(DEBS) -manifest build.manifest -image $@
clean:
rm -f nginx.aci

38
rkt/nginx/build.manifest Normal file
View File

@ -0,0 +1,38 @@
{
"acKind": "ImageManifest",
"acVersion": "0.6.1",
"name": "gdm85/rkt-images/nginx",
"app":{
"user": "65534",
"group": "65534",
"exec":[
"/usr/sbin/nginx"
],
"mountPoints": [
{
"name": "etc",
"path": "/etc/nginx",
"readOnly": true
},
{
"name": "www",
"path": "/var/www",
"readOnly": true
}
],
"ports": [
{
"name": "www",
"port": 80,
"protocol": "tcp",
"socketActivated": false
}
]
},
"annotations":[
{
"name":"authors",
"value":"gdm85 <gdm85@users.noreply.github.com>"
}
]
}