From 7bd456dde5ff32af34e4514591730a1c293162ac Mon Sep 17 00:00:00 2001 From: "flow.gunso" Date: Thu, 18 Apr 2019 15:18:30 +0200 Subject: [PATCH 1/5] Swith to the slim version of the base image --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index f828658..2e1a715 100644 --- a/Dockerfile +++ b/Dockerfile @@ -14,7 +14,7 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . -FROM debian:jessie +FROM debian:jessie-slim # Prevent the packages installation to halt. ENV DEBIAN_FRONTEND noninteractive From fd4d1314b3e1f66454897ef7c14b88815f91776c Mon Sep 17 00:00:00 2001 From: "flow.gunso" Date: Thu, 18 Apr 2019 16:06:23 +0200 Subject: [PATCH 2/5] Clean aptitude, remove several large files --- Dockerfile | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 2e1a715..8572c2f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -26,8 +26,13 @@ COPY assets/seafile.list /etc/apt/sources.list.d/ COPY utils/build/import-seafile-apt-key.sh / RUN /bin/bash /import-seafile-apt-key.sh ;\ apt-get update ;\ - apt-get install -o Dpkg::Options::="--force-confold" -y seafile-cli supervisor -RUN rm -f /import-seafile-apt-key.sh + apt-get install -o Dpkg::Options::="--force-confold" -y seafile-cli supervisor ;\ + apt-get autoclean ;\ + rm -f \ + /var/log/fsck/*.log \ + /var/log/apt/*.log \ + /var/cache/debconf/*.dat-old \ + /import-seafile-apt-key.sh # Create the seafile client user. ENV UNAME=seafuser From 16776c07b026bf3aca5227378ae6fb2f282897a7 Mon Sep 17 00:00:00 2001 From: "flow.gunso" Date: Thu, 18 Apr 2019 16:14:10 +0200 Subject: [PATCH 3/5] Improve autoclean apt, clean apt --- Dockerfile | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/Dockerfile b/Dockerfile index 8572c2f..56d653f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -26,13 +26,20 @@ COPY assets/seafile.list /etc/apt/sources.list.d/ COPY utils/build/import-seafile-apt-key.sh / RUN /bin/bash /import-seafile-apt-key.sh ;\ apt-get update ;\ - apt-get install -o Dpkg::Options::="--force-confold" -y seafile-cli supervisor ;\ - apt-get autoclean ;\ - rm -f \ - /var/log/fsck/*.log \ - /var/log/apt/*.log \ - /var/cache/debconf/*.dat-old \ - /import-seafile-apt-key.sh + apt-get install \ + -o Dpkg::Options::="--force-confold" \ + -y \ + seafile-cli \ + supervisor ;\ + apt-get clean ;\ + apt-get autoclean \ + -o APT::Clean-Installed=true ;\ + rm \ + -f \ + /var/log/fsck/*.log \ + /var/log/apt/*.log \ + /var/cache/debconf/*.dat-old \ + /import-seafile-apt-key.sh # Create the seafile client user. ENV UNAME=seafuser From f08a8e868664af336c4593e61036cb2032eea6aa Mon Sep 17 00:00:00 2001 From: "flow.gunso" Date: Thu, 18 Apr 2019 16:30:47 +0200 Subject: [PATCH 4/5] Document changes in v1.1.2 --- CHANGELOG.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index a4efdc7..bb8b25b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,5 @@ +### [1.1.2] - 2019/04/18 +- Slim down the Docker image, from 102MB to 67MB, gaining 35MB, reducing size by 34%. ### [1.1.1] - 2019/04/18 - Because of the infinite-seaf-cli-start loop, within the container was running many seaf-daemons. Now, the infinite loop stop the current seaf-daemon before starting it again. (see #3) ## [1.1.0] - 2019/04/09 From fa5a36187b9d63366d1f9aea9de3fcbf0c642f1e Mon Sep 17 00:00:00 2001 From: "flow.gunso" Date: Thu, 18 Apr 2019 16:31:41 +0200 Subject: [PATCH 5/5] Push weekly stable to 1.1.2, move 1.1.1 into permanent stable, improve overall readability --- README.md | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index a940afb..0bcd52c 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -[![1.1.1 build status](https://gitlab.com/flwgns-docker/seafile-client/badges/1.1.1/pipeline.svg)](https://gitlab.com/flwgns-docker/seafile-client/commits/1.1.1) +[![1.1.2 build status](https://gitlab.com/flwgns-docker/seafile-client/badges/1.1.2/pipeline.svg)](https://gitlab.com/flwgns-docker/seafile-client/commits/1.1.2) [![Docker pulls](https://img.shields.io/docker/pulls/flowgunso/seafile-client.svg)](https://hub.docker.com/r/flowgunso/seafile-client) [![Licensed under GPLv3](https://img.shields.io/badge/License-GPLv3-red.svg)](https://www.gnu.org/licenses/gpl-3.0) [![@gitlab.com/flwgns-docker/seafile-client](https://img.shields.io/badge/Code%20source-GitLab-red.svg)](https://gitlab.com/flwgns-docker/seafile-client/) @@ -11,21 +11,22 @@ Permanent stable releases will not be built again. You can rely on the weekly stable releases. They are stable. ## Weekly stable releases. -[`1`](https://gitlab.com/flwgns-docker/seafile-client/tags/1.1.1), -[`1.1`](https://gitlab.com/flwgns-docker/seafile-client/tags/1.1.1), -[`1.1.1`](https://gitlab.com/flwgns-docker/seafile-client/tags/1.1.1), -[`latest`](https://gitlab.com/flwgns-docker/seafile-client/tags/1.1.1) -(see tag/release [1.1.1](https://gitlab.com/flwgns-docker/seafile-client/tags/1.1.1)) +[`1`](https://gitlab.com/flwgns-docker/seafile-client/tags/1.1.2), +[`1.1`](https://gitlab.com/flwgns-docker/seafile-client/tags/1.1.2), +[`1.1.2`](https://gitlab.com/flwgns-docker/seafile-client/tags/1.1.2), +[`latest`](https://gitlab.com/flwgns-docker/seafile-client/tags/1.1.2) ## Permanent stable releases. -None at the moment. +[`1.1.1`](https://gitlab.com/flwgns-docker/seafile-client/tags/1.1.1): +Release previous to the slim down. Image is larger than 100MB. ## Developmental releases. -[`staging`](https://gitlab.com/flwgns-docker/seafile-client/tree/staging) -(see branch [staging](https://gitlab.com/flwgns-docker/seafile-client/tree/staging)) +[`staging`](https://gitlab.com/flwgns-docker/seafile-client/tree/staging): +The purpose of this release is to test feature and make them available to anyone. ## Obsolete releases. -[`1.1.0`](https://gitlab.com/flwgns-docker/seafile-client/tags/1.1.0) see [issue #3](https://gitlab.com/flwgns-docker/seafile-client/issues/3). +[`1.1.0`](https://gitlab.com/flwgns-docker/seafile-client/tags/1.1.0) +see [issue #3](https://gitlab.com/flwgns-docker/seafile-client/issues/3). [`1.0`](https://gitlab.com/flwgns-docker/seafile-client/tags/1.0.6) and it's revision [`1.0.6`](https://gitlab.com/flwgns-docker/seafile-client/tags/1.0.6),