Skip to content

Instantly share code, notes, and snippets.

@re3turn
Last active March 4, 2017 14:31
Show Gist options
  • Save re3turn/762c976ef172a3cddf804420473fddfd to your computer and use it in GitHub Desktop.
Save re3turn/762c976ef172a3cddf804420473fddfd to your computer and use it in GitHub Desktop.
docker-gitlab日本語化
#! /bin/bash
set -e
SCRIPT_DIR=$(cd $(dirname $0) && pwd)
VER=v8.16.6
PATCH_VER=${1:=${VER}}
if [ ! -e /usr/bin/patch ]; then
apt-get update
apt-get install patch
fi
wget https://raw.githubusercontent.com/ksoichiro/gitlab-i18n-patch/master/patches/${PATCH_VER}/app_ja.patch
cd /home/git/gitlab
patch -p1 < ${SCRIPT_DIR}/app_ja.patch
rm -rf public/assets
export PATH=/home/git/gitlab/bin:$PATH
bundle exec rake assets:precompile RAILS_ENV=production
rm -f ${SCRIPT_DIR}/app_ja.patch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment