From 2ca3c61261b6c2055109cb9f04fa8793aa4ef5bc Mon Sep 17 00:00:00 2001 From: Sameer Naik Date: Thu, 3 Jan 2019 19:16:57 +0530 Subject: [PATCH] fix image builds on docker hub --- Dockerfile | 2 +- assets/build/install.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index d9f9718a..d1b26065 100644 --- a/Dockerfile +++ b/Dockerfile @@ -51,7 +51,7 @@ RUN apt-get update \ && update-locale LANG=C.UTF-8 LC_MESSAGES=POSIX \ && locale-gen en_US.UTF-8 \ && DEBIAN_FRONTEND=noninteractive dpkg-reconfigure locales \ - && gem install --no-document bundler \ + && gem install --no-document bundler -v 1.17.3 \ && rm -rf /var/lib/apt/lists/* COPY assets/build/ ${GITLAB_BUILD_DIR}/ diff --git a/assets/build/install.sh b/assets/build/install.sh index bd0e1124..8eb9ecad 100755 --- a/assets/build/install.sh +++ b/assets/build/install.sh @@ -166,7 +166,7 @@ exec_as_git yarn install --production --pure-lockfile exec_as_git yarn add ajv@^4.0.0 echo "Compiling assets. Please be patient, this could take a while..." -exec_as_git bundle exec rake gitlab:assets:compile USE_DB=false SKIP_STORAGE_VALIDATION=true +exec_as_git bundle exec rake gitlab:assets:compile USE_DB=false SKIP_STORAGE_VALIDATION=true NODE_OPTIONS="--max-old-space-size=4096" # remove auto generated ${GITLAB_DATA_DIR}/config/secrets.yml rm -rf ${GITLAB_DATA_DIR}/config/secrets.yml