Commit f0defe8 1 parent 37710ef commit f0defe8 Copy full SHA for f0defe8
File tree 6 files changed +48
-5
lines changed
6 files changed +48
-5
lines changed Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ services:
45
45
container_name : openchurch_backend
46
46
build :
47
47
context : .
48
- dockerfile : Dockerfile
48
+ dockerfile : ./docker/php/ Dockerfile
49
49
volumes :
50
50
- .:/var/www/html
51
51
- ./usr/local/bin/docker-php-entrypoint:/usr/local/bin/docker-php-entrypoint
@@ -61,6 +61,26 @@ services:
61
61
environment :
62
62
SERVER_NAME : localhost api.openchurch.local admin.openchurch.local
63
63
DATABASE_URL : mysql://root:openchurch@db:3306/openchurch?serverVersion=11.5.2-MariaDB&charset=utf8mb4
64
+
65
+ python :
66
+ container_name : openchurch_python
67
+ build :
68
+ context : .
69
+ dockerfile : ./docker/python/Dockerfile
70
+ volumes :
71
+ - ./scripts:/app
72
+ - ./.env:/app/.env
73
+ entrypoint : ["sh", "/usr/local/bin/docker-python-entrypoint"]
74
+ command : ["/bin/sh"]
75
+ tty : true
76
+ stdin_open : true
77
+ networks :
78
+ - app-network
79
+ extra_hosts :
80
+ - " api.openchurch.local:host-gateway"
81
+ depends_on :
82
+ - backend
83
+
64
84
volumes :
65
85
openchurch_db_data : {}
66
86
File renamed without changes.
Original file line number Diff line number Diff line change
1
+ FROM alpine:3.20.3
2
+
3
+ WORKDIR /app
4
+
5
+ RUN apk update && apk add --update --no-cache \
6
+ python3 \
7
+ py3-pip \
8
+ && ln -sf python3 /usr/bin/python
9
+
10
+ COPY ./usr/local/bin/docker-python-entrypoint /usr/local/bin/
11
+ COPY .env /app/
Original file line number Diff line number Diff line change 1
1
# Created by venv; see https://docs.python.org/3/library/venv.html
2
- bin
3
- include
4
- lib
2
+ venv
3
+ .env
5
4
* .sqlite
6
5
pyvenv.cfg
7
6
pywikibot.lwp
Original file line number Diff line number Diff line change 20
20
from requests .adapters import HTTPAdapter
21
21
from urllib3 .util .retry import Retry
22
22
23
- load_dotenv (dotenv_path = '../. env' )
23
+ load_dotenv (dotenv_path = '.env' )
24
24
sentry_sdk .init (dsn = os .getenv ('SENTRY_DSN_SYNCHRO' ))
25
25
26
26
endpoint = "https://query.wikidata.org/bigdata/namespace/wdq/sparql"
Original file line number Diff line number Diff line change
1
+ #! /bin/sh
2
+ set -e
3
+
4
+ python3 -m venv ./venv
5
+
6
+ . ./venv/bin/activate
7
+
8
+ pip install -r requirements.txt
9
+
10
+ pip uninstall urllib3 -y \
11
+ && pip install urllib3
12
+
13
+ exec " $@ "
You can’t perform that action at this time.
0 commit comments