Skip to content

Commit

Permalink
Remove pylibmc dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
np5 committed Feb 8, 2024
1 parent 6e2d853 commit 9665ecf
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 14 deletions.
10 changes: 2 additions & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@ RUN apt-get update && \
python3-dev \
# dep for psycopg2
libpq-dev \
# dep for pylibmc
libmemcached-dev \
# dep for python-ldap
libldap2-dev \
libsasl2-dev \
Expand Down Expand Up @@ -171,9 +169,7 @@ RUN apt-get update && \
apt-get autoremove -y && \
apt-get install -y --no-install-recommends \
# pycurl for kombu[sqs]
libcurl4-openssl-dev \
# for pylibmc
libmemcached11 && \
libcurl4-openssl-dev && \
# clean cache
rm -rf /var/lib/apt/lists/*

Expand All @@ -185,9 +181,7 @@ RUN apt-get update && \
apt-get autoremove -y && \
apt-get install -y --no-install-recommends \
# pycurl for kombu[sqs]
libcurl4-openssl-dev \
# for pylibmc
libmemcached11 && \
libcurl4-openssl-dev && \
# clean cache
rm -rf /var/lib/apt/lists/*

Expand Down
12 changes: 11 additions & 1 deletion conf/puppet/zentral/base.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,17 @@
"*"
],
"POSTGRES_HOST": "{{ env:POSTGRES_HOST }}",
"POSTGRES_PASSWORD": "{{ env:POSTGRES_PASSWORD }}"
"POSTGRES_PASSWORD": "{{ env:POSTGRES_PASSWORD }}",
"CACHES": {
"default": {
"BACKEND": "django_redis.cache.RedisCache",
"LOCATION": "redis://redis:6379/1",
"OPTIONS": {
"CLIENT_CLASS": "django_redis.client.DefaultClient",
"IGNORE_EXCEPTIONS": true
}
}
}
},
"queues": {
"backend": "zentral.core.queues.backends.kombu",
Expand Down
12 changes: 11 additions & 1 deletion conf/syslog/zentral/base.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,17 @@
"*"
],
"POSTGRES_HOST": "{{ env:POSTGRES_HOST }}",
"POSTGRES_PASSWORD": "{{ env:POSTGRES_PASSWORD }}"
"POSTGRES_PASSWORD": "{{ env:POSTGRES_PASSWORD }}",
"CACHES": {
"default": {
"BACKEND": "django_redis.cache.RedisCache",
"LOCATION": "redis://redis:6379/1",
"OPTIONS": {
"CLIENT_CLASS": "django_redis.client.DefaultClient",
"IGNORE_EXCEPTIONS": true
}
}
}
},
"queues": {
"backend": "zentral.core.queues.backends.kombu",
Expand Down
1 change: 0 additions & 1 deletion constraints.txt
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,6 @@ pycparser==2.21
pycryptodomex==3.15.0
pycurl==7.44.1
pydantic==1.9.1
pylibmc==1.6.1
pyotp==2.6.0
pyparsing==3.0.9
pysaml2==7.1.2
Expand Down
3 changes: 0 additions & 3 deletions requirements_aws.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,3 @@ kombu[sqs]<6 # <6 for compatibility with celery<6
# to make sure that the celery workers will start
# TODO: understand why!!!
pycurl

# Elasticache memcached
pylibmc

0 comments on commit 9665ecf

Please sign in to comment.