{"action":"opened","issue":{"url":"https://api.github.com/repos/archivesspace/archivesspace/issues/1305","repository_url":"https://api.github.com/repos/archivesspace/archivesspace","labels_url":"https://api.github.com/repos/archivesspace/archivesspace/issues/1305/labels{/name}","comments_url":"https://api.github.com/repos/archivesspace/archivesspace/issues/1305/comments","events_url":"https://api.github.com/repos/archivesspace/archivesspace/issues/1305/events","html_url":"https://github.com/archivesspace/archivesspace/issues/1305","id":341907330,"node_id":"MDU6SXNzdWUzNDE5MDczMzA=","number":1305,"title":"ArchivesSpace Docker containers report their version as HEAD","user":{"login":"AustinTSchaffer","id":16184219,"node_id":"MDQ6VXNlcjE2MTg0MjE5","avatar_url":"https://avatars1.githubusercontent.com/u/16184219?v=4","gravatar_id":"","url":"https://api.github.com/users/AustinTSchaffer","html_url":"https://github.com/AustinTSchaffer","followers_url":"https://api.github.com/users/AustinTSchaffer/followers","following_url":"https://api.github.com/users/AustinTSchaffer/following{/other_user}","gists_url":"https://api.github.com/users/AustinTSchaffer/gists{/gist_id}","starred_url":"https://api.github.com/users/AustinTSchaffer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AustinTSchaffer/subscriptions","organizations_url":"https://api.github.com/users/AustinTSchaffer/orgs","repos_url":"https://api.github.com/users/AustinTSchaffer/repos","events_url":"https://api.github.com/users/AustinTSchaffer/events{/privacy}","received_events_url":"https://api.github.com/users/AustinTSchaffer/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-07-17T12:55:52Z","updated_at":"2018-07-17T12:55:52Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"ArchivesSpace reports its own version as `HEAD` whenever you run the `archivesspace/archivesspace` Docker image, regardless of whether you set up the Docker container with MySQL, or just use the Apache Derby testing database.\r\n\r\nThis appears to be the case for true for the Docker images for ArchivesSpace versions 2.3.2, 2.4.0, and 2.4.1. I have not tried the images for versions 2.3.1 or earlier. The version shows as HEAD in the '/' endpoint of the API, the staff interface, and the public interface.\r\n\r\n**API**\r\n\r\n```bash\r\n$ docker run --detach --name example_aspace_container archivesspace/archivesspace:2.3.2\r\n$ # Some time Later\r\n$ docker container exec example_aspace_container curl http://localhost:8089\r\n{\r\n  \"databaseProductName\": \"Apache Derby\",\r\n  \"databaseProductVersion\": \"10.12.1.1 - (1704137)\",\r\n  \"ruby_version\": \"2.3.0\",\r\n  \"host_os\": \"linux\",\r\n  \"host_cpu\": \"x86_64\",\r\n  \"build\": \"java1.7\",\r\n  \"archivesSpaceVersion\": \"HEAD\"\r\n}\r\n```\r\n\r\n**Staff Interface**\r\n\r\n![image](https://user-images.githubusercontent.com/16184219/42818328-8f729948-899e-11e8-972d-4e5b2ab2d0c6.png)\r\n\r\n**Public Interface**\r\n\r\n![image](https://user-images.githubusercontent.com/16184219/42818364-afd8b8ca-899e-11e8-869c-77404e5058fd.png)\r\n"}}
{"actor":{"display_login":"AustinTSchaffer"}}