Page MenuHomeSoftware Heritage

[swh-graphql] Prepare the docker image generation
ClosedPublic

Authored by vsellier on May 18 2022, 11:37 AM.

Details

Summary
  • Add missing swh-graphql dependencies
  • Add the Dockerfile for the swh-graphql application

As it's the first application, everything is in a uniq Dockerfile.
We'll see later if some parts can be factorized

Related to T4134

Test Plan
docker build -t swh-graphql .
docker run -ti --rm -v config.yml:/etc/swh/config.yml -p 5013:5013 swh-graphql

Diff Detail

Repository
R259 Software Heritage virtual environment packaging manifests
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

vsellier created this revision.
apps/swh-graphql/requirements-frozen.txt
8

this one is weird.
I had to remove it manually

According to https://bugs.launchpad.net/ubuntu/+source/python-pip/+bug/1635463
it seems it related to the local pip environment but I didn't succeed to fix it.

ardumont added inline comments.
apps/swh-graphql/requirements.txt
7

why adding "itself" to the requirements?

apps/swh-graphql/requirements.txt
7

to also froze this dependency.
So when we will tag swh-graphql-xxx, we will have the graphql version fixed for the tag

apps/swh-graphql/requirements.txt
7

makes sense, thx.

This revision is now accepted and ready to land.May 18 2022, 11:59 AM