Niv Sardi commited on
Commit
63f9146
β€’
1 Parent(s): fc32112

reorder, python in python deno in deno

Browse files

Signed-off-by: Niv Sardi <xaiki@evilgiggle.com>

Dockerfile.deno CHANGED
@@ -2,7 +2,7 @@ FROM docker.io/denoland/deno
2
  MAINTAINER Niv Sardi <x@filtra.me>
3
  WORKDIR /app
4
 
5
- COPY src ./src
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 <x@filtra.me>
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 <x@filtra.me>
3
  WORKDIR /app
4
 
5
- COPY crawler ./src
6
  RUN pip install -r ./src/requirements.txt
7
 
8
  CMD python3 ./src/watcher.py
 
2
  MAINTAINER Niv Sardi <x@filtra.me>
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
- # - "./src:/app/src:z" # for debugging
27
- - "./data:/app/data:z"
28
  #restart: unless-stopped:600
29
  deploy:
30
  restart_policy:
@@ -39,7 +39,7 @@ services:
39
  depends_on:
40
  - "puppet"
41
  volumes:
42
- # - "./crawler:/app/src:z" # for debugging
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