Skip to content

Draft: Load a docker image as worker version

Bastien Abadie requested to merge import-docker-worker into master

Works in a dedicated docker container which has access to docker socket:

docker run -it \
    -e CONFIG_PATH=/etc/arkindex.yml \
    -v /opt/arkindex/configuration.yml:/etc/arkindex.yml:ro \
    -v $(pwd)/import_docker_image.py:/tmp/import_docker_image.py \
    -v /var/run/docker.sock:/var/run/docker.sock \
    --network=services \
    --name=import-docker-image \
    registry.gitlab.com/teklia/arkindex/backend:1.4.2-binary \
    bash # to run in dev mode with <

The main issues are the requirements for tools:

A better approach for that import would be to use internal python modules (docker & zstd), but that would probably require a custom docker image.

Edited by Bastien Abadie

Merge request reports

Loading