Clean up legacy and debugging code

master
Mark Veidemanis 1 year ago
parent 6f3db61532
commit 1c34aa4a01
Signed by: m
GPG Key ID: 5ACFCEED46C0904F

@ -16,9 +16,6 @@ COPY requirements.txt /code/
COPY discord-patched.tgz /code/
RUN python -m venv /venv
RUN ls
RUN ls /venv
RUN . /venv/bin/activate && ls
RUN . /venv/bin/activate && pip install -r requirements.txt
# && python -m spacy download en_core_web_sm

Binary file not shown.

@ -17,9 +17,9 @@ services:
threshold:
image: pathogen/threshold:latest
container_name: threshold
build: ./legacy/docker
build: ../legacy/docker
volumes:
- ${PORTAINER_GIT_DIR}:/code
- ..:/code
- ${THRESHOLD_CONFIG_DIR}:/code/legacy/conf/live
#- ${THRESHOLD_TEMPLATE_DIR}:/code/conf/templates
- ${THRESHOLD_CERT_DIR}:/code/legacy/conf/cert
@ -64,7 +64,7 @@ services:
soft: 65535
hard: 65535
volumes:
- ${PORTAINER_GIT_DIR}/docker/redis.conf:/etc/redis.conf
- ./redis.conf:/etc/redis.conf
- redis_data:/data
volumes_from:
- tmp

@ -20,5 +20,4 @@ gensim
python-Levenshtein
orjson
uvloop
numba
elasticsearch[async]

@ -1,41 +0,0 @@
version: "2"
services:
app:
image: pathogen/threshold:latest
build: ./docker
volumes:
- ${PORTAINER_GIT_DIR}:/code
- ${THRESHOLD_CONFIG_DIR}:/code/conf/live
#- ${THRESHOLD_TEMPLATE_DIR}:/code/conf/templates
- ${THRESHOLD_CERT_DIR}:/code/conf/cert
ports:
- "${THRESHOLD_LISTENER_PORT}:${THRESHOLD_LISTENER_PORT}"
- "${THRESHOLD_RELAY_PORT}:${THRESHOLD_RELAY_PORT}"
- "${THRESHOLD_API_PORT}:${THRESHOLD_API_PORT}"
env_file:
- .env
# for development
extra_hosts:
- "host.docker.internal:host-gateway"
volumes_from:
- tmp
tmp:
image: busybox
command: chmod -R 777 /var/run/redis
volumes:
- /var/run/redis
redis:
image: redis
command: redis-server /etc/redis.conf
volumes:
- ${PORTAINER_GIT_DIR}/docker/redis.conf:/etc/redis.conf
volumes_from:
- tmp
networks:
default:
external:
name: pathogen

@ -1,9 +0,0 @@
wheel
pre-commit
twisted
pyOpenSSL
redis
pyYaML
service_identity
siphashc
Klein

@ -21,5 +21,4 @@ gensim
python-Levenshtein
orjson
uvloop
numba
elasticsearch[async]

Loading…
Cancel
Save