Skip to content

Commit

Permalink
Merge branch 'reorganize-code' into 'master'
Browse files Browse the repository at this point in the history
Reorganize the code and switch to debian:stable-slim

See merge request ix.ai/mariadb-backup!6
  • Loading branch information
tlex committed Nov 1, 2020
2 parents e71afaa + afdbdc0 commit 12a5c06
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 17 deletions.
2 changes: 2 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
---
variables:
DOCKERHUB_REPO_NAME: mariadb-backup
ENABLE_ARM64: 'true'
ENABLE_ARMv7: 'true'
ENABLE_ARMv6: 'true'
ENABLE_i386: 'true'

include:
- project: 'ix.ai/ci-templates'
Expand Down
32 changes: 16 additions & 16 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
FROM debian:buster
FROM debian:stable-slim
LABEL maintainer="[email protected]" \
ai.ix.repository="ix.ai/mariadb-backup"

ENV DEBIAN_FRONTEND=noninteractive TERM=linux

COPY src/ /app
VOLUME ["/backup"]
WORKDIR /backup

RUN chmod 755 /app/*.sh && \
groupadd -g 666 mybackup && \
useradd -u 666 -g 666 -d /backup -c "MariaDB Backup User" mybackup && \
apt-get update && \
apt-get -y dist-upgrade && \
apt-get install -y mydumper && \
apt-get -y --purge autoremove && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* && \
RUN set -xeu; \
export DEBIAN_FRONTEND=noninteractive; \
export TERM=linux; \
groupadd -g 666 mybackup; \
useradd -u 666 -g 666 -d /backup -c "MariaDB Backup User" mybackup; \
apt-get update; \
apt-get -y dist-upgrade; \
apt-get install -y mydumper; \
apt-get -y --purge autoremove; \
apt-get clean; \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /var/cache/*; \
find /var/log -type f | while read f; do echo -ne '' > $f; done;

VOLUME ["/backup"]
WORKDIR /backup
COPY mariadb-backup.sh /usr/local/bin/mariadb-backup

ENV DB_PORT=3306 DB_USER=root

ENTRYPOINT ["/app/mariadb-backup.sh"]
ENTRYPOINT ["/usr/local/bin/mariadb-backup"]
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2018 Namshi
Copyright (c) 2018 Namshi, ix.ai

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

0 comments on commit 12a5c06

Please sign in to comment.