{"action":"created","issue":{"url":"https://api.github.com/repos/CentOS-PaaS-SIG/linchpin/issues/613","repository_url":"https://api.github.com/repos/CentOS-PaaS-SIG/linchpin","labels_url":"https://api.github.com/repos/CentOS-PaaS-SIG/linchpin/issues/613/labels{/name}","comments_url":"https://api.github.com/repos/CentOS-PaaS-SIG/linchpin/issues/613/comments","events_url":"https://api.github.com/repos/CentOS-PaaS-SIG/linchpin/issues/613/events","html_url":"https://github.com/CentOS-PaaS-SIG/linchpin/pull/613","id":337580606,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk4NzI2NzM3","number":613,"title":"Linchpin Container Build","user":{"login":"herlo","id":89334,"node_id":"MDQ6VXNlcjg5MzM0","avatar_url":"https://avatars2.githubusercontent.com/u/89334?v=4","gravatar_id":"","url":"https://api.github.com/users/herlo","html_url":"https://github.com/herlo","followers_url":"https://api.github.com/users/herlo/followers","following_url":"https://api.github.com/users/herlo/following{/other_user}","gists_url":"https://api.github.com/users/herlo/gists{/gist_id}","starred_url":"https://api.github.com/users/herlo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/herlo/subscriptions","organizations_url":"https://api.github.com/users/herlo/orgs","repos_url":"https://api.github.com/users/herlo/repos","events_url":"https://api.github.com/users/herlo/events{/privacy}","received_events_url":"https://api.github.com/users/herlo/received_events","type":"User","site_admin":false},"labels":[{"id":920557163,"node_id":"MDU6TGFiZWw5MjA1NTcxNjM=","url":"https://api.github.com/repos/CentOS-PaaS-SIG/linchpin/labels/cd","name":"cd","color":"d30c45","default":false}],"state":"open","locked":false,"assignee":{"login":"herlo","id":89334,"node_id":"MDQ6VXNlcjg5MzM0","avatar_url":"https://avatars2.githubusercontent.com/u/89334?v=4","gravatar_id":"","url":"https://api.github.com/users/herlo","html_url":"https://github.com/herlo","followers_url":"https://api.github.com/users/herlo/followers","following_url":"https://api.github.com/users/herlo/following{/other_user}","gists_url":"https://api.github.com/users/herlo/gists{/gist_id}","starred_url":"https://api.github.com/users/herlo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/herlo/subscriptions","organizations_url":"https://api.github.com/users/herlo/orgs","repos_url":"https://api.github.com/users/herlo/repos","events_url":"https://api.github.com/users/herlo/events{/privacy}","received_events_url":"https://api.github.com/users/herlo/received_events","type":"User","site_admin":false},"assignees":[{"login":"herlo","id":89334,"node_id":"MDQ6VXNlcjg5MzM0","avatar_url":"https://avatars2.githubusercontent.com/u/89334?v=4","gravatar_id":"","url":"https://api.github.com/users/herlo","html_url":"https://github.com/herlo","followers_url":"https://api.github.com/users/herlo/followers","following_url":"https://api.github.com/users/herlo/following{/other_user}","gists_url":"https://api.github.com/users/herlo/gists{/gist_id}","starred_url":"https://api.github.com/users/herlo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/herlo/subscriptions","organizations_url":"https://api.github.com/users/herlo/orgs","repos_url":"https://api.github.com/users/herlo/repos","events_url":"https://api.github.com/users/herlo/events{/privacy}","received_events_url":"https://api.github.com/users/herlo/received_events","type":"User","site_admin":false}],"milestone":null,"comments":32,"created_at":"2018-07-02T16:13:12Z","updated_at":"2018-07-24T23:32:19Z","closed_at":null,"author_association":"MEMBER","pull_request":{"url":"https://api.github.com/repos/CentOS-PaaS-SIG/linchpin/pulls/613","html_url":"https://github.com/CentOS-PaaS-SIG/linchpin/pull/613","diff_url":"https://github.com/CentOS-PaaS-SIG/linchpin/pull/613.diff","patch_url":"https://github.com/CentOS-PaaS-SIG/linchpin/pull/613.patch"},"body":"Initial Jenkins Pipeline for building the official LinchPin container.\r\n\r\nThe container images currently built using the Dockerfile/Jenkinsfile are tagged and exist [here](https://hub.docker.com/r/herlo/linchpin-container/tags/)\r\n\r\nTo use the container image, it can be run by starting the container with the `-it` option, or by starting the container and then running a `docker exec` on the running container. Here is a simple example to get the container to run:\r\n\r\n```\r\ndocker run -it -v /path/to/workspace/:/workdir/ herlo/linchpin-container \\\r\n-- linchpin -c /etc/linchpin.conf -vvvp PinFile.dummy.yml \\\r\n-w /workdir up dummy-topo\r\n```\r\n\r\n**NOTE**: The `--` allows the entire linchpin command to be passed as an argument to `docker run`\r\n\r\nSome things to consider/discuss:\r\n\r\n* To build this image, the jenkins slave container needs to include buildah, which is used to build containers without a docker daemon. This has been added to the Dockerfile in this PR.\r\n* This container won't work for a local libvirt\r\n  * The specific case that might work would be a remote libvirt connection and using the remote bits of a libvirt build, which has not been tested\r\n* The name of the container may change. Currently, it's 'linchpin-container'\r\n  * Having an upstream release, and then building the 'linchpin-executor' container (on which this build is [based](https://github.com/herlo/contra-env-sample-project/blob/master/config/dockerfiles/linchpin/Dockerfile)) may be desirable. This container could then work wherever, and another layer could add the stuff for running in openshift, adding containerized libvirt support, etc. It currently feels too heavy to do that for the official container. It feels like the container image should be lightweight and flexible.\r\n* Using the linchpin-container:latest on a machine without the UID provided in the Dockerfile may cause the container to fail\r\n  * This can be remedied by running the docker container as a different user\r\n  * This seems like a blocker for users who just want to use the container unmodified\r\n  * A README is probably needed to explain these items, or adjustments to the Dockerfile are needed\r\n  * As stated above, simplifying this Dockerfile to a minimalistic version would then allow others to base LinchPin container builds on this one.\r\n\r\nFixes #623 \r\nFixes #602 \r\n\r\n"},"comment":{"url":"https://api.github.com/repos/CentOS-PaaS-SIG/linchpin/issues/comments/407584949","html_url":"https://github.com/CentOS-PaaS-SIG/linchpin/pull/613#issuecomment-407584949","issue_url":"https://api.github.com/repos/CentOS-PaaS-SIG/linchpin/issues/613","id":407584949,"node_id":"MDEyOklzc3VlQ29tbWVudDQwNzU4NDk0OQ==","user":{"login":"paas-bot","id":24395953,"node_id":"MDQ6VXNlcjI0Mzk1OTUz","avatar_url":"https://avatars1.githubusercontent.com/u/24395953?v=4","gravatar_id":"","url":"https://api.github.com/users/paas-bot","html_url":"https://github.com/paas-bot","followers_url":"https://api.github.com/users/paas-bot/followers","following_url":"https://api.github.com/users/paas-bot/following{/other_user}","gists_url":"https://api.github.com/users/paas-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/paas-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paas-bot/subscriptions","organizations_url":"https://api.github.com/users/paas-bot/orgs","repos_url":"https://api.github.com/users/paas-bot/repos","events_url":"https://api.github.com/users/paas-bot/events{/privacy}","received_events_url":"https://api.github.com/users/paas-bot/received_events","type":"User","site_admin":false},"created_at":"2018-07-24T23:32:19Z","updated_at":"2018-07-24T23:32:19Z","author_association":"CONTRIBUTOR","body":"ci-linchpin-messageBus-trigger build #48: SUCCESS: https://jenkins-continuous-infra.cloud.continuous-infra.upshift.redhat.com/job/ci-linchpin-messageBus-trigger/48/"}}
{"actor":{"display_login":"paas-bot"}}