{"action":"created","issue":{"url":"https://api.github.com/repos/adelton/docker-freeipa/issues/89","repository_url":"https://api.github.com/repos/adelton/docker-freeipa","labels_url":"https://api.github.com/repos/adelton/docker-freeipa/issues/89/labels{/name}","comments_url":"https://api.github.com/repos/adelton/docker-freeipa/issues/89/comments","events_url":"https://api.github.com/repos/adelton/docker-freeipa/issues/89/events","html_url":"https://github.com/adelton/docker-freeipa/issues/89","id":170587654,"number":89,"title":"`$HOSTNAME` is not always set to FQDN","user":{"login":"frol","id":304265,"avatar_url":"https://avatars.githubusercontent.com/u/304265?v=3","gravatar_id":"","url":"https://api.github.com/users/frol","html_url":"https://github.com/frol","followers_url":"https://api.github.com/users/frol/followers","following_url":"https://api.github.com/users/frol/following{/other_user}","gists_url":"https://api.github.com/users/frol/gists{/gist_id}","starred_url":"https://api.github.com/users/frol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/frol/subscriptions","organizations_url":"https://api.github.com/users/frol/orgs","repos_url":"https://api.github.com/users/frol/repos","events_url":"https://api.github.com/users/frol/events{/privacy}","received_events_url":"https://api.github.com/users/frol/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":13,"created_at":"2016-08-11T07:44:47Z","updated_at":"2016-08-11T19:04:05Z","closed_at":null,"body":"This issue is related to the recent change: https://github.com/adelton/docker-freeipa/commit/9e6c20e962fa22dc71ce399f8327bd5ab7116cae\r\n\r\nDocker Compose splits `hostname` into `hostname` and `domainname` using the first dot as a delimiter (hostname: `qq.example.com` -> hostname: `qq`, domainname: `example.com`).\r\n\r\n```yaml\r\n$ cat docker-compose.yml\r\nversion: '2'\r\nservices:\r\n    qq:\r\n      image: fedora\r\n      hostname: \"qq.example.com\"\r\n      entrypoint: /bin/sh\r\n      command: [\"-c\", \"env ; cat /etc/hosts ; uname -n\"]\r\n```\r\n\r\n```\r\n$ docker-compose up\r\nqq_1  | HOSTNAME=qq\r\nqq_1  | PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin\r\nqq_1  | PWD=/\r\nqq_1  | SHLVL=1\r\nqq_1  | HOME=/root\r\nqq_1  | _=/usr/bin/env\r\n\r\nqq_1  | 127.0.0.1       localhost\r\nqq_1  | ::1     localhost ip6-localhost ip6-loopback\r\nqq_1  | fe00::0 ip6-localnet\r\nqq_1  | ff00::0 ip6-mcastprefix\r\nqq_1  | ff02::1 ip6-allnodes\r\nqq_1  | ff02::2 ip6-allrouters\r\nqq_1  | 172.19.0.2      qq.example.com qq\r\n\r\nqq_1  | qq.example.com\r\n```\r\n\r\nI suggest using `uname -n` instead of `$HOSTNAME` and `hostname -f`. At least, it works for me in both cases: `docker run` and `docker-compose up`."},"comment":{"url":"https://api.github.com/repos/adelton/docker-freeipa/issues/comments/239259033","html_url":"https://github.com/adelton/docker-freeipa/issues/89#issuecomment-239259033","issue_url":"https://api.github.com/repos/adelton/docker-freeipa/issues/89","id":239259033,"user":{"login":"frol","id":304265,"avatar_url":"https://avatars.githubusercontent.com/u/304265?v=3","gravatar_id":"","url":"https://api.github.com/users/frol","html_url":"https://github.com/frol","followers_url":"https://api.github.com/users/frol/followers","following_url":"https://api.github.com/users/frol/following{/other_user}","gists_url":"https://api.github.com/users/frol/gists{/gist_id}","starred_url":"https://api.github.com/users/frol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/frol/subscriptions","organizations_url":"https://api.github.com/users/frol/orgs","repos_url":"https://api.github.com/users/frol/repos","events_url":"https://api.github.com/users/frol/events{/privacy}","received_events_url":"https://api.github.com/users/frol/received_events","type":"User","site_admin":false},"created_at":"2016-08-11T19:04:05Z","updated_at":"2016-08-11T19:04:05Z","body":"> Does `/data-template/var/log/httpd` exist in your image?\r\n\r\nNo, it doesn't."}}
{"actor":{"display_login":"frol"}}