Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

armcow64: dockerized #5219

Closed
wants to merge 156 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
156 commits
Select commit Hold shift + click to select a range
d6c3c58
Merge pull request #5360 from mailcow/staging
FreddleSpl0it Aug 3, 2023
55fbfbf
[Rspamd] Update to 3.6 (Ratelimit fix)
DerLinkman Aug 4, 2023
70121e6
Updated Clamd Building to be x86 and ARM Compatible
DerLinkman Apr 26, 2023
563562c
Added new SOGo ARM64 Compatible Repo
DerLinkman Apr 30, 2023
b06116a
Changed Maintainer to tinc within Dockerfiles
DerLinkman Apr 30, 2023
da49b76
Removed Test self compiled SOGo Dockerfile
DerLinkman Apr 30, 2023
a602dd4
Rebased Dovecot on Alpine 3.17 instead Bullseye (ARM64 Support)
DerLinkman May 2, 2023
c58fcdd
Switched to Alpine Edge (for IMAPSYNC Deps)
DerLinkman May 2, 2023
b5d89d9
Optimized CLAMAV Builds to match exact version instead of Repo
DerLinkman May 3, 2023
c134f0b
Changed Dovecot Base to Bullseye again (Self compile)
DerLinkman May 3, 2023
d751d4f
Optimized Build Process for Dovecot
DerLinkman May 3, 2023
27b274a
[Rspamd] Removed Arch Tag for Dockerfile
DerLinkman May 5, 2023
6e79815
Added missing Labels to Dockerfiles
DerLinkman May 5, 2023
f7ce3e7
Updated docker-compose.yml for Public testing
DerLinkman May 5, 2023
1be0fad
Added missing solr ARM64 Image
DerLinkman May 5, 2023
5ba1fb6
Fixed DockerAPI Exception (due to incompatible urllib3)
DerLinkman May 8, 2023
c948a6c
Removed fixed urllib3 due to fixed docker python module
DerLinkman May 8, 2023
384307b
Small fixes for CLAMD Health Check
DerLinkman May 12, 2023
ed491fb
Rebased Dovecot on Alpine + fixed logging
DerLinkman Aug 3, 2023
7f16787
Changed Compose back to Versioning
DerLinkman Aug 4, 2023
3e54569
Clamd using Alpine Packages instead self compile
DerLinkman Aug 4, 2023
9ead71d
Updated unbound image to first multi arch ver.
DerLinkman Aug 4, 2023
0004677
Update clamd for first multi arch ver.
DerLinkman Aug 4, 2023
5b28bf1
Added icu-full-data support for Dovecot
DerLinkman Oct 24, 2023
3ba1bae
Update Dovecot Dockerfile
DerLinkman Oct 16, 2023
89bf4b2
Changed Base to Alpine 3.19 + Added Lockfile:Simple from repo
DerLinkman Dec 11, 2023
ee1833e
[Rspamd] add domain wide footer
FreddleSpl0it May 8, 2023
24d673d
[Rspamd] domain-wide-footer add jinja templating
FreddleSpl0it Sep 12, 2023
785fd6c
[Rspamd] domain-wide-footer add more template vars
FreddleSpl0it Sep 13, 2023
643efd3
Update thollander/actions-comment-pull-request action to v2.4.1 (#5377)
renovate[bot] Aug 6, 2023
92b6049
Update thollander/actions-comment-pull-request action to v2.4.2 (#5379)
renovate[bot] Aug 7, 2023
af7a35b
[Rspamd] remove X-Moo-Tag header if unnecessary
FreddleSpl0it Aug 7, 2023
79a603d
Fixed Branch checkout in generate_config.sh
DerLinkman Aug 10, 2023
db7590f
Update dependency nextcloud/server to v27.0.2
renovate[bot] Aug 14, 2023
99c9d96
Translations update from Weblate (#5390)
milkmaker Aug 19, 2023
9210ee2
Fix CPU load of dockerapi container
mstilkerich Aug 5, 2023
f48141c
Set asyncio timeout to 0 for yielding
mstilkerich Aug 12, 2023
bbeee10
Update site.conf: server_names_hash_bucket_size 128
Dexus Aug 12, 2023
1c01545
Update listen_ssl.template deprecated http2 on listener
Dexus Aug 12, 2023
d1576a7
[Web] translated datatables to CZ and SK
feldsam Sep 2, 2023
0ce1ae8
Update actions/checkout action to v4 (#5409)
renovate[bot] Sep 4, 2023
19ee23c
Translations update from Weblate (#5410)
milkmaker Sep 4, 2023
d322e1b
[Web] dark mode logo support
feldsam Sep 3, 2023
2090544
[Web] Filter tables by Domain where possible
feldsam Sep 3, 2023
8205f8c
[Web] revisited dark mode theme, enhanced colors
feldsam Apr 8, 2023
83e68a2
[Web] fixed new mailbox settings buttons styling
feldsam Sep 1, 2023
51c071e
[Web] styling enhancements
feldsam Sep 1, 2023
9fc3ca8
[Web] checkbox styling
feldsam Sep 2, 2023
2b5e383
[Web] Ratelimit settings as input group
feldsam Sep 3, 2023
f482fa5
[Web] edit mailbox template - fixed settigns buttons styling
feldsam Sep 3, 2023
1105b0d
[Web] domain and alias domain edit - translated dkim “domain”
feldsam Sep 3, 2023
2cd32ad
[Web] edit object - added space after heaading
feldsam Sep 3, 2023
33452bb
[Web] standarize select box dropdown buttons
feldsam Sep 3, 2023
07ee69f
[Web] fixed add domain save action button group styling
feldsam Sep 3, 2023
9e9cfc1
[Web] mobile devices styling fixes and enhancements
feldsam Sep 3, 2023
7bab09b
[Web] mobile devices - scroll window to opened tab
feldsam Sep 3, 2023
71657d0
[Web] mailboxes - remove tab dropdown, if not admin
feldsam Sep 3, 2023
8f5f9e5
[Web] Edit Domain/Mailbox - added collapsible tabs for mobile devices
feldsam Sep 3, 2023
f571c17
[web] apple config app passwords enhancements + translations
feldsam Nov 26, 2021
3371240
Update rebuild_backup_image.yml
MAGICCC Jul 24, 2023
20783ce
Fix typo in German translation: (#5414)
papillon81 Sep 11, 2023
0d3c12d
Update docker/build-push-action action to v5 (#5415)
renovate[bot] Sep 12, 2023
e643d55
Update docker/login-action action to v3 (#5416)
renovate[bot] Sep 12, 2023
920bd0a
Update docker/setup-qemu-action action to v3 (#5418)
renovate[bot] Sep 12, 2023
4c70890
Update docker/setup-buildx-action action to v3 (#5417)
renovate[bot] Sep 12, 2023
29987ce
[Rspamd] domain-wide-footer update description
FreddleSpl0it Sep 13, 2023
233e7d6
[Web] move domain-wide-footer vars info to lang files
FreddleSpl0it Sep 13, 2023
12a2ee6
Update dependency nextcloud/server to v27.1.0
renovate[bot] Sep 16, 2023
ac8619d
Update dependency nextcloud/server to v27.1.1 (#5426)
renovate[bot] Sep 26, 2023
62685d1
[Web] Updated lang.nl-nl.json (#5431)
milkmaker Sep 27, 2023
595f26a
mailcow.github.io -> docs.mailcow.email
MAGICCC Sep 27, 2023
6bdb366
Translations update from Weblate (#5434)
milkmaker Sep 30, 2023
8731703
update postscreen_access.cidr
milkmaker Oct 1, 2023
6e34137
Update dependency nextcloud/server to v27.1.2
renovate[bot] Oct 5, 2023
086e522
Fix renovate.json to allow version extracts
MAGICCC Oct 2, 2023
d21cdc0
improved "FQDN" check
AlexHuebi Sep 2, 2023
2a7d516
"temp" change - removed "git remote set-url"
AlexHuebi Sep 11, 2023
391a7ce
fixed remote url override
AlexHuebi Sep 11, 2023
6845b71
fixed remote url override
AlexHuebi Sep 11, 2023
fc8234d
fixed remote url override
AlexHuebi Sep 11, 2023
ac4bd1e
Added Colors, cause there fancy :) + Added in generate_config.sh
DerLinkman Oct 5, 2023
dd3dd89
change column name
MAGICCC Oct 5, 2023
d765c40
[Web] Avoid setting default ACL on create when nothing is selected
FreddleSpl0it Oct 6, 2023
13d2e05
Update Dovecot Wiki Link for new mailcows
DerLinkman Oct 10, 2023
de455bf
[Unbound] Added Healthcheck (nslookup)
DerLinkman Oct 11, 2023
c193a1a
[Compose] Added Healthcheck startup logics
DerLinkman Oct 11, 2023
348fdc2
enable search in bodies from EAS
cero1988 Sep 2, 2023
f04a470
Update data/conf/sogo/sogo.conf
cero1988 Sep 4, 2023
e200aaa
Add comment about experimental thingy
DerLinkman Oct 12, 2023
5ebde41
[Postfix] fix extra.cf updating
Habetdin Aug 4, 2023
990e093
Update dependency phpredis/phpredis to v6
renovate[bot] Oct 5, 2023
062d5bb
Update dependency php/pecl-mail-mailparse to v3.1.6
renovate[bot] Oct 5, 2023
04ca2c3
Update Dockerfile
MAGICCC Oct 8, 2023
8c018ae
Update dependency composer/composer to v2.6.5
renovate[bot] Oct 6, 2023
576d1d0
Reverted restart action removal in docker-compose.yml for older 2.X c…
DerLinkman Oct 12, 2023
ef3da91
Update README.md
BandhiyaHardik Oct 30, 2023
ab6f7fc
Translations update from Weblate (#5460)
milkmaker Oct 12, 2023
e1f8606
Updated compose version info color from red to yellow
DerLinkman Oct 13, 2023
85e2570
pt-br translation (#5470)
pedroluccasc Oct 14, 2023
9710e1e
[Web] Updated lang.pt-br.json (#5471)
milkmaker Oct 14, 2023
e80d7c7
Translations update from Weblate (#5472)
milkmaker Oct 14, 2023
06f8423
Added Dev Mode option for git diff creation
DerLinkman Oct 19, 2023
06aa869
Improved docker image pruning
DerLinkman Oct 19, 2023
dd21a65
Update thollander/actions-comment-pull-request action to v2.4.3 (#5484)
renovate[bot] Oct 21, 2023
2c8004d
Update lang.fr-fr.json (#5492)
yvan-algoo Oct 25, 2023
bad47e0
[Web] Updated lang.si-si.json (#5494)
milkmaker Oct 25, 2023
7707443
[Web] Updated lang.si-si.json (#5499)
milkmaker Oct 28, 2023
ba12cad
Update dependency nextcloud/server to v27.1.3
renovate[bot] Oct 28, 2023
7a7b40c
[web] sk and cz translations (#5502)
feldsam Oct 30, 2023
4e219b8
[Web] Updated lang.hu-hu.json (#5505)
milkmaker Oct 30, 2023
baa3c4f
[Web] fix broken github links in changelog
FreddleSpl0it Oct 30, 2023
aa79ad8
Fix for git < v1.7.5
SecT0uch Oct 12, 2023
90d2449
Update lang.tr-tr.json (#5510)
burakbuylu Nov 1, 2023
7f2bb17
update postscreen_access.cidr
milkmaker Nov 1, 2023
8b8e207
Added new Sieve Template. Thanks to @EricThi
Nov 2, 2023
e83e586
Fix renovate regex
MAGICCC Nov 12, 2023
f58a072
Update nextcloud.conf when updating nextcloud
MAGICCC Oct 27, 2023
483c44c
Update nextcloud.conf
MAGICCC Oct 27, 2023
88ecc31
Update actions/checkout action to v4
renovate[bot] Nov 16, 2023
f412826
Update actions/cache action to v3
renovate[bot] Nov 16, 2023
ea09e0f
Allow `--dry` IMAPsync
raph-topo Nov 9, 2023
33cdfea
Add Dry Mode Option for ImapSyncs (Button)
Nov 15, 2023
2fe8666
Tweaked German Translation
Nov 15, 2023
8de8c53
Added f1f2 + sorted whitelist for imapsync
Nov 16, 2023
766dc4f
fix: support utf-8 in password synchronization
Quiwy Nov 14, 2023
83401d6
T.: Added a script for generating CAA records
artemislena Oct 23, 2023
e68ffdd
Translations update from Weblate (#5538)
milkmaker Nov 16, 2023
d1bc11b
Ignore everything in vendor subdirs
MAGICCC Nov 18, 2023
b63114c
[Web] escape quarantine html
FreddleSpl0it Nov 21, 2023
340abb7
[Rspamd] workaround - remove "--\x0D\x0A" prefix from rewritten cts
FreddleSpl0it Nov 20, 2023
3924882
[Rspamd] domain wide footer check for empty strings
FreddleSpl0it Nov 21, 2023
5e56f4e
Fix repo change when running in forced mode
Nov 21, 2023
b206c39
[Web] Updated lang.cs-cz.json (#5557)
milkmaker Nov 23, 2023
aea973e
[Web] add api get spam-score endpoint
FreddleSpl0it Oct 20, 2023
9ed8f63
Update dependency nextcloud/server to v27.1.4
renovate[bot] Nov 23, 2023
4a2d489
Add Mastodon Links
Nov 27, 2023
54d587c
Use full mastodon name instead
Nov 27, 2023
a2db15c
[Web][Rspamd] implement custom mailbox attributes and improve domain …
FreddleSpl0it Nov 23, 2023
4fa1f37
[Rspamd] fix excluding alias from domain wide footer
FreddleSpl0it Nov 27, 2023
7cc4421
[Web] check if mbox exists before excluding it from domain wide footer
FreddleSpl0it Nov 27, 2023
a0f5979
Detect docker compose version of form v2.x
startnow65 Nov 25, 2023
8471ce3
Implemented improved check in update.sh as well.
Nov 28, 2023
cd702fa
[Web] Updated lang.fi-fi.json (#5567)
milkmaker Nov 28, 2023
91ea38f
Translations update from Weblate (#5569)
milkmaker Nov 30, 2023
429baf9
[Web] Updated lang.pt-br.json (#5573)
milkmaker Dec 2, 2023
349a9ec
update postscreen_access.cidr
milkmaker Dec 1, 2023
b413fcb
[Rspamd] Removed global ratelimit override
Dec 7, 2023
a8ac6dc
[Rspamd] Added customizable global ratelimit file (disabled by default)
Dec 7, 2023
07275f3
[UI] Fixed showing of "disabled" placeholder for ratelimits in domains
Dec 7, 2023
c615c8d
Update Rspamd Image to 1.94
Dec 7, 2023
1ba5529
Update actions/stale action to v9 (#5579)
renovate[bot] Dec 7, 2023
f365899
Translations update from Weblate (#5583)
milkmaker Dec 10, 2023
2c2902c
[Rspamd] Update to 3.6 (Ratelimit fix)
DerLinkman Aug 4, 2023
7656be9
Updated Clamd Building to be x86 and ARM Compatible
DerLinkman Apr 26, 2023
fca8c14
Changed Compose back to Versioning
DerLinkman Aug 4, 2023
377ccca
Update clamd for first multi arch ver.
DerLinkman Aug 4, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
blank_issues_enabled: false
contact_links:
- name: ❓ Community-driven support
url: https://mailcow.github.io/mailcow-dockerized-docs/#get-support
url: https://docs.mailcow.email/#get-support
about: Please use the community forum for questions or assistance
- name: 🚨 Report a security vulnerability
url: https://www.servercow.de/anfrage?lang=en
Expand Down
4 changes: 2 additions & 2 deletions .github/renovate.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"baseBranches": ["staging"],
"enabledManagers": ["github-actions", "regex", "docker-compose"],
"ignorePaths": [
"data\/web\/inc\/lib\/vendor\/matthiasmullie\/minify\/**"
"data\/web\/inc\/lib\/vendor\/**"
],
"regexManagers": [
{
Expand All @@ -24,7 +24,7 @@
{
"fileMatch": ["(^|/)Dockerfile[^/]*$"],
"matchStrings": [
"#\\srenovate:\\sdatasource=(?<datasource>.*?) depName=(?<depName>.*?)( versioning=(?<versioning>.*?))?\\s(ENV|ARG) .*?_VERSION=(?<currentValue>.*)\\s"
"#\\srenovate:\\sdatasource=(?<datasource>.*?) depName=(?<depName>.*?)( versioning=(?<versioning>.*?))?( extractVersion=(?<extractVersion>.*?))?\\s(ENV|ARG) .*?_VERSION=(?<currentValue>.*)\\s"
]
}
]
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/check_prs_if_on_staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
if: github.event.pull_request.base.ref != 'staging' #check if the target branch is not staging
steps:
- name: Send message
uses: thollander/[email protected].0
uses: thollander/[email protected].3
with:
GITHUB_TOKEN: ${{ secrets.CHECKIFPRISSTAGING_ACTION_PAT }}
message: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/close_old_issues_and_prs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
pull-requests: write
steps:
- name: Mark/Close Stale Issues and Pull Requests 🗑️
uses: actions/stale@v8.0.0
uses: actions/stale@v9.0.0
with:
repo-token: ${{ secrets.STALE_ACTION_PAT }}
days-before-stale: 60
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/image_builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
- "watchdog-mailcow"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Setup Docker
run: |
curl -sSL https://get.docker.com/ | CHANNEL=stable sudo sh
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr_to_nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Run the Action
Expand Down
11 changes: 6 additions & 5 deletions .github/workflows/rebuild_backup_image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,24 +11,25 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Set up QEMU
uses: docker/setup-qemu-action@v2
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
uses: docker/setup-buildx-action@v3

- name: Login to Docker Hub
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
username: ${{ secrets.BACKUPIMAGEBUILD_ACTION_DOCKERHUB_USERNAME }}
password: ${{ secrets.BACKUPIMAGEBUILD_ACTION_DOCKERHUB_TOKEN }}

- name: Build and push
uses: docker/build-push-action@v4
uses: docker/build-push-action@v5
with:
context: .
platforms: linux/amd64,linux/arm64
file: data/Dockerfiles/backup/Dockerfile
push: true
tags: mailcow/backup:latest
2 changes: 1 addition & 1 deletion .github/workflows/update_postscreen_access_list.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Generate postscreen_access.cidr
run: |
Expand Down
4 changes: 2 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ When a problem occurs, then always for a reason! What you want to do in such a c
1. Read your logs; follow them to see what the reason for your problem is.
2. Follow the leads given to you in your logfiles and start investigating.
3. Restarting the troubled service or the whole stack to see if the problem persists.
4. Read the [documentation](https://mailcow.github.io/mailcow-dockerized-docs/) of the troubled service and search its bugtracker for your problem.
4. Read the [documentation](https://docs.mailcow.email/) of the troubled service and search its bugtracker for your problem.
5. Search our [issues](https://github.com/mailcow/mailcow-dockerized/issues) for your problem.
6. [Create an issue](https://github.com/mailcow/mailcow-dockerized/issues/new/choose) over at our GitHub repository if you think your problem might be a bug or a missing feature you badly need. But please make sure, that you include **all the logs** and a full description to your problem.
7. Ask your questions in our community-driven [support channels](https://mailcow.github.io/mailcow-dockerized-docs/#community-support-and-chat).
7. Ask your questions in our community-driven [support channels](https://docs.mailcow.email/#community-support-and-chat).
10 changes: 7 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

[![Translation status](https://translate.mailcow.email/widgets/mailcow-dockerized/-/translation/svg-badge.svg)](https://translate.mailcow.email/engage/mailcow-dockerized/)
[![Twitter URL](https://img.shields.io/twitter/url/https/twitter.com/mailcow_email.svg?style=social&label=Follow%20%40mailcow_email)](https://twitter.com/mailcow_email)
![Mastodon Follow](https://img.shields.io/mastodon/follow/109388212176073348?domain=https%3A%2F%2Fmailcow.social&label=Follow%20%40doncow%40mailcow.social&link=https%3A%2F%2Fmailcow.social%2F%40doncow)


## Want to support mailcow?

Expand All @@ -13,7 +15,7 @@ Or just spread the word: moo.

## Info, documentation and support

Please see [the official documentation](https://mailcow.github.io/mailcow-dockerized-docs/) for installation and support instructions. 🐄
Please see [the official documentation](https://docs.mailcow.email/) for installation and support instructions. 🐄

🐛 **If you found a critical security issue, please mail us to [info at servercow.de](mailto:[email protected]).**

Expand All @@ -25,7 +27,9 @@ Please see [the official documentation](https://mailcow.github.io/mailcow-docker

[Telegram mailcow Off-Topic channel](https://t.me/mailcowOfftopic)

[Official Twitter Account](https://twitter.com/mailcow_email)
[Official 𝕏 (Twitter) Account](https://twitter.com/mailcow_email)

[Official Mastodon Account](https://mailcow.social/@doncow)

Telegram desktop clients are available for [multiple platforms](https://desktop.telegram.org). You can search the groups history for keywords.

Expand All @@ -38,4 +42,4 @@ mailcow is a registered word mark of The Infrastructure Company GmbH, Parkstr. 4

The project is managed and maintained by The Infrastructure Company GmbH.

Originated from @andryyy (André)
Originated from @andryyy (André)
14 changes: 8 additions & 6 deletions data/Dockerfiles/clamd/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,20 +1,22 @@
FROM clamav/clamav:1.0.1-1_base
FROM alpine:3.18

LABEL maintainer "André Peters <andre.peters@servercow.de>"
LABEL maintainer "The Infrastructure Company <info@servercow.de>"

RUN apk upgrade --no-cache \
&& apk add --update --no-cache \
rsync \
clamav \
bind-tools \
bash
bash \
tini

# init
COPY clamd.sh /clamd.sh
RUN chmod +x /sbin/tini
COPY clamd.sh ./

# healthcheck
COPY healthcheck.sh /healthcheck.sh
COPY clamdcheck.sh /usr/local/bin
RUN chmod +x /healthcheck.sh
RUN chmod +x /usr/local/bin/clamdcheck.sh
HEALTHCHECK --start-period=6m CMD "/healthcheck.sh"

ENTRYPOINT []
Expand Down
14 changes: 14 additions & 0 deletions data/Dockerfiles/clamd/clamdcheck.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/bin/sh

set -eu

if [ "${CLAMAV_NO_CLAMD:-}" != "false" ]; then
if [ "$(echo "PING" | nc localhost 3310)" != "PONG" ]; then
echo "ERROR: Unable to contact server"
exit 1
fi

echo "Clamd is up"
fi

exit 0
6 changes: 3 additions & 3 deletions data/Dockerfiles/dockerapi/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,8 +198,8 @@ async def handle_pubsub_messages(channel: aioredis.client.PubSub):

while True:
try:
async with async_timeout.timeout(1):
message = await channel.get_message(ignore_subscribe_messages=True)
async with async_timeout.timeout(60):
message = await channel.get_message(ignore_subscribe_messages=True, timeout=30)
if message is not None:
# Parse message
data_json = json.loads(message['data'].decode('utf-8'))
Expand Down Expand Up @@ -244,7 +244,7 @@ async def handle_pubsub_messages(channel: aioredis.client.PubSub):
else:
dockerapi.logger.error("Unknwon PubSub recieved - %s" % json.dumps(data_json))

await asyncio.sleep(0.01)
await asyncio.sleep(0.0)
except asyncio.TimeoutError:
pass

Expand Down
Loading