OpenFn / OpenFn/lightning

Docker container is not stateless

Open
#2,794 2 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Feedback
Dominant language
Elixir
Stars
296
Forks
86
Avg merge
1d 13h
Merged PRs (30d)
50

Description

The file /app/lib/tzdata-1.1.2/priv/latest_remote_poll.txt at docker startup.
It will stopped the deployment on Kubernetes/OpenShift as the folder /app/lib/tzdata-1.1.2/priv is read only.

To let it work the following Dockerfile should be used:

FROM openfn/lightning:v2.10.7
RUN chmod -R a+rwX /app/lib/tzdata-1.1.2/priv/

A solution could be to write this file to /app/priv/static or to the cache folder /.npm

Contributor guide

No contributing guide indexed for this repository

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 reproducing Docker startup with a read-only /app/lib/tzdata-1.1.2/priv directory and trace the write to latest_remote_poll.txt. Compare the proposed /app/priv/static and /.npm locations, then verify that the container starts successfully in Kubernetes or OpenShift without changing permissions on the dependency directory.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, elixir, kubernetes
Domain
devops, infrastructure
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.