Skip to content

Commit 4a24da4

Browse files
authored
Merge pull request #1439 from garberg/build_docker_with_instr_ldap
Build images with optional dependencies
2 parents eaba84f + 359220f commit 4a24da4

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

Dockerfile.nipapd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ ENV REQUESTS_CA_BUNDLE=/etc/ssl/certs/ca-certificates.crt
6767
COPY nipap /nipap
6868
WORKDIR /nipap
6969
RUN pip3 --no-input install --break-system-packages --no-cache-dir envtpl==0.7.2 \
70-
&& pip3 --no-input install -I --break-system-packages --no-cache-dir .
70+
&& pip3 --no-input install -I --break-system-packages --no-cache-dir '.[instrumentation,ldap_auth]'
7171

7272
EXPOSE 1337
7373
ENV LISTEN_ADDRESS=0.0.0.0 LISTEN_PORT=1337 SYSLOG=false DB_PORT=5432 DB_SSLMODE=disable DB_NAME=nipap

Dockerfile.www

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@ COPY pynipap /pynipap
6464
COPY nipap /nipap
6565
COPY nipap-www /nipap-www
6666
RUN pip3 --no-input install --break-system-packages --no-cache-dir ./pynipap/ && \
67-
pip3 --no-input install --break-system-packages --no-cache-dir ./nipap/ && \
68-
pip3 --no-input install --break-system-packages --no-cache-dir ./nipap-www/ && \
67+
pip3 --no-input install --break-system-packages --no-cache-dir './nipap/[instrumentation,ldap_auth]' && \
68+
pip3 --no-input install --break-system-packages --no-cache-dir './nipap-www/[instrumentation,ldap_auth]' && \
6969
mkdir -p /etc/nipap/www/ && cp ./nipap-www/nipap-www.wsgi /etc/nipap/www/
7070

7171
EXPOSE 80

nipap-www/pyproject.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,10 @@ instrumentation = [
3636
"opentelemetry-util-http==0.50b0"
3737
]
3838

39+
ldap_auth = [
40+
"python-ldap==3.4.4"
41+
]
42+
3943
[project.urls]
4044
Homepage = "http://SpriteLink.github.io/NIPAP"
4145

0 commit comments

Comments
 (0)