Matthew Heon
19840e0b3d
Finish unit tests for pods
...
Signed-off-by: Matthew Heon <matthew.heon@gmail.com>
Closes : #268
Approved by: rhatdan
2018-02-09 15:01:34 +00:00
Matthew Heon
cb28a1d284
Fix bugs identified by unit tests
...
Signed-off-by: Matthew Heon <matthew.heon@gmail.com>
Closes : #268
Approved by: rhatdan
2018-02-09 15:01:34 +00:00
Matthew Heon
4bc9a6d633
HACK: monkey-patch gosqlite3 to rollback unconditionally after tx error
...
Signed-off-by: Matthew Heon <matthew.heon@gmail.com>
Closes : #268
Approved by: rhatdan
2018-02-09 15:01:34 +00:00
Matthew Heon
4ecebf20b4
Rework state tests to avoid boilerplate. Begin adding pod tests.
...
Signed-off-by: Matthew Heon <matthew.heon@gmail.com>
Closes : #268
Approved by: rhatdan
2018-02-09 15:01:34 +00:00
Matthew Heon
0920e8de5a
Unify Pod and Container ID and Name registries for in-memory state
...
Signed-off-by: Matthew Heon <matthew.heon@gmail.com>
Closes : #268
Approved by: rhatdan
2018-02-09 15:01:34 +00:00
Matthew Heon
044139dca9
Remove read-only from DB, it's in the spec
...
Don't need to store it separately
Signed-off-by: Matthew Heon <matthew.heon@gmail.com>
Closes : #268
Approved by: rhatdan
2018-02-09 15:01:34 +00:00
Matthew Heon
6b7b4b03a8
Add pod removal code
...
Signed-off-by: Matthew Heon <matthew.heon@gmail.com>
Closes : #268
Approved by: rhatdan
2018-02-09 15:01:34 +00:00
Matthew Heon
cfd6da22df
Implement pod operations in SQL state
...
Signed-off-by: Matthew Heon <matthew.heon@gmail.com>
Closes : #268
Approved by: rhatdan
2018-02-09 15:01:34 +00:00
Matthew Heon
6214be07c2
Tear out pod containers map. Instead rely on state
...
This ensures that there is only one canonical place where
containers in a pod are stored, in the state itself.
Signed-off-by: Matthew Heon <matthew.heon@gmail.com>
Closes : #268
Approved by: rhatdan
2018-02-09 15:01:34 +00:00
TomSweeneyRedHat
bf981fc873
Update pause tests per QE suggestions and move to gingko
...
Signed-off-by: TomSweeneyRedHat <tsweeney@redhat.com>
Closes : #285
Approved by: mheon
2018-02-08 22:14:36 +00:00
TomSweeneyRedHat
9e3a5da69d
Add some global options to build
...
Signed-off-by: TomSweeneyRedHat <tsweeney@redhat.com>
Closes : #312
Approved by: mheon
2018-02-08 20:17:17 +00:00
Brent Baude
250ec9adc2
Merge pull request #316 from baude/copr3
...
Spec file changes for COPR
2018-02-08 13:53:45 -06:00
baude
401953ed82
Spec file changes for COPR
...
COPR needed slight tweaks to our spec file.
Signed-off-by: baude <bbaude@redhat.com>
2018-02-08 13:52:41 -06:00
Brent Baude
7ef886fe34
Merge pull request #315 from baude/copr2
...
COPR setup
2018-02-08 13:40:03 -06:00
baude
7092d2d40d
COPR setup
...
Changing the spec file location and adding a COPR Makefile
so the package can get a dynamic name.
Signed-off-by: baude <bbaude@redhat.com>
2018-02-08 13:38:41 -06:00
Matthew Heon
851bdc3251
Merge pull request #314 from baude/ginkgo_last
...
Final ginkgo migration
2018-02-08 14:19:58 -05:00
baude
c089cb9c92
Final ginkgo migration
...
Completion of the migration from bats to ginkgo. This includes:
* load
* mount
* pause
* port
* run_networking
* search
Note: build will be done within a different PR
Signed-off-by: baude <bbaude@redhat.com>
2018-02-08 12:37:07 -06:00
Matthew Heon
5529143877
Merge pull request #302 from rhatdan/cleanup
...
cleanup network stack as well as storage when container shuts down.
2018-02-08 13:35:43 -05:00
Matthew Heon
2a58bdc89d
Merge pull request #311 from baude/updateTutorial
...
docs/tutorials/podman_tutorial.md
2018-02-08 13:12:25 -05:00
Daniel J Walsh
3921f10a72
cleanup network stack as well as storage when container shuts down.
...
This patch will cleanup the network stack when the container exits
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2018-02-08 06:42:21 -05:00
Lokesh Mandvekar
8fdccb7764
remove shebang from bash completion
...
shebang presence causes rpmlint error:
"non-executable-script
/usr/share/bash-completion/completions/podman 644 /bin/bash"
completions aren't executable in themselves so there's no need for
a shebang there.
Signed-off-by: Lokesh Mandvekar <lsm5@fedoraproject.org>
Closes : #313
Approved by: rhatdan
2018-02-08 11:25:37 +00:00
Matthew Heon
e47c2e390a
Merge pull request #293 from rhatdan/sd_notify
...
Need to add LISTEN_PID environment variable to conmon command
2018-02-07 18:59:50 -05:00
Daniel J Walsh
dd9ecc7a23
Merge pull request #290 from umohnani8/templates
...
Fix when the --format flag prints a new line at the end
2018-02-07 16:50:23 -05:00
Daniel J Walsh
c40888cf9f
Merge pull request #300 from baude/ginkgo_version
...
More ginkgo migration
2018-02-07 16:49:56 -05:00
Brent Baude
5e8fcbcd29
Merge pull request #310 from baude/copr
...
Add the spec file to podman
2018-02-07 15:13:49 -06:00
Daniel J Walsh
11eb18cec6
Merge pull request #309 from mheon/pause_state_error
...
Change pause so only running containers are valid
2018-02-07 16:07:46 -05:00
baude
4cfd0f50fb
docs/tutorials/podman_tutorial.md
...
Update now that more of the podman commands are working
correctly, esp top and friends.
Signed-off-by: baude <bbaude@redhat.com>
2018-02-07 15:07:31 -06:00
baude
d26023e4a8
More ginkgo migration
...
* attach
* run_exit
* save
* tag
* version
* run_privileged -> privileged
Signed-off-by: baude <bbaude@redhat.com>
2018-02-07 14:55:20 -06:00
baude
590084d0bd
Add the spec file to podman
...
Taking the fedora spec file and adding it to the git repo
for copr
Signed-off-by: baude <bbaude@redhat.com>
2018-02-07 14:16:17 -06:00
Daniel J Walsh
588c9bb5de
Merge pull request #289 from TomSweeneyRedHat/dev/tsweeney/username
...
Change un/pwd handling to match Buildah's
2018-02-07 14:07:54 -05:00
Daniel J Walsh
6716581545
Merge pull request #303 from umohnani8/certs
...
Change default certs dir to /etc/containers/certs.d
2018-02-07 14:06:25 -05:00
Matthew Heon
ca7ebcac64
Change pause so only running containers are valid
...
Signed-off-by: Matthew Heon <mheon@redhat.com>
2018-02-07 10:47:43 -05:00
umohnani8
363cfcb0ce
Fix when the --format flag prints a new line at the end
...
If the output is to a terminal, return a new line at the end of the
output so that the output is visually appealing. If the output is being
piped, or saved to a file, basically not being outputted to a terminal, do
not print a new line at the end of the output. This ensures any further data
manipulation with the results happens smoothly without requiring to remember
the '/n' at the end of the output.
Signed-off-by: umohnani8 <umohnani@redhat.com>
2018-02-07 10:43:16 -05:00
Daniel J Walsh
3f0170227d
Merge pull request #307 from rhatdan/sudo
...
Change sudo examples to use $ instead of $
2018-02-07 10:24:51 -05:00
Daniel J Walsh
1fde1a0de7
Change sudo examples to use $ instead of $
...
sudo is not required when running as root, and # indicates
that you are already root. $ indicates you are not root.
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2018-02-07 09:34:04 -05:00
Matthew Heon
8fbfb93947
Error on attempting to restart container
...
Signed-off-by: Matthew Heon <mheon@redhat.com>
Closes : #304
Approved by: baude
2018-02-07 01:56:11 +00:00
umohnani8
fff9a1ee20
Change default certs dir to /etc/containers/certs.d
...
Updated man pages to reflect the change
Signed-off-by: umohnani8 <umohnani@redhat.com>
2018-02-06 17:10:10 -05:00
umohnani8
2df8a32352
Vendor in latest containers/image
...
Changes the default certs directory to /etc/containers/certs.d
Signed-off-by: umohnani8 <umohnani@redhat.com>
2018-02-06 17:09:02 -05:00
umohnani8
367213a394
Match podman inspect output to docker inspect
...
Made a change to make sure that the output paths of podman inspect
matches that of docker inspect. For example to get the stop signal
you should be able to do podman inspect ctr --format {{.Config.StopSignal}}
and the same thing in docker will give the same results.
Signed-off-by: umohnani8 <umohnani@redhat.com>
Closes : #292
Approved by: rhatdan
2018-02-06 19:31:55 +00:00
Matthew Heon
69d75a8251
Touchup podman kill manpage
...
Signed-off-by: Matthew Heon <mheon@redhat.com>
Closes : #299
Approved by: rhatdan
2018-02-06 19:03:57 +00:00
Matthew Heon
d20c1a9911
Change stop signal default to SIGTERM
...
Signed-off-by: Matthew Heon <mheon@redhat.com>
Closes : #299
Approved by: rhatdan
2018-02-06 19:03:57 +00:00
umohnani8
0d7e6fa22f
Add podman search command
...
podman search queries a registry for a matching image and prints
the output.
I added a new flag called "registry" giving the user the option
to search a specific registry if they don't want to search all
their default registries.
Signed-off-by: umohnani8 <umohnani@redhat.com>
Closes : #241
Approved by: rhatdan
2018-02-06 18:09:31 +00:00
umohnani8
1a48a7a7c0
Vendor in latest containers/image
...
Latest containers/image has support for searching registries.
Signed-off-by: umohnani8 <umohnani@redhat.com>
Closes : #241
Approved by: rhatdan
2018-02-06 18:09:31 +00:00
Lokesh Mandvekar
31c56e2b9c
avoid period character at the beginning of newline
...
Otherwise causes rpmlint error for manpage
Signed-off-by: Lokesh Mandvekar <lsm5@fedoraproject.org>
Closes : #296
Approved by: baude
2018-02-06 16:18:49 +00:00
baude
1c4bcf3bc7
Migrate more tests to ginkgo
...
Migrate the following to the ginkgo integration tests:
* images
* import
* inspect
* logs
* run_dns
Signed-off-by: baude <bbaude@redhat.com>
Closes : #295
Approved by: mheon
2018-02-06 15:55:50 +00:00
TomSweeneyRedHat
bb37c11651
Change un/pwd handling to match Buildah's
...
Signed-off-by: TomSweeneyRedHat <tsweeney@redhat.com>
2018-02-06 09:29:23 -05:00
baude
bf00c976dd
sysfs should be mounted rw for privileged
...
sysfs should be mounted rw for a privileged container.
Signed-off-by: baude <bbaude@redhat.com>
Closes : #279
Approved by: rhatdan
2018-02-06 01:17:54 +00:00
Daniel J Walsh
d1c0c42a08
Need to add LISTEN_PID environment variable to conmon command
...
Without this field then conmon will not pass the proper data down to
the OCI Runtime.
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2018-02-05 16:35:43 -05:00
baude
3609b82fe6
Migrate diff, exec, export, and history to ginkgo
...
Migrate the diff, exec, export, and history bats tests to
the ginkgo test suite.
Signed-off-by: baude <bbaude@redhat.com>
Closes : #287
Approved by: baude
2018-02-05 20:17:37 +00:00
baude
1ac11dcf84
Integration testing readme
...
Wrote a small primer to setup for integration testing.
Signed-off-by: baude <bbaude@redhat.com>
Closes : #288
Approved by: rhatdan
2018-02-05 16:03:35 +00:00