question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Missing `VOLUME` declaration for exposed directories

See original GitHub issue

Description of the issue

When deploying Docker containers to AWS ECS, and using EFS mounts, the files from the directories /home/frappe/frappe-bench/{sites,sites/assets} are not copied to the mounted dir.

Context information (for bug reports)

Explanation of the issue: https://github.com/aws/containers-roadmap/issues/863

Steps to reproduce the issue

  1. Deploy a Fargate Task with an EFS mounted as /home/frappe/frappe-bench/sites
  2. Log into ECS container
  3. Do an ls inside /home/frappe/frappe-bench/sites

Observed result

Empty dir

Expected result

Files from the image to be copied into the mounted dir.

Stacktrace / full error message if available

N/A

Solution

Define volumes inside Dockerfile:

VOLUME ["/home/frappe/frappe-bench/sites"]

Issue Analytics

  • State:closed
  • Created 10 months ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
revantcommented, Nov 9, 2022

some things were added in python code when containers were not used.

things that I can remember

0reactions
moltarcommented, Nov 9, 2022

Thanks, will close for now then.

Read more comments on GitHub >

github_iconTop Results From Across the Web

[Fargate] [request]: container files not copied to volume in 1.4.0
I suspect this is a Docker feature which was lost since Fargate 1.4.0 ... VOLUME /scratch #### THIS IS NEEDED TO EXPOSE THE...
Read more >
Volumes - Docker Documentation
Volumes are the preferred mechanism for persisting data generated by and used by Docker containers. While bind mounts are dependent on the directory...
Read more >
Why in docker-compose I should write full path to volume?
ERROR: Named volume "admin-stat-logs:C:/app/Logs:rw" is used in service "admin-stat-table" but no declaration was found in the volumes section.
Read more >
Elastic/elasticsearch-docker not assigning permissions to data ...
Hello, I was trying to use elasticsearch-docker image for hosting dockerized elastichsearch cluster. What I have noticed that the es-docker ...
Read more >
Docker Compose Syntax: Volume or Bind Mount? - Maxim Orlov
Top-level volumes key always declares volumes, never bind mounts. Bind mounts don't have a name and they can't be named. If source is...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found