-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5642 from mailcow/staging
2024-01
- Loading branch information
Showing
47 changed files
with
1,333 additions
and
347 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
FROM alpine:3.17 | ||
FROM alpine:3.19 | ||
|
||
LABEL maintainer "The Infrastructure Company GmbH <[email protected]>" | ||
LABEL maintainer "The Infrastructure Company GmbH GmbH <[email protected]>" | ||
|
||
ARG PIP_BREAK_SYSTEM_PACKAGES=1 | ||
RUN apk upgrade --no-cache \ | ||
&& apk add --update --no-cache \ | ||
bash \ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,24 @@ | ||
FROM clamav/clamav:1.0.3_base | ||
FROM alpine:3.19 | ||
|
||
LABEL maintainer "The Infrastructure Company GmbH <[email protected]>" | ||
LABEL maintainer "The Infrastructure Company GmbH GmbH <[email protected]>" | ||
|
||
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 | ||
|
||
# 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 [] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,22 @@ | ||
FROM alpine:3.17 | ||
FROM alpine:3.19 | ||
|
||
LABEL maintainer "The Infrastructure Company GmbH <[email protected]>" | ||
LABEL maintainer "The Infrastructure Company GmbH GmbH <[email protected]>" | ||
|
||
ARG PIP_BREAK_SYSTEM_PACKAGES=1 | ||
WORKDIR /app | ||
|
||
RUN apk add --update --no-cache python3 \ | ||
py3-pip \ | ||
openssl \ | ||
tzdata \ | ||
py3-psutil \ | ||
py3-redis \ | ||
py3-async-timeout \ | ||
&& pip3 install --upgrade pip \ | ||
fastapi \ | ||
uvicorn \ | ||
aiodocker \ | ||
docker \ | ||
aioredis | ||
docker | ||
RUN mkdir /app/modules | ||
|
||
COPY docker-entrypoint.sh /app/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.