Clean up legacy and debugging code

This commit is contained in:
Mark Veidemanis 2022-11-22 07:20:27 +00:00
parent 6f3db61532
commit 1c34aa4a01
Signed by: m
GPG Key ID: 5ACFCEED46C0904F
7 changed files with 3 additions and 58 deletions

View File

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

BIN
docker/build.tar Normal file

Binary file not shown.

View File

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

View File

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

View File

@ -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

View File

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

View File

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