Spaces:
Runtime error
Runtime error
Niv Sardi
commited on
Commit
Β·
63f9146
1
Parent(s):
fc32112
reorder, python in python deno in deno
Browse filesSigned-off-by: Niv Sardi <[email protected]>
- Dockerfile.deno +1 -1
- Dockerfile.python +1 -1
- {src β deno}/csv.test.ts +0 -0
- {src β deno}/csv.ts +0 -0
- {src β deno}/img.ts +0 -0
- {src β deno}/index.ts +0 -0
- {src β deno}/puppet.test.ts +0 -0
- {src β deno}/puppet.ts +0 -0
- {src β deno}/selectors.ts +0 -0
- docker-compose.yaml +3 -3
- {crawler β python}/.gitignore +0 -0
- {crawler β python}/common/selectors.py +0 -0
- {crawler β python}/entity.py +0 -0
- {crawler β python}/imtool.py +0 -0
- {crawler β python}/main.py +0 -0
- {crawler β python}/requirements.txt +0 -0
- {crawler β python}/screenshot.py +0 -0
- {crawler β python}/vendor.py +0 -0
- {crawler β python}/watcher.py +0 -0
- {crawler β python}/web.py +0 -0
Dockerfile.deno
CHANGED
|
@@ -2,7 +2,7 @@ FROM docker.io/denoland/deno
|
|
| 2 |
MAINTAINER Niv Sardi <[email protected]>
|
| 3 |
WORKDIR /app
|
| 4 |
|
| 5 |
-
COPY
|
| 6 |
RUN deno cache ./src/index.ts
|
| 7 |
|
| 8 |
CMD deno --allow-env --allow-read --allow-write --allow-net ./src/index.ts
|
|
|
|
| 2 |
MAINTAINER Niv Sardi <[email protected]>
|
| 3 |
WORKDIR /app
|
| 4 |
|
| 5 |
+
COPY deno ./src
|
| 6 |
RUN deno cache ./src/index.ts
|
| 7 |
|
| 8 |
CMD deno --allow-env --allow-read --allow-write --allow-net ./src/index.ts
|
Dockerfile.python
CHANGED
|
@@ -2,7 +2,7 @@ FROM docker.io/jjanzic/docker-python3-opencv
|
|
| 2 |
MAINTAINER Niv Sardi <[email protected]>
|
| 3 |
WORKDIR /app
|
| 4 |
|
| 5 |
-
COPY
|
| 6 |
RUN pip install -r ./src/requirements.txt
|
| 7 |
|
| 8 |
CMD python3 ./src/watcher.py
|
|
|
|
| 2 |
MAINTAINER Niv Sardi <[email protected]>
|
| 3 |
WORKDIR /app
|
| 4 |
|
| 5 |
+
COPY python ./src
|
| 6 |
RUN pip install -r ./src/requirements.txt
|
| 7 |
|
| 8 |
CMD python3 ./src/watcher.py
|
{src β deno}/csv.test.ts
RENAMED
|
File without changes
|
{src β deno}/csv.ts
RENAMED
|
File without changes
|
{src β deno}/img.ts
RENAMED
|
File without changes
|
{src β deno}/index.ts
RENAMED
|
File without changes
|
{src β deno}/puppet.test.ts
RENAMED
|
File without changes
|
{src β deno}/puppet.ts
RENAMED
|
File without changes
|
{src β deno}/selectors.ts
RENAMED
|
File without changes
|
docker-compose.yaml
CHANGED
|
@@ -23,8 +23,8 @@ services:
|
|
| 23 |
# command: "sh -c 'while echo deno; do sleep 3h; done'" # debug
|
| 24 |
command: "deno run --allow-net --allow-env --allow-read --allow-write src/index.ts"
|
| 25 |
volumes:
|
| 26 |
-
|
| 27 |
-
|
| 28 |
#restart: unless-stopped:600
|
| 29 |
deploy:
|
| 30 |
restart_policy:
|
|
@@ -39,7 +39,7 @@ services:
|
|
| 39 |
depends_on:
|
| 40 |
- "puppet"
|
| 41 |
volumes:
|
| 42 |
-
|
| 43 |
- "./data:/app/data:z"
|
| 44 |
|
| 45 |
browserless:
|
|
|
|
| 23 |
# command: "sh -c 'while echo deno; do sleep 3h; done'" # debug
|
| 24 |
command: "deno run --allow-net --allow-env --allow-read --allow-write src/index.ts"
|
| 25 |
volumes:
|
| 26 |
+
- "./deno:/app/src:z" # for debugging
|
| 27 |
+
- "./data:/app/data:z"
|
| 28 |
#restart: unless-stopped:600
|
| 29 |
deploy:
|
| 30 |
restart_policy:
|
|
|
|
| 39 |
depends_on:
|
| 40 |
- "puppet"
|
| 41 |
volumes:
|
| 42 |
+
- "./python:/app/src:z" # for debugging
|
| 43 |
- "./data:/app/data:z"
|
| 44 |
|
| 45 |
browserless:
|
{crawler β python}/.gitignore
RENAMED
|
File without changes
|
{crawler β python}/common/selectors.py
RENAMED
|
File without changes
|
{crawler β python}/entity.py
RENAMED
|
File without changes
|
{crawler β python}/imtool.py
RENAMED
|
File without changes
|
{crawler β python}/main.py
RENAMED
|
File without changes
|
{crawler β python}/requirements.txt
RENAMED
|
File without changes
|
{crawler β python}/screenshot.py
RENAMED
|
File without changes
|
{crawler β python}/vendor.py
RENAMED
|
File without changes
|
{crawler β python}/watcher.py
RENAMED
|
File without changes
|
{crawler β python}/web.py
RENAMED
|
File without changes
|