FROM gitlab/gitlab-ce:8.14.1-ce.0
MAINTAINER Tao Wang <twang2218@gmail.com>
RUN set -xe \
    && VERSION=v8.14.1 \
    && echo " # Generating translation patch ..." \
    && git clone https://gitlab.com/xhang/gitlab.git \
    && cd gitlab \
    && git diff ${VERSION}..${VERSION}-zh > ../zh_CN.diff \
    && echo " # Patching ..." \
    && patch -d /opt/gitlab/embedded/service/gitlab-rails -p1 < ../zh_CN.diff \
    && echo " # Cleaning ..." \
    && cd .. \
    && rm -rf gitlab \
    && rm *.diff

FROM gitlab/gitlab-ce:8.14.1-ce.1
MAINTAINER Tao Wang <twang2218@gmail.com>
RUN set -xe \
    && VERSION=v8.14.1 \
    && echo " # Generating translation patch ..." \
    && git clone https://gitlab.com/xhang/gitlab.git \
    && cd gitlab \
    && git diff ${VERSION}..${VERSION}-zh > ../zh_CN.diff \
    && echo " # Patching ..." \
    && patch -d /opt/gitlab/embedded/service/gitlab-rails -p1 < ../zh_CN.diff \
    && echo " # Cleaning ..." \
    && cd .. \
    && rm -rf gitlab \
    && rm *.diff

Update base image to gitlab/gitlab-ce:8.14.1-ce.1
Update base image to gitlab/gitlab-ce:8.14.1-ce.1

Signed-off-by: Tao Wang <7e7be65ebb8f801a58c89ee3c1a6a687290e952e@gmail.com>
