99 Commits

Author SHA1 Message Date
Jonathan Boulle a1d7eb8e9c *: move spec to new home
The appc spec has moved! Its new home is at https://github.com/appc/spec

This removes the spec (since it has already been migrated), and adds
placeholders linking to the new repo. It also updates rocket to
reference the spec repo _directly_ (i.e. NOT godepped). This means that
people will need to maintain the spec in their gopath for now when
building rocket.
2014-12-09 12:27:35 -08:00
Simone Gotti 7f6e0bf4d0 The tar Header.Name (for example with gnu tar) can start with ./ (for example ./app and
./rootfs/).
Use filepath.Clean and use the cleaned up name. This also makes the logic similar to
ValidateLayout().
2014-12-09 17:43:13 +01:00
Jonathan Boulle a8b5e5d747 appc: fix relative paths in app validator
strings.TrimPrefix was not correct since it resulted in different
behaviour depending on whether the directory passed had a trailing slash
or not (this meant for example that `actool validate foo/` would succeed
but `actool validate foo` would fail)
Go has a function for the correct behaviour in filepath.Rel, so use it.

Also small style updates to keep up with the recent
appmanifest+filesetmanifest --> ImageManifest change
2014-12-09 01:55:13 -08:00
Jonathan Boulle 110e2eb375 appc/ace: update name in validator 2014-12-09 00:35:54 -08:00
Jonathan Boulle bfa5048f24 *: AppImageManifest -> ImageManifest 2014-12-08 20:05:33 -08:00
Jonathan Boulle dc8d4a7061 *: numerous updates to match spec
Changes to schema:
- removing FilesetManifest
- update example manifest to match that in spec
- splitting out App into a dedicated type embedded in AppImageManifest

