Skip to content
Snippets Groups Projects
Commit 7585fdf9 authored by Jacob Vosmaer's avatar Jacob Vosmaer
Browse files

Merge branch 'centos_env_fix' into 'master'

Centos Env Fix
parents 205cd8fe 12cc96a2
No related branches found
No related tags found
1 merge request!44Backport CentOS fixes to 6-6-pre
Loading
Loading
@@ -30,6 +30,12 @@ dependency "postgresql"
 
source :git => "https://gitlab.com/gitlab-org/gitlab-ce.git"
 
env = {
"LDFLAGS" => "-L#{install_dir}/embedded/lib -I#{install_dir}/embedded/include",
"CFLAGS" => "-L#{install_dir}/embedded/lib -I#{install_dir}/embedded/include",
"LD_RUN_PATH" => "#{install_dir}/embedded/lib",
}
build do
# GitLab assumes it can extract the Git revision of the currently version
# from the Git repo the code lives in at boot. Because of our rsync later on,
Loading
Loading
@@ -38,7 +44,7 @@ build do
# build.
command "sed -i \"s/.*REVISION.*/REVISION = '$(git log --pretty=format:'%h' -n 1)'/\" config/initializers/2_app.rb"
 
bundle "install --without mysql development test --path=#{install_dir}/embedded/service/gem"
bundle "install --without mysql development test --path=#{install_dir}/embedded/service/gem", :env => env
 
# In order to precompile the assets, we need to get to a state where rake can
# load the Rails environment.
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment