Browse Source

fix: archivebox version was being called as root

Cristian 5 years ago
parent
commit
f6ce1de882
2 changed files with 3 additions and 3 deletions
  1. 2 1
      Dockerfile
  2. 1 2
      tests/fixtures.py

+ 2 - 1
Dockerfile

@@ -99,7 +99,8 @@ ENV IN_DOCKER=True \
     MERCURY_BINARY="$NODE_DIR/node_modules/.bin/mercury-parser"
 
 # Print version for nice docker finish summary
-RUN archivebox version
+# RUN archivebox version
+RUN /app/bin/docker_entrypoint.sh archivebox version
 
 # Open up the interfaces to the outside world
 VOLUME "$DATA_DIR"

+ 1 - 2
tests/fixtures.py

@@ -6,7 +6,6 @@ import pytest
 @pytest.fixture
 def process(tmp_path):
     os.chdir(tmp_path)
-    print("should be at", tmp_path)
     process = subprocess.run(['archivebox', 'init'], capture_output=True)
     return process
 
@@ -26,4 +25,4 @@ def disable_extractors_dict():
         "SAVE_MEDIA": "false",
         "SAVE_ARCHIVE_DOT_ORG": "false"
     })
-    return env
+    return env