Clean up legacy and debugging code
This commit is contained in:
parent
6f3db61532
commit
1c34aa4a01
|
@ -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
|
||||||
|
|
||||||
|
|
Binary file not shown.
|
@ -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
|
||||||
|
|
|
@ -20,5 +20,4 @@ gensim
|
||||||
python-Levenshtein
|
python-Levenshtein
|
||||||
orjson
|
orjson
|
||||||
uvloop
|
uvloop
|
||||||
numba
|
|
||||||
elasticsearch[async]
|
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
|
python-Levenshtein
|
||||||
orjson
|
orjson
|
||||||
uvloop
|
uvloop
|
||||||
numba
|
|
||||||
elasticsearch[async]
|
elasticsearch[async]
|
||||||
|
|
Loading…
Reference in New Issue