montera34 / pageonex

PageOneX. Analyzing front pages
http://pageonex.com
GNU Affero General Public License v3.0
53 stars 13 forks source link

Main docker-compose affects the docker-compose-build #219

Open numeroteca opened 5 years ago

numeroteca commented 5 years ago

I get this error (related to #218). Wondering how important is to solve this (how many people with try to switch between this two ways of working?):

  1. I run docker-compose -f docker-compose-build.yml up -d --build and it works good (works with my locally modified files).
  2. Then I run docker-compose up and it works good. I access another instance.
  3. Then I run docker-compose -f docker-compose-build.yml up -d --buildand I get this error and it doesn't launch the app:
    
    Building app_build
    Traceback (most recent call last):
    File "site-packages/docker/utils/build.py", line 179, in create_archive
    PermissionError: [Errno 13] Permission denied: '/home/numeroteca/sites/pageonex/app/assets/images/threads/1/2/970/results.zip'

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "bin/docker-compose", line 6, in File "compose/cli/main.py", line 71, in main File "compose/cli/main.py", line 127, in perform_command File "compose/cli/main.py", line 1052, in up File "compose/cli/main.py", line 1048, in up File "compose/project.py", line 466, in up File "compose/service.py", line 329, in ensure_image_exists File "compose/service.py", line 1047, in build File "site-packages/docker/api/build.py", line 154, in build File "site-packages/docker/utils/build.py", line 31, in tar File "site-packages/docker/utils/build.py", line 183, in create_archive OSError: Can not read file in context: /home/numeroteca/sites/pageonex/app/assets/images/threads/1/2/970/results.zip [1441] Failed to execute script docker-compose