Test Suite - Docker: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 36: | Line 36: | ||
docker stop -f <cid> | docker stop -f <cid> | ||
docker rm -f <cid> | docker rm -f <cid> | ||
</pre> | |||
<pre> | |||
root@jes:/home/build/libreswan/testing/docker# docker images | |||
REPOSITORY TAG IMAGE ID CREATED VIRTUAL SIZE | |||
swanbase latest e8e73564a0ae 55 minutes ago 2.84 GB | |||
fedora 20 7d3f07f8de5f 6 weeks ago 374.1 MB | |||
</pre> | </pre> |
Revision as of 19:21, 15 November 2014
# install docker 1.3 yum -y remove docker yum -y install docker-io yum -y update docker-io systemctl start docker systemctl enable docker wget -O /usr/local/bin/pipework https://github.com/jpetazzo/pipework/raw/master/pipework chmod a+x /usr/local/bin/pipework # cd /home/build/ # git clone libreswan cd /home/build/libreswan/testing/docker/ docker build -t swanbase . # coffee break. It will download fedora, about 200 packages # on swantest real 19m31.907s # on parallels vm from toronto real 7m1.228s cd /home/build/libreswan/testing/pluto/ikev2-36-docker ./runme
Stop all docker containers
docker stop $(docker ps -a -q) docker rm $(docker ps -a -q) <pre> to re-run the test you need to stop all these docker instances. If you don't know reboot your host:) <pre> docker stop -f <cid> docker rm -f <cid>
root@jes:/home/build/libreswan/testing/docker# docker images REPOSITORY TAG IMAGE ID CREATED VIRTUAL SIZE swanbase latest e8e73564a0ae 55 minutes ago 2.84 GB fedora 20 7d3f07f8de5f 6 weeks ago 374.1 MB