{"action":"created","issue":{"url":"https://api.github.com/repos/openshift/origin/issues/8859","repository_url":"https://api.github.com/repos/openshift/origin","labels_url":"https://api.github.com/repos/openshift/origin/issues/8859/labels{/name}","comments_url":"https://api.github.com/repos/openshift/origin/issues/8859/comments","events_url":"https://api.github.com/repos/openshift/origin/issues/8859/events","html_url":"https://github.com/openshift/origin/issues/8859","id":154474574,"number":8859,"title":"unmarshal error on docker-compose.yml import","user":{"login":"surajssd","id":5815795,"avatar_url":"https://avatars.githubusercontent.com/u/5815795?v=3","gravatar_id":"","url":"https://api.github.com/users/surajssd","html_url":"https://github.com/surajssd","followers_url":"https://api.github.com/users/surajssd/followers","following_url":"https://api.github.com/users/surajssd/following{/other_user}","gists_url":"https://api.github.com/users/surajssd/gists{/gist_id}","starred_url":"https://api.github.com/users/surajssd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/surajssd/subscriptions","organizations_url":"https://api.github.com/users/surajssd/orgs","repos_url":"https://api.github.com/users/surajssd/repos","events_url":"https://api.github.com/users/surajssd/events{/privacy}","received_events_url":"https://api.github.com/users/surajssd/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/openshift/origin/labels/component/composition","name":"component/composition","color":"0052cc"},{"url":"https://api.github.com/repos/openshift/origin/labels/priority/P2","name":"priority/P2","color":"fbca04"}],"state":"open","locked":false,"assignee":{"login":"smarterclayton","id":1163175,"avatar_url":"https://avatars.githubusercontent.com/u/1163175?v=3","gravatar_id":"","url":"https://api.github.com/users/smarterclayton","html_url":"https://github.com/smarterclayton","followers_url":"https://api.github.com/users/smarterclayton/followers","following_url":"https://api.github.com/users/smarterclayton/following{/other_user}","gists_url":"https://api.github.com/users/smarterclayton/gists{/gist_id}","starred_url":"https://api.github.com/users/smarterclayton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smarterclayton/subscriptions","organizations_url":"https://api.github.com/users/smarterclayton/orgs","repos_url":"https://api.github.com/users/smarterclayton/repos","events_url":"https://api.github.com/users/smarterclayton/events{/privacy}","received_events_url":"https://api.github.com/users/smarterclayton/received_events","type":"User","site_admin":false},"milestone":null,"comments":5,"created_at":"2016-05-12T12:51:05Z","updated_at":"2016-05-17T13:47:59Z","closed_at":null,"body":"I am trying to import the `docker-compose` file using the new feature `oc import docker-compose` but it fails with unmarshal error. But the `docker-compose.yml` runs with `docker-compose` fine.\r\n\r\n\r\n##### Version\r\n```bash\r\n$ openshift version\r\nopenshift v1.3.0-alpha.0-463-g687315d\r\nkubernetes v1.3.0-alpha.1-331-g0522e63\r\netcd 2.3.0\r\n```\r\n\r\n##### Steps To Reproduce\r\ndocker-compose file\r\n```bash\r\n[vagrant@localhost ~]$ cat docker-compose.yml \r\npostgresql:\r\n  image: swordphilic/postgresql\r\n  ports:\r\n    - \"5432\"\r\n  environment:\r\n    DB_NAME: gitlab\r\n    DB_PASS: gitlab\r\n    DB_USER: gitlab\r\n\r\ngitlab:\r\n  image: swordphilic/gitlab\r\n  ports:\r\n    - \"30000:80\"\r\n    - \"30001:443\"\r\n    - \"30002:22\"\r\n  links:\r\n    - redis\r\n    - postgresql\r\n  environment:\r\n    DB_TYPE: postgres\r\n    DB_PORT: 5432\r\n    DB_NAME: gitlab\r\n    DB_PASS: gitlab\r\n    DB_USER: gitlab\r\n    REDIS_PORT: 6379\r\n\r\nredis:\r\n  image: swordphilic/redis\r\n  ports:\r\n    - \"6379\"\r\n```\r\nerror:\r\n```bash\r\n[vagrant@localhost ~]$ oc import docker-compose -f docker-compose.yml --as-template=mytemplate -o yaml --config admin.kubeconfig\r\nERRO[0000] Failed to parse service gitlab: Cannot unmarshal '5432' of type int into a string value \r\nE0512 12:36:13.188611   19350 project.go:129] Could not parse config for project vagrant : Cannot unmarshal '5432' of type int into a string value\r\nerror: Cannot unmarshal '5432' of type int into a string value\r\n```"},"comment":{"url":"https://api.github.com/repos/openshift/origin/issues/comments/219722576","html_url":"https://github.com/openshift/origin/issues/8859#issuecomment-219722576","issue_url":"https://api.github.com/repos/openshift/origin/issues/8859","id":219722576,"user":{"login":"surajssd","id":5815795,"avatar_url":"https://avatars.githubusercontent.com/u/5815795?v=3","gravatar_id":"","url":"https://api.github.com/users/surajssd","html_url":"https://github.com/surajssd","followers_url":"https://api.github.com/users/surajssd/followers","following_url":"https://api.github.com/users/surajssd/following{/other_user}","gists_url":"https://api.github.com/users/surajssd/gists{/gist_id}","starred_url":"https://api.github.com/users/surajssd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/surajssd/subscriptions","organizations_url":"https://api.github.com/users/surajssd/orgs","repos_url":"https://api.github.com/users/surajssd/repos","events_url":"https://api.github.com/users/surajssd/events{/privacy}","received_events_url":"https://api.github.com/users/surajssd/received_events","type":"User","site_admin":false},"created_at":"2016-05-17T13:47:59Z","updated_at":"2016-05-17T13:47:59Z","body":"@smarterclayton so has this been reported in libcompose ? I was not able to recreate this using pure libcompose (because of my limited understanding of go as of now)?"}}