This repository was archived by the owner on Apr 10, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +19
-17
lines changed
Expand file tree Collapse file tree 4 files changed +19
-17
lines changed Original file line number Diff line number Diff line change 1+ ---
12variables :
23 DOCKERHUB_REPO_NAME : mariadb-backup
34 ENABLE_ARM64 : ' true'
45 ENABLE_ARMv7 : ' true'
56 ENABLE_ARMv6 : ' true'
7+ ENABLE_i386 : ' true'
68
79include :
810 - project : ' ix.ai/ci-templates'
Original file line number Diff line number Diff line change 1- FROM debian:buster
1+ FROM debian:stable-slim
22LABEL maintainer="docker@ix.ai" \
33 ai.ix.repository="ix.ai/mariadb-backup"
44
5- ENV DEBIAN_FRONTEND=noninteractive TERM=linux
6-
7- COPY src/ /app
5+ VOLUME ["/backup" ]
6+ WORKDIR /backup
87
9- RUN chmod 755 /app/*.sh && \
10- groupadd -g 666 mybackup && \
11- useradd -u 666 -g 666 -d /backup -c "MariaDB Backup User" mybackup && \
12- apt-get update && \
13- apt-get -y dist-upgrade && \
14- apt-get install -y mydumper && \
15- apt-get -y --purge autoremove && \
16- apt-get clean && \
17- rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* && \
8+ RUN set -xeu; \
9+ export DEBIAN_FRONTEND=noninteractive; \
10+ export TERM=linux; \
11+ groupadd -g 666 mybackup; \
12+ useradd -u 666 -g 666 -d /backup -c "MariaDB Backup User" mybackup; \
13+ apt-get update; \
14+ apt-get -y dist-upgrade; \
15+ apt-get install -y mydumper; \
16+ apt-get -y --purge autoremove; \
17+ apt-get clean; \
18+ rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /var/cache/*; \
1819 find /var/log -type f | while read f; do echo -ne '' > $f; done;
1920
20- VOLUME ["/backup" ]
21- WORKDIR /backup
21+ COPY mariadb-backup.sh /usr/local/bin/mariadb-backup
2222
2323ENV DB_PORT=3306 DB_USER=root
2424
25- ENTRYPOINT ["/app/ mariadb-backup.sh " ]
25+ ENTRYPOINT ["/usr/local/bin/ mariadb-backup" ]
Original file line number Diff line number Diff line change 11MIT License
22
3- Copyright (c) 2018 Namshi
3+ Copyright (c) 2018 Namshi, ix.ai
44
55Permission is hereby granted, free of charge, to any person obtaining a copy
66of this software and associated documentation files (the "Software"), to deal
File renamed without changes.
You can’t perform that action at this time.
0 commit comments