matrix-org / sydent

Sydent: Reference Matrix Identity Server
http://matrix.org
Apache License 2.0
303 stars 84 forks source link

Dockerfile that builds with poetry #493

Closed DMRobertson closed 2 years ago

DMRobertson commented 2 years ago

To test:

DOCKER_BUILDKIT=1 docker build . -t sydent && docker run -p 8090:8090 sydent

I've seen this print sydent's startup lines and persist data to the /data volume. I could make a GET request to localhost:8090/ and got a 404 error page for my troubles, together with an entry in Sydent's log. I haven't tested this any more thoroughly than that.

To inspect the container while it's running, get the container id with docker ps and then:

$ docker exec -it 001f9bfc6a54 bash
sydent@001f9bfc6a54:/home/sydent$ ls
src  venv
sydent@001f9bfc6a54:/home/sydent$ ls src
README.rst  poetry.lock  pyproject.toml  requirements.txt  res scripts  sydent
sydent@001f9bfc6a54:/home/sydent$ ls venv
bin  lib  pyvenv.cfg

Pull Request Checklist