{"action":"created","issue":{"url":"https://api.github.com/repos/aws/amazon-linux-docker-images/issues/16","repository_url":"https://api.github.com/repos/aws/amazon-linux-docker-images","labels_url":"https://api.github.com/repos/aws/amazon-linux-docker-images/issues/16/labels{/name}","comments_url":"https://api.github.com/repos/aws/amazon-linux-docker-images/issues/16/comments","events_url":"https://api.github.com/repos/aws/amazon-linux-docker-images/issues/16/events","html_url":"https://github.com/aws/amazon-linux-docker-images/issues/16","id":372058010,"node_id":"MDU6SXNzdWUzNzIwNTgwMTA=","number":16,"title":"Compatibility with Bitbucket Pipelines security features","user":{"login":"andrewodri","id":8227256,"node_id":"MDQ6VXNlcjgyMjcyNTY=","avatar_url":"https://avatars2.githubusercontent.com/u/8227256?v=4","gravatar_id":"","url":"https://api.github.com/users/andrewodri","html_url":"https://github.com/andrewodri","followers_url":"https://api.github.com/users/andrewodri/followers","following_url":"https://api.github.com/users/andrewodri/following{/other_user}","gists_url":"https://api.github.com/users/andrewodri/gists{/gist_id}","starred_url":"https://api.github.com/users/andrewodri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrewodri/subscriptions","organizations_url":"https://api.github.com/users/andrewodri/orgs","repos_url":"https://api.github.com/users/andrewodri/repos","events_url":"https://api.github.com/users/andrewodri/events{/privacy}","received_events_url":"https://api.github.com/users/andrewodri/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-10-19T18:00:02Z","updated_at":"2018-10-24T22:17:05Z","closed_at":null,"author_association":"NONE","body":"When using `amazonlinux:1` or `amazonlinux:2018.03` in Bitbucket Pipelines as a host container to build a Docker image based off `amazonlinux:1` of `amazonlinux:2018.03`, the following error occurs:\r\n\r\n```\r\nFailed:\r\niputils.x86_64 0:20121221-7.13.amzn1 \r\n```\r\n\r\nThis can be reproduced with the following `Dockerfile` and `bitbucket-pipelines.yml` file:\r\n\r\n_Dockerfile_\r\n```\r\nFROM amazonlinux:1\r\n\r\nRUN yum -y update && yum -y install iputils\r\n```\r\n\r\n_bitbucket-pipelines.yml_\r\n```\r\nclone:\r\n  depth: 1\r\n\r\noptions:\r\n  docker: true\r\n\r\npipelines:\r\n  tags:\r\n    build:\r\n      - step:\r\n          name: Build\r\n          image: amazonlinux:1\r\n          caches:\r\n            - docker\r\n          script:\r\n            - docker build --tag organization/repo:tag .\r\n```\r\n\r\nThis appears to be associated with an update to Pipelines enabling user namespace remapping: https://confluence.atlassian.com/bitbucket/infrastructure-changes-in-bitbucket-pipelines-872135046.html#InfrastructurechangesinBitbucketPipelines-September2018-DockerinDockerUserNamespaceRemapping\r\n\r\nThe was confirmed by excluding user namespace remapping from my account, and performing a successful build from an identical `Dockerfile` and `bitbucket-pipelines.yml`.\r\n\r\nPlease see the following correspondence from Atlassian for addtional information on the issue:\r\n\r\n> Hi Andrew,\r\n> \r\n> Thank you for your ongoing patience while we look into this issue.\r\n> Based on our observation, we notice that there’s a mounted directory (it’s the amazonlinux image) that is outside of the valid UID/GID range and some packages that get installed need to go into that directory.\r\n> \r\n> With the user namespace feature enabled on the docker daemon, it stopped the build from proceeding with the \"iputils-20121221-7.13.amzn1.x86_64\" installation process.\r\n> \r\n> Since this is a public docker image, we would suggest raising an issue with the maintainees to deploy a fix for it.\r\n> https://hub.docker.com/_/amazonlinux/\r\n> While waiting for the fix, we would also suggest either look for other docker image or creating a new docker image that suits your build.\r\n> Use Docker images as build environments - Atlassian Documentation\r\n> Solved: How do I create a docker image for Bitbucket Pipel...\r\n> \r\n> As of now, we can whitelist your account so that you can continue with your build but we would suggest watching the following page for future updates from our team in regards to it:\r\n> https://confluence.atlassian.com/bitbucket/infrastructure-changes-in-bitbucket-pipelines-872135046.html"},"comment":{"url":"https://api.github.com/repos/aws/amazon-linux-docker-images/issues/comments/432847456","html_url":"https://github.com/aws/amazon-linux-docker-images/issues/16#issuecomment-432847456","issue_url":"https://api.github.com/repos/aws/amazon-linux-docker-images/issues/16","id":432847456,"node_id":"MDEyOklzc3VlQ29tbWVudDQzMjg0NzQ1Ng==","user":{"login":"andrewodri","id":8227256,"node_id":"MDQ6VXNlcjgyMjcyNTY=","avatar_url":"https://avatars2.githubusercontent.com/u/8227256?v=4","gravatar_id":"","url":"https://api.github.com/users/andrewodri","html_url":"https://github.com/andrewodri","followers_url":"https://api.github.com/users/andrewodri/followers","following_url":"https://api.github.com/users/andrewodri/following{/other_user}","gists_url":"https://api.github.com/users/andrewodri/gists{/gist_id}","starred_url":"https://api.github.com/users/andrewodri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrewodri/subscriptions","organizations_url":"https://api.github.com/users/andrewodri/orgs","repos_url":"https://api.github.com/users/andrewodri/repos","events_url":"https://api.github.com/users/andrewodri/events{/privacy}","received_events_url":"https://api.github.com/users/andrewodri/received_events","type":"User","site_admin":false},"created_at":"2018-10-24T22:17:05Z","updated_at":"2018-10-24T22:17:05Z","author_association":"NONE","body":"Hey @ilianaw; sorry, I haven't tested as my account is now running a non-standard configuration. I've submitted a report including a link to this issues with Atlassian so that a fix can be tested. I'll update this ticket once I've heard back!"}}
{"actor":{"display_login":"andrewodri"}}