{"action":"opened","issue":{"url":"https://api.github.com/repos/opencontainers/runc/issues/870","repository_url":"https://api.github.com/repos/opencontainers/runc","labels_url":"https://api.github.com/repos/opencontainers/runc/issues/870/labels{/name}","comments_url":"https://api.github.com/repos/opencontainers/runc/issues/870/comments","events_url":"https://api.github.com/repos/opencontainers/runc/issues/870/events","html_url":"https://github.com/opencontainers/runc/issues/870","id":158272321,"number":870,"title":"problems of writing runc test_Dockerfile for fedora systems","user":{"login":"hmeng-19","id":5217421,"avatar_url":"https://avatars.githubusercontent.com/u/5217421?v=3","gravatar_id":"","url":"https://api.github.com/users/hmeng-19","html_url":"https://github.com/hmeng-19","followers_url":"https://api.github.com/users/hmeng-19/followers","following_url":"https://api.github.com/users/hmeng-19/following{/other_user}","gists_url":"https://api.github.com/users/hmeng-19/gists{/gist_id}","starred_url":"https://api.github.com/users/hmeng-19/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hmeng-19/subscriptions","organizations_url":"https://api.github.com/users/hmeng-19/orgs","repos_url":"https://api.github.com/users/hmeng-19/repos","events_url":"https://api.github.com/users/hmeng-19/events{/privacy}","received_events_url":"https://api.github.com/users/hmeng-19/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-06-03T01:12:21Z","updated_at":"2016-06-03T01:12:21Z","closed_at":null,"body":"Currently the test suite of runc is based on a ubuntu docker image (runc/script/test_Dockerfile). I am trying to write a Dockerfile, `runc/script/test_Dockerfile_1`, for testing runc on fedora 23.\r\n\r\nYou can find test_Dockerfile_1 here: https://github.com/hmeng-19/logs/blob/master/test_Dockerfile_1\r\n `test_Dockerfile_1` tries to mimic the summary of the following two ubuntu-oriented Dockerfiles:\r\n1) https://github.com/docker-library/golang/blob/d7e2a8d90a9b8f5dfd5bcd428e0c33b68c40cc19/1.5/alpine/Dockerfile\r\n2) https://github.com/opencontainers/runc/blob/master/script/test_Dockerfile\r\n\r\nThe docker image is created successfully after `docker build`:\r\n \r\n    docker build -t runc_test:fedora -f script/test_Dockerfile_1\r\n \r\nHowever, `TestCheckpoint` for `checkpoint_test.go` failed for both the test commands:\r\n \r\n    docker run -e TESTFLAGS -ti --privileged --rm -v /home/hmeng/go/src/github.com/hmeng-19/runc:/go/src/github.com/opencontainers/runc runc_test:fedora make localunittest\r\n    docker run -e TESTFLAGS -t --privileged --rm -v /home/hmeng/go/src/github.com/hmeng-19/runc:/go/src/github.com/opencontainers/runc runc_test:fedora make localintegration\r\n \r\nThe output of `docker run .... make localunittest` is here: https://github.com/hmeng-19/logs/blob/master/localunittest.log . The failure happened at `TestCheckpoint`, starting from line 267.\r\n\r\nThe output of `docker run .... make localintegration` is here: https://github.com/hmeng-19/logs/blob/master/localintegration.log . The 3rd test failed.\r\n \r\nClearly, both of these two failures are related to checkpoint and restore function of runc. As for as I see, there may have two reasons for the failure:\r\n1) The `test_Dockerfile_1` file does not completely mimic the original ubuntu-oriented test_Dockerfile. This may happen because some packages mentioned in ubuntu-version Dockerfile, such as `build-essential` and `python-minimal` are difficult to mapped to fedora packages.\r\n\r\n2) The setting of fedora:23 docker image relavant to the checkpointing and restoring function does not match the setting on ubuntu.\r\n\r\n3) Some other reasons I did not realize?\r\n\r\n"}}
{"actor":{"display_login":"hmeng-19"}}