openwisp / openwisp/openwisp-controller

[docker] Add persistence by default

Open
#46 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
773
Forks
315
Avg merge
2d 16h
Merged PRs (30d)
14

Description

When running OpenWISP as a docker container with default settings, nothing is stored permanently and there is no way of making changes to local_settings.

I can think of two methods to add persistence by default:

  1. Add a VOLUME statement to the Dockerfile: VOLUME /usr/src/app/tests
  2. Update the README to make the location of files that require persistence known to users by updating the docker run command: sudo docker run -it -v openwisp:/usr/src/app/tests -p 8000:8000 openwisp/controller

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by inspecting the Dockerfile and the README's docker run command. Determine which application files, including local_settings, must survive container recreation and compare the proposed VOLUME and README approaches. Done means default Docker usage preserves the required changes and the documented command or image behavior clearly exposes the persistent location.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, python
Domain
infrastructure
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.