{"action":"opened","issue":{"url":"https://api.github.com/repos/NCEAS/metacat/issues/1226","repository_url":"https://api.github.com/repos/NCEAS/metacat","labels_url":"https://api.github.com/repos/NCEAS/metacat/issues/1226/labels{/name}","comments_url":"https://api.github.com/repos/NCEAS/metacat/issues/1226/comments","events_url":"https://api.github.com/repos/NCEAS/metacat/issues/1226/events","html_url":"https://github.com/NCEAS/metacat/issues/1226","id":305772302,"number":1226,"title":"Feedback and questions on Docker setup for Metacat","user":{"login":"amoeba","id":563,"avatar_url":"https://avatars2.githubusercontent.com/u/563?v=4","gravatar_id":"","url":"https://api.github.com/users/amoeba","html_url":"https://github.com/amoeba","followers_url":"https://api.github.com/users/amoeba/followers","following_url":"https://api.github.com/users/amoeba/following{/other_user}","gists_url":"https://api.github.com/users/amoeba/gists{/gist_id}","starred_url":"https://api.github.com/users/amoeba/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amoeba/subscriptions","organizations_url":"https://api.github.com/users/amoeba/orgs","repos_url":"https://api.github.com/users/amoeba/repos","events_url":"https://api.github.com/users/amoeba/events{/privacy}","received_events_url":"https://api.github.com/users/amoeba/received_events","type":"User","site_admin":false},"labels":[{"id":815362489,"url":"https://api.github.com/repos/NCEAS/metacat/labels/question","name":"question","color":"d876e3","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-03-16T01:22:39Z","updated_at":"2018-03-16T01:22:39Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"Hey @mbjones I needed to set up a fresh Metacat instance so I ran through the Docker setup you've pushed to https://github.com/NCEAS/metacat/compare/feature-docker. It looks great and I appreciated the readme. I got to a running Metacat stack in pretty short order. I had some issues and some questions though:\r\n\r\n**General stuff**\r\n\r\n- What do you think about also providing MetacatUI as part of the default stack?\r\n\r\n**metacat.env**\r\n\r\nThis is really clean which is nice. Though I noticed that the Postgres password and Metacat admin password are pre-filled which makes me worried users won't edit this file and there will be Metacat stacks running default passwords. What do you think about not providing these and having the build/startup fail when they aren't set? Also, maybe change the `EMAIL` and `ADMIN` defaults to not include `jones` and use something generic like `admin` or `metacat`.\r\n\r\n**Building**\r\n\r\nI've always had trouble building Metacat and I'm not sure quite why. AFAICT it looks like it might be a Java version thing but the errors are unclear. The things I run into when I run `ant distbin` are:\r\n\r\n- `build.properties` hardcodes the `maven.home` property so I always have to change this to something like `maven.home=/usr/local/Cellar/maven/3.5.2/libexec`. Could this require less configuration?\r\n- I get an eventual build failure:\r\n\r\n    > BUILD FAILED\r\n    > /Users/bryce/src/metacat/build.xml:786: The following error occurred while executing this line:\r\n    > /Users/bryce/src/metacat/build/seek/projects/ecogrid/buildfiles/metacatImpl.xml:87: The following error occurred while executing this line:\r\n    > /Users/bryce/src/metacat/build/seek/projects/ecogrid/buildfiles/metacatAuth.xml:71: Compile failed; see the compiler error output for details.\r\n\r\nany insights?\r\n\r\n**Using it**\r\n\r\nI got the stack up and running with `docker-compose` without issue so I went to submit a Data Package to it using R. It wasn't clear to me which token signing environment my Metacat was set up with so I assumed test. After some debugging, I figured out I was in the PROD signing environment, but that R thinks it's in the `test` environment:\r\n\r\n```r\r\n> mn@env\r\n[1] \"test\"\r\n```\r\n\r\nwhich means, in R, that I have to set a production token as my test token to start hitting authenticated endpoints. I'm not sure what R is using to determine this nor was I sure what I might change to change it. Which token signing environment does it make the most sense to start Metacat off in, production or some test environment? I see your `MODE` env var so it seems like that would be a logical place to control this all from.\r\n\r\n"}}
{"actor":{"display_login":"amoeba"}}