Skip to content

Add nginx container for storage #15

Closed
@gctucker

Description

@gctucker

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 to docker-compose.yaml using latest stable nginx Docker image
  • Define volume to be mounted in the standard path usr/share/nginx/html in the container, from a local directory in storage/data (just like db/data and redis/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 with curl 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

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    Done

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions