{"action":"created","issue":{"url":"https://api.github.com/repos/overshard/timestrap/issues/134","repository_url":"https://api.github.com/repos/overshard/timestrap","labels_url":"https://api.github.com/repos/overshard/timestrap/issues/134/labels{/name}","comments_url":"https://api.github.com/repos/overshard/timestrap/issues/134/comments","events_url":"https://api.github.com/repos/overshard/timestrap/issues/134/events","html_url":"https://github.com/overshard/timestrap/issues/134","id":279573544,"number":134,"title":"Docker build","user":{"login":"StianOvrevage","id":6630005,"avatar_url":"https://avatars2.githubusercontent.com/u/6630005?v=4","gravatar_id":"","url":"https://api.github.com/users/StianOvrevage","html_url":"https://github.com/StianOvrevage","followers_url":"https://api.github.com/users/StianOvrevage/followers","following_url":"https://api.github.com/users/StianOvrevage/following{/other_user}","gists_url":"https://api.github.com/users/StianOvrevage/gists{/gist_id}","starred_url":"https://api.github.com/users/StianOvrevage/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/StianOvrevage/subscriptions","organizations_url":"https://api.github.com/users/StianOvrevage/orgs","repos_url":"https://api.github.com/users/StianOvrevage/repos","events_url":"https://api.github.com/users/StianOvrevage/events{/privacy}","received_events_url":"https://api.github.com/users/StianOvrevage/received_events","type":"User","site_admin":false},"labels":[{"id":588707019,"url":"https://api.github.com/repos/overshard/timestrap/labels/enhancement","name":"enhancement","color":"84b6eb","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/overshard/timestrap/milestones/1","html_url":"https://github.com/overshard/timestrap/milestone/1","labels_url":"https://api.github.com/repos/overshard/timestrap/milestones/1/labels","id":2475095,"number":1,"title":"Release 1.0","description":"","creator":{"login":"overshard","id":7016,"avatar_url":"https://avatars1.githubusercontent.com/u/7016?v=4","gravatar_id":"","url":"https://api.github.com/users/overshard","html_url":"https://github.com/overshard","followers_url":"https://api.github.com/users/overshard/followers","following_url":"https://api.github.com/users/overshard/following{/other_user}","gists_url":"https://api.github.com/users/overshard/gists{/gist_id}","starred_url":"https://api.github.com/users/overshard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/overshard/subscriptions","organizations_url":"https://api.github.com/users/overshard/orgs","repos_url":"https://api.github.com/users/overshard/repos","events_url":"https://api.github.com/users/overshard/events{/privacy}","received_events_url":"https://api.github.com/users/overshard/received_events","type":"User","site_admin":false},"open_issues":8,"closed_issues":44,"state":"open","created_at":"2017-04-23T21:37:39Z","updated_at":"2017-12-06T00:06:13Z","due_on":null,"closed_at":null},"comments":5,"created_at":"2017-12-05T23:51:35Z","updated_at":"2018-02-04T00:34:19Z","closed_at":null,"author_association":"NONE","body":"I'm trying to get timestrap to run in Docker but right now it hangs during migration:\r\n\r\n```\r\n  Applying core.0003_auto_20171001_1018... OK\r\n  Applying sessions.0001_initial... OK\r\n```\r\nDockerfile:\r\n\r\n```\r\n# docker build --tag timestrap -f Dockerfile .\r\n# \r\n# docker run -p 8000:8000 timestrap\r\n# docker run -p 8000:8000 -i -t timestrap bash\r\n# \r\n# /timestrap/db.sqlite3\r\n\r\nFROM alpine:3.7\r\n\r\nRUN apk add --no-cache python3 && \\\r\n    python3 -m ensurepip && \\\r\n    rm -r /usr/lib/python*/ensurepip && \\\r\n    pip3 install --upgrade pip setuptools && \\\r\n    if [ ! -e /usr/bin/pip ]; then ln -s pip3 /usr/bin/pip ; fi && \\\r\n    if [[ ! -e /usr/bin/python ]]; then ln -sf /usr/bin/python3 /usr/bin/python; fi && \\\r\n    rm -r /root/.cache\r\n\r\nRUN apk add --no-cache bash git postgresql-dev build-base python3-dev\r\nRUN pip install pipenv\r\nRUN git clone https://github.com/overshard/timestrap\r\n\r\nCOPY entrypoint.sh /entrypoint.sh\r\n\r\nWORKDIR \"timestrap\"\r\n\r\nRUN pipenv install\r\n\r\n# To run pipenv from inside container:\r\n# export SHELL=/bin/sh && pipenv shell\r\n\r\nEXPOSE 8000\r\n\r\nCMD [\"/bin/sh\", \"-c\", \"/entrypoint.sh\"]\r\n```\r\n\r\nentrypoint.sh:\r\n\r\n```\r\ncd /timestrap\r\npipenv run python manage.py migrate --noinput\r\npipenv run python manage.py runserver\r\n```\r\n\r\nRunning entrypoint.sh from within the container interactively successfully starts the server:\r\n\r\n```\r\n  Applying core.0003_auto_20171001_1018... OK\r\n  Applying sessions.0001_initial... OK\r\nPerforming system checks...\r\n\r\nSystem check identified no issues (0 silenced).\r\nDecember 05, 2017 - 23:49:33\r\nDjango version 2.0, using settings 'timestrap.settings.development'\r\nStarting development server at http://127.0.0.1:8000/\r\nQuit the server with CONTROL-C.\r\n```\r\n\r\nOn another note, it would also be helpfull to be able to configure the database to use somehow. I'm not familiar with Django and how to extend the code to support for example a MySQL database. It would be nice to be able to configure that with for example some env-vars."},"comment":{"url":"https://api.github.com/repos/overshard/timestrap/issues/comments/362869395","html_url":"https://github.com/overshard/timestrap/issues/134#issuecomment-362869395","issue_url":"https://api.github.com/repos/overshard/timestrap/issues/134","id":362869395,"user":{"login":"overshard","id":7016,"avatar_url":"https://avatars1.githubusercontent.com/u/7016?v=4","gravatar_id":"","url":"https://api.github.com/users/overshard","html_url":"https://github.com/overshard","followers_url":"https://api.github.com/users/overshard/followers","following_url":"https://api.github.com/users/overshard/following{/other_user}","gists_url":"https://api.github.com/users/overshard/gists{/gist_id}","starred_url":"https://api.github.com/users/overshard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/overshard/subscriptions","organizations_url":"https://api.github.com/users/overshard/orgs","repos_url":"https://api.github.com/users/overshard/repos","events_url":"https://api.github.com/users/overshard/events{/privacy}","received_events_url":"https://api.github.com/users/overshard/received_events","type":"User","site_admin":false},"created_at":"2018-02-04T00:34:19Z","updated_at":"2018-02-04T00:34:19Z","author_association":"OWNER","body":"This is almost done, I seem to be running into an issue where the static files aren't being copied from the build step in a multi-stage docker build, specifically: https://github.com/overshard/timestrap/blob/master/Dockerfile#L21\r\n\r\nIf I can figure out what I'm missing here the rest should be easy!"}}
{"actor":{"display_login":"overshard"}}