mirror of
https://github.com/sameersbn/docker-gitlab.git
synced 2026-01-18 13:58:25 +00:00
Add SKIP_STORAGE_VALIDATION to let assets:precompile
This is the new way how we could resolve the problem with assets:precompile since 8.10.0 GITLAB MR Link: https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/5478/commits
This commit is contained in:
parent
fbd714fc51
commit
3186fb9540
@ -103,14 +103,8 @@ chown -R ${GITLAB_USER}: ${GITLAB_HOME}
|
||||
exec_as_git cp ${GITLAB_INSTALL_DIR}/config/gitlab.yml.example ${GITLAB_INSTALL_DIR}/config/gitlab.yml
|
||||
exec_as_git cp ${GITLAB_INSTALL_DIR}/config/database.yml.mysql ${GITLAB_INSTALL_DIR}/config/database.yml
|
||||
|
||||
# add temporary git respository folder for `assets:precompile`
|
||||
exec_as_git mkdir -p /home/git/repositories
|
||||
|
||||
echo "Compiling assets. Please be patient, this could take a while..."
|
||||
exec_as_git bundle exec rake assets:clean assets:precompile USE_DB=false >/dev/null 2>&1
|
||||
|
||||
# cleanup temporary git repository folder for `assets:precompile`
|
||||
rm -rf /home/git/repositories
|
||||
exec_as_git bundle exec rake assets:clean assets:precompile USE_DB=false SKIP_STORAGE_VALIDATION=true >/dev/null 2>&1
|
||||
|
||||
# remove auto generated ${GITLAB_DATA_DIR}/config/secrets.yml
|
||||
rm -rf ${GITLAB_DATA_DIR}/config/secrets.yml
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user