turms
turms copied to clipboard
[FEATURE] Dockerfile
Openening a new Issue as this might grow... (#7)
Reference Dockerfile
FROM python:3.9-alpine # small python base image
RUN pip install turms # maybe fix version to image tag and include optional dependencies
VOLUME /graphql.config.yaml
VOLUME /generated
WORKDIR /
CMD ["turms", "gen"]
There are some things to notice here:
- We need to mount the generated files as a volume, to get them outside of the docker container.
- The location must match with the settings.
- Mounting configuration files is pretty unintuitive when using Docker. Overwriting reasonable default via ENV vars should be preferred.
This leaves following points to look into:
- [x] Make configuration possible via ENV vars (see
BaseSettings
, @jhnnsrs you could do this best I guess) - [x] Define (reasonable) default
graphql.config.yaml
- [ ] Create Dockerfile / docker-compose.yml example
- [ ] Figure out how to mount custom processors into the container (maybe extend turms base image?)
- [ ] Implement CI flow
- [ ] Publish Dockerimage