Changes to tools:
- update aci writer (no more filesets)
- update actool build (no more filesets)
- update actool validate (no more filesets)
- update ace validator to use new types
- update rocket stage0/stage1 to new schema
- update ace app manifests to new spec
- fix a bug in build_aci (double compressing aci)
2014-12-08 15:52:15 -08:00
Jonathan Boulle 537cb8bfcb appc/spec: minor cleanup 2014-12-08 15:00:04 -08:00
Jonathan Boulle b4138838b8 appc/spec: "app" -> "manifest" 2014-12-08 13:13:47 -08:00
Jonathan Boulle d0eb57eb7e appc/spec: path_whitelist -> pathWhitelist 2014-12-08 12:53:09 -08:00
Jonathan Boulle 898af06edf appc/spec: Collapse app and fileset manifests
This reworks the app image and fileset concepts to collapse them into a
single manifest, the App Image Manifest. The execution details are now
optional. It also describes a dependency retrieval/matching process
based on labels.
2014-12-08 12:50:23 -08:00
Jonathan Boulle eeef35369a appc/spec: various updates
- Add version/name/arch to metadata service explanation
- Remote obsolete metadata rationale
- Remove versions (e.g. "-1.0.0") from names
- Fix a few formatting issues (prefer line-per-sentence)
2014-12-07 21:00:46 -08:00
Jonathan Boulle 52c79a819e pkg/tarheader: support hard links when building tar headers
This introduces an inode "cache" that can be used when populating a tar
header (pkg/tarheader.Populate), so that any inodes already seen can be
linked to instead of inserting an entire copy of the file into the tar.
2014-12-06 18:44:26 -08:00
Vito Caputo d52fbcfe48 appc/actool: remove unnecessary execute bits actool build output
Group and other execute bits are inappropriate for the produced .aci and
embedded app manifest files
2014-12-04 16:03:32 -08:00
Jonathan Boulle 0526bd54f7 appc/spec: minor tweak to mountpoints 2014-12-04 11:22:51 -08:00
Jonathan Boulle 308ea1bc73 appc: remove remaining smartquotes in spec 2014-12-04 10:42:28 -08:00
Vivek Sekhar ece58036a2 Fix table formatting 2014-12-03 17:05:56 -08:00
Brandon Philips 9f4d3877ef app-container: remove smart quotes
Thanks to Eric who reported this to me over email.
2014-12-03 16:51:10 -08:00
Matt Boersma b8e507e25d tests: add travis-ci config and test script 2014-12-04 00:13:02 +00:00
Jonathan Boulle 22dd99b803 Merge pull request #181 from jonboulle/tests
*: fix up broken tests
2014-12-03 12:31:33 -08:00
Jonathan Boulle e0ddffc8e9 appc: add version to ace manifests 2014-12-02 18:50:44 -08:00
Jonathan Boulle 395dd46d28 appc/discovery: update test to new discovery 2014-12-02 18:37:27 -08:00
Jonathan Boulle 9b512f0660 appc/spec: address comments 2014-12-02 18:21:24 -08:00
Jonathan Boulle 195811dda2 appc/spec: make version a first-class required field 2014-12-02 16:05:34 -08:00
Jonathan Boulle da91902583 Merge pull request #176 from jonboulle/spec
appc/spec: clarify AC_APP_NAME
2014-12-02 15:56:31 -08:00
Robo 9d58e364cb spec: fix typo in app manifest.json 2014-12-03 02:26:33 +05:30
Jonathan Boulle 8a3449ab4b appc/spec: clarify AC_APP_NAME 2014-12-02 12:51:08 -08:00
Jonathan Boulle 8db0311fef Merge pull request #150 from jonboulle/raf
Remove deprecated "RAF" term
2014-12-02 11:11:00 -08:00
Jonathan Boulle da792aa80b Merge pull request #156 from jonboulle/actool
appc/actool: only print output on success if debug=true
2014-12-02 08:57:28 -08:00
Kelsey Hightower 5355a80eb1 Merge pull request #159 from deepak1556/spec_patch
fix typo in ac-discovery spec
2014-12-02 02:13:14 -08:00
Kelsey Hightower aeecc16f28 Merge pull request #133 from sthulb/patch-1
changes metadata IP as per #132
2014-12-02 02:10:59 -08:00
Kelsey Hightower 006cfa4e85 Merge pull request #113 from kelseyhightower/gzip-compress-aci-files
actool: gzip application container image
2014-12-02 02:07:50 -08:00
deepak1556 cbe36ce310 fix typo in ac-discovery spec 2014-12-02 09:25:27 +00:00
Simon Thulbourn 1d0c6cefcb Update SPEC.md 2014-12-02 07:44:26 +00:00
Jonathan Boulle 3eb32e8829 appc/actool: only print output on success if debug=true 2014-12-01 22:49:26 -08:00
Jonathan Boulle 5ce8534606 *: remove historical RAF references 2014-12-01 21:12:54 -08:00
azu 26d495953e appc: remove unnecessary bracket in README 2014-12-02 12:01:03 +09:00
Jonathan Boulle b6c66186a4 appc/spec: remove duplicated line 2014-12-01 17:28:39 -08:00
Jonathan Boulle 93e376a98a appc/spec: clarify authors annotation 2014-12-01 16:03:19 -08:00
Alan LaMielle 5ca4a009cc Update SPEC.md
Removes duplicate 'the' in logging section.
2014-12-01 15:11:43 -08:00
Simon Thulbourn dc254544d8 changes metadata IP as per #132 2014-12-01 22:00:10 +00:00
Mark Kropf e8bc94b2e3 fix json typos 2014-12-01 12:49:01 -08:00
Antoine Roy-Gobeil f93b164ea4 Fix small typo 2014-12-01 14:33:25 -05:00
Brandon Philips 8b4e457f3d Merge pull request #121 from philips/clarify-appc-fileset-files-list
app-container: update SPEC on filesets
2014-12-01 11:27:34 -08:00
sbevington e9e14cfe3e Simple typo fix. 2014-12-01 14:11:29 -05:00
Brandon Philips 2d941f1341 app-container: update SPEC on filesets
Originally we thought that this would be used for making correctly
hashed ACI reassembly possible but we realized that if you are storing
the on-disk ACI then you can also store the ordered list too; for later
verification against a key.
2014-12-01 10:47:58 -08:00
Alex Polvi a979504a6c appc: add some attribution 2014-12-01 09:21:25 -08:00
Kelsey Hightower d2cf4dbe0c actool: gzip application container image 2014-12-01 00:42:32 -08:00
Brandon Philips a03a63b609 actool: remove the fetch subcommand
This was never fleshed out so just remove it for now.
2014-12-01 01:41:40 -05:00
Brandon Philips 0ba928595b rkt: wire up discovery to fetch/run
This wires up image discovery to fetch and run. Now you can do something
like:

./bin/rkt -debug fetch users.developer.core-os.net/rocket/ace-validator-main
2014-12-01 01:41:23 -05:00
Brandon Philips 915af3346a app-container: rename _ to - in validator 2014-12-01 01:41:23 -05:00