Closed
Description
As described on #9, we need a file storage solution with an HTTP server to be able to store their URLs in the database.
The simplest approach is to add a container to docker-compose.yaml
based on nginx
:
https://hub.docker.com/_/nginx
Steps:
- Add
storage
section todocker-compose.yaml
using latest stablenginx
Docker image - Define volume to be mounted in the standard path
usr/share/nginx/html
in the container, from a local directory instorage/data
(just likedb/data
andredis/data
). - Expose port 80 from the container to 8002 on the host
- Add
storage/data/README.txt
file with a paragraph explaining this is the storage server. It will also be useful to check the server is working. - Run
docker-compose up --build
and try to access the README.txt file withcurl http://localhost:8002/README.txt
Then on a branch from a fork of kernelci-api
, create a Git commit with the changes in docker-compose.yaml
and the new README.txt
file. Push the branch to create a pull request.
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Done