Skip to content
This repository was archived by the owner on Apr 10, 2025. It is now read-only.

Commit 12a5c06

Browse files
committed
Merge branch 'reorganize-code' into 'master'
Reorganize the code and switch to debian:stable-slim See merge request ix.ai/mariadb-backup!6
2 parents e71afaa + afdbdc0 commit 12a5c06

File tree

4 files changed

+19
-17
lines changed

4 files changed

+19
-17
lines changed

.gitlab-ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1+
---
12
variables:
23
DOCKERHUB_REPO_NAME: mariadb-backup
34
ENABLE_ARM64: 'true'
45
ENABLE_ARMv7: 'true'
56
ENABLE_ARMv6: 'true'
7+
ENABLE_i386: 'true'
68

79
include:
810
- project: 'ix.ai/ci-templates'

Dockerfile

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
1-
FROM debian:buster
1+
FROM debian:stable-slim
22
LABEL 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

2323
ENV DB_PORT=3306 DB_USER=root
2424

25-
ENTRYPOINT ["/app/mariadb-backup.sh"]
25+
ENTRYPOINT ["/usr/local/bin/mariadb-backup"]

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2018 Namshi
3+
Copyright (c) 2018 Namshi, ix.ai
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal
File renamed without changes.

0 commit comments

Comments
 (0)