joshhighet / ransomwatch

the transparent ransomware claim tracker 🥷🏼🧅🖥️
https://ransomwatch.telemetry.ltd
The Unlicense
924 stars 141 forks source link

Dockerfile not working #98

Closed sandyboxy closed 8 months ago

sandyboxy commented 9 months ago

Hello, is there a tutorial to install this interesting project? I've tried to install it via docker using the following docker-compose.yml file:

version: "3.7"

services:
  ransomwatch:
    build:
      dockerfile: dockerfile
    image: "ransomwatch:latest"
    container_name: "ransomwatch"
    ports:
      - "8000:8000"

and the following code:

git clone https://github.com/joshhighet/ransomwatch.git
docker compose up

but the following errors appear:

ransomwatch  | //ransomwatch.py:31: SyntaxWarning: invalid escape sequence '\_'
ransomwatch  |   '''
ransomwatch  | /parsers.py:181: SyntaxWarning: invalid escape sequence '\/'
ransomwatch  |   parser = '''
ransomwatch  | /parsers.py:192: SyntaxWarning: invalid escape sequence '\&'
ransomwatch  |   parser = '''
ransomwatch  | /parsers.py:251: SyntaxWarning: invalid escape sequence '\/'
ransomwatch  |   parser = '''
ransomwatch  | /parsers.py:262: SyntaxWarning: invalid escape sequence '\/'
ransomwatch  |   parser = '''
ransomwatch  | /parsers.py:273: SyntaxWarning: invalid escape sequence '\|'
ransomwatch  |   parser = '''
ransomwatch  | /parsers.py:284: SyntaxWarning: invalid escape sequence '\/'
ransomwatch  |   parser = '''
ransomwatch  | /parsers.py:308: SyntaxWarning: invalid escape sequence '\/'
ransomwatch  |   parser = '''
ransomwatch  | /parsers.py:319: SyntaxWarning: invalid escape sequence '\&'
ransomwatch  |   parser = '''
ransomwatch  | /parsers.py:386: SyntaxWarning: invalid escape sequence '\.'
ransomwatch  |   parser = '''
ransomwatch  | /parsers.py:434: SyntaxWarning: invalid escape sequence '\/'
ransomwatch  |   parser = '''
ransomwatch  | /parsers.py:468: SyntaxWarning: invalid escape sequence '\/'
ransomwatch  |   parser = '''
ransomwatch  | /parsers.py:479: SyntaxWarning: invalid escape sequence '\&'
ransomwatch  |   parser = '''
ransomwatch  | /parsers.py:548: SyntaxWarning: invalid escape sequence '\&'
ransomwatch  |   parser = '''
ransomwatch  | /parsers.py:559: SyntaxWarning: invalid escape sequence '\&'
ransomwatch  |   parser = '''
ransomwatch  | /parsers.py:577: SyntaxWarning: invalid escape sequence '\.'
ransomwatch  |   parser = '''
ransomwatch  | /parsers.py:694: SyntaxWarning: invalid escape sequence '\/'
ransomwatch  |   parser = '''
ransomwatch  | /parsers.py:727: SyntaxWarning: invalid escape sequence '\*'
ransomwatch  |   parser = '''
ransomwatch  | /parsers.py:738: SyntaxWarning: invalid escape sequence '\&'
ransomwatch  |   parser = '''
ransomwatch  | /parsers.py:785: SyntaxWarning: invalid escape sequence '\/'
ransomwatch  |   parser = '''
ransomwatch  | /parsers.py:876: SyntaxWarning: invalid escape sequence '\-'
ransomwatch  |   parser = '''
ransomwatch  | /parsers.py:955: SyntaxWarning: invalid escape sequence '\-'
ransomwatch  |   parser = '''
ransomwatch  | /parsers.py:980: SyntaxWarning: invalid escape sequence '\/'
ransomwatch  |   parser = '''
ransomwatch  | /parsers.py:1196: SyntaxWarning: invalid escape sequence '\-'
ransomwatch  |   parser = '''
ransomwatch  | /parsers.py:1207: SyntaxWarning: invalid escape sequence '\&'
ransomwatch  |   parser = '''
ransomwatch  | /parsers.py:1307: SyntaxWarning: invalid escape sequence '\['
ransomwatch  |   parser = '''
ransomwatch  | 2024-01-22:15:53:47,451 INFO     generated new fontManager
ransomwatch  | usage: ransomwatch.py [-h] [--name NAME] [--location LOCATION]
ransomwatch  |                       {add,scrape,parse,markdown}
ransomwatch  | ransomwatch.py: error: the following arguments are required: mode
joshhighet commented 9 months ago

hello, the application will run on macOS & debian flavours

you could reference the following GitHub action which runs the live site for guidance

the dockerfile can be ran directly from GHCR with the below

docker run ghcr.io/joshhighet/ransomwatch:latest
sandyboxy commented 9 months ago

Hello @joshhighet, I'm using Ubuntu server 22.04.

I tried to run it via docker run ghcr.io/joshhighet/ransomwatch:latest but I have the same error.

I also tried to change docker-compose.yml as following but without success:

version: "3.7"
services:
  ransomwatch:
    image: ghcr.io/joshhighet/ransomwatch:latest
    container_name: "ransomwatch"
    ports:
      - "8000:8000"

I have a Tor instance installed on my OS (without docker).

joshhighet commented 8 months ago

Sorry for keeping this idle for so long, I was unable to initially repro this. Did you manage to find a workaround?