Commit graph

1149 commits

Author SHA1 Message Date
Jonathan Yu
1a296ecf35 Build with "tip" version of Golang
This will give us early warning of changes in upstream Golang that
may affect us.

Signed-off-by: Jonathan Yu <jawnsy@redhat.com>
2016-09-28 13:11:41 -07:00
Mrunal Patel
5490399a5e Merge pull request #73 from jawnsy/topics/travis-remove-redundant-steps
(WIP) Remove redundant build steps
2016-09-28 13:04:38 -07:00
Antonio Murdaca
17ae9d5d01 Merge pull request #72 from mrunalp/ctr_remove_stop
Stop container first if it is running on RemoveContainer
2016-09-28 22:03:57 +02:00
Jonathan Yu
9bd9a33ca4 Remove redundant build steps
`make install.tools` already installs `gometalinter` (as can be seen in
the logs), so the subsequent `go get` steps are unnecessary.

This change also reorders the build directives according to execution
order: https://docs.travis-ci.com/user/customizing-the-build#The-Build-Lifecycle
and replaces the "before_install" step with an override of the default
"install" procedure (which we were suppressing anyway with install: true)

Signed-off-by: Jonathan Yu <jawnsy@redhat.com>
2016-09-28 12:57:20 -07:00
Mrunal Patel
52ff9e46dc Add a test for ctr remove
Signed-off-by: Mrunal Patel <mrunalp@gmail.com>
2016-09-28 12:54:57 -07:00
Antonio Murdaca
8d445fc4ca Merge pull request #71 from mrunalp/remove_sleep
Remove unnecessary sleep from tests
2016-09-28 21:27:58 +02:00
Mrunal Patel
72ac4fe33e Stop container first if it is running on RemoveContainer
Signed-off-by: Mrunal Patel <mrunalp@gmail.com>
2016-09-28 12:24:12 -07:00
Mrunal Patel
189b642908 Remove unnecessary sleep from tests
Signed-off-by: Mrunal Patel <mrunalp@gmail.com>
2016-09-28 12:16:10 -07:00
Antonio Murdaca
7e2460ad73 Merge pull request #70 from runcom/gometalinter
Makefile: suggests install.tools
2016-09-28 21:02:31 +02:00
Antonio Murdaca
741873adbe
Makefile: suggests install.tools
Signed-off-by: Antonio Murdaca <runcom@redhat.com>
2016-09-28 20:53:29 +02:00
Antonio Murdaca
f46888f429 Merge pull request #66 from mrunalp/make_install
[make] Add install and uninstall targets
2016-09-28 19:24:09 +02:00
Mrunal Patel
db203c5f42 [make] Add install and uninstall targets
Signed-off-by: Mrunal Patel <mrunalp@gmail.com>
2016-09-28 10:08:56 -07:00
Antonio Murdaca
4f80ffd1a2 Merge pull request #65 from mrunalp/ctr_list
List containers
2016-09-28 08:49:18 +02:00
Mrunal Patel
953f2e9f3b Add client impl for listing containers
Signed-off-by: Mrunal Patel <mrunalp@gmail.com>
2016-09-27 15:17:56 -07:00
Mrunal Patel
e47189c148 Add server impl for listing containers
Signed-off-by: Mrunal Patel <mrunalp@gmail.com>
2016-09-27 15:17:41 -07:00
Antonio Murdaca
11e675cb9d Merge pull request #64 from mrunalp/rename_readme
Rename OCID to cri-o in the README
2016-09-27 21:27:03 +02:00
Mrunal Patel
2378800c9d Rename OCID to cri-o in the README
Signed-off-by: Mrunal Patel <mrunalp@gmail.com>
2016-09-27 12:16:40 -07:00
Antonio Murdaca
a56aa11aa8 Merge pull request #63 from mrunalp/fix_ctr_stop
Fix ctr stop
2016-09-27 21:01:48 +02:00
Mrunal Patel
fd91998ef3 Fix the test by removing sleep and ensuring cleanup
Signed-off-by: Mrunal Patel <mrunalp@gmail.com>
2016-09-27 11:46:16 -07:00
Mrunal Patel
89c051f81f Make sure that the container stops when StopContainer API is called
Signed-off-by: Mrunal Patel <mrunalp@gmail.com>
2016-09-27 11:46:05 -07:00
Mrunal Patel
03d989da4f Update vendors to inclue golang.org/x/sys
Signed-off-by: Mrunal Patel <mrunalp@gmail.com>
2016-09-27 11:34:45 -07:00
Mrunal Patel
6d3531c19e Merge pull request #62 from runcom/fix-travis-badge
README.md: fix Travis badge
2016-09-27 09:42:39 -07:00
Antonio Murdaca
36ce622ab1
README.md: fix Travis badge
Signed-off-by: Antonio Murdaca <runcom@redhat.com>
2016-09-27 18:31:43 +02:00
Mrunal Patel
ba232900fc Merge pull request #61 from runcom/tests
Various fixes + add pod tests
2016-09-27 08:36:50 -07:00
Antonio Murdaca
77c40487de
test: suggests sudo make localintegration
Signed-off-by: Antonio Murdaca <runcom@redhat.com>
2016-09-27 14:23:07 +02:00
Antonio Murdaca
560b0a6a9b
Makefile: pass $TRAVIS env to tests
Signed-off-by: Antonio Murdaca <runcom@redhat.com>
2016-09-27 10:51:35 +02:00
Antonio Murdaca
22cd20e705
test: fix readme and sleep just 1
Signed-off-by: Antonio Murdaca <runcom@redhat.com>
2016-09-27 10:46:50 +02:00
Antonio Murdaca
ab8b65b09e
test: cleanup pods at test teardown
Signed-off-by: Antonio Murdaca <runcom@redhat.com>
2016-09-27 10:46:50 +02:00
Antonio Murdaca
4578cc93d1
server: fix panic when listing sandboxes
Signed-off-by: Antonio Murdaca <runcom@redhat.com>
2016-09-27 10:46:45 +02:00
Antonio Murdaca
56f2b34def
cmd/client: lowercase error
Signed-off-by: Antonio Murdaca <runcom@redhat.com>
2016-09-27 10:43:11 +02:00
Antonio Murdaca
5a922dbdf6
Makefile: fix .gitvalidation
Signed-off-by: Antonio Murdaca <runcom@redhat.com>
2016-09-27 10:43:06 +02:00
Antonio Murdaca
3ddf3f21c1
test: fix and add tests
Signed-off-by: Antonio Murdaca <runcom@redhat.com>
2016-09-27 10:42:53 +02:00
Antonio Murdaca
f7d3f7a69a Merge pull request #59 from mrunalp/pod_create_bug
Pod create bug
2016-09-27 09:13:40 +02:00
Antonio Murdaca
fe774f82b1 Merge pull request #57 from mrunalp/pod_name_param
Allow overriding name in a pod sandbox config file
2016-09-27 07:52:19 +02:00
Antonio Murdaca
df2eebbbcd Merge pull request #58 from mrunalp/sb_short_id
Pod short ID
2016-09-27 07:51:54 +02:00
Antonio Murdaca
7f2dfbaf8f Merge pull request #60 from mrunalp/rename_fix_build
Fix the build for ocid to cri-o rename
2016-09-27 07:50:17 +02:00
Mrunal Patel
4606f2a61a Fix the build for ocid to cri-o rename
Signed-off-by: Mrunal Patel <mrunalp@gmail.com>
2016-09-26 16:55:12 -07:00
Mrunal Patel
3245810bd6 Release pod name when pod is removed
Signed-off-by: Mrunal Patel <mrunalp@gmail.com>
2016-09-26 15:42:08 -07:00
Mrunal Patel
78aae688e2 Add API to release Pod name when not required
Signed-off-by: Mrunal Patel <mrunalp@gmail.com>
2016-09-26 15:41:58 -07:00
Mrunal Patel
e1b8802848 Fix typo 2016-09-26 15:31:06 -07:00
Mrunal Patel
833333538e Allow specifying short pod IDs for container create
Signed-off-by: Mrunal Patel <mrunalp@gmail.com>
2016-09-26 15:24:33 -07:00
Mrunal Patel
2e387072ac Allow specifying pod IDs by unique prefixes
Signed-off-by: Mrunal Patel <mrunalp@gmail.com>
2016-09-26 15:24:23 -07:00
Mrunal Patel
6d5fb53675 Allow overriding name in a pod sandbox config file
This makes it easier to test creation of multiple pods
from the same config.json file.

Signed-off-by: Mrunal Patel <mrunalp@gmail.com>
2016-09-26 14:50:34 -07:00
Antonio Murdaca
cb4234b020 Merge pull request #56 from mrunalp/list_pods
List pods
2016-09-26 21:53:45 +02:00
Mrunal Patel
fd3691a0e3 Add client impl for listing pod sandboxes
Signed-off-by: Mrunal Patel <mrunalp@gmail.com>
2016-09-26 12:46:00 -07:00
Mrunal Patel
ecda01c284 Add server impl of list pod sandboxes
Signed-off-by: Mrunal Patel <mrunalp@gmail.com>
2016-09-26 12:45:53 -07:00
Mrunal Patel
7c9aaf34cd Introduce consts for containers states
Signed-off-by: Mrunal Patel <mrunalp@gmail.com>
2016-09-26 12:44:24 -07:00
Antonio Murdaca
e548ec17a7 Merge pull request #55 from mrunalp/status_pod
Populate state in pod status
2016-09-26 20:38:40 +02:00
Mrunal Patel
bdce43971f Improve pod status output formatting
Signed-off-by: Mrunal Patel <mrunalp@gmail.com>
2016-09-26 11:28:03 -07:00
Mrunal Patel
204b2a645b Populate state in pod status
Signed-off-by: Mrunal Patel <mrunalp@gmail.com>
2016-09-26 11:18:35 -07:00