mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-19 17:46:07 +10:00
Merge pull request #6716 from pkgr/pkgr
Automatically generate debian package with pkgr.io
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
user: git
|
||||
group: git
|
||||
before_precompile: ./bin/pkgr_before_precompile.sh
|
||||
targets:
|
||||
debian-7: &wheezy
|
||||
build_dependencies:
|
||||
- libicu-dev
|
||||
dependencies:
|
||||
- libicu48
|
||||
- libpcre3
|
||||
- git
|
||||
ubuntu-12.04: *wheezy
|
||||
ubuntu-14.04:
|
||||
build_dependencies:
|
||||
- libicu-dev
|
||||
dependencies:
|
||||
- libicu52
|
||||
- libpcre3
|
||||
- git
|
||||
Executable
+23
@@ -0,0 +1,23 @@
|
||||
#!/bin/sh
|
||||
|
||||
set -e
|
||||
|
||||
for file in config/*.yml.example; do
|
||||
cp ${file} config/$(basename ${file} .example)
|
||||
done
|
||||
|
||||
# Allow to override the Gitlab URL from an environment variable, as this will avoid having to change the configuration file for simple deployments.
|
||||
config=$(echo '<% gitlab_url = URI(ENV["GITLAB_URL"] || "http://localhost:80") %>' | cat - config/gitlab.yml)
|
||||
echo "$config" > config/gitlab.yml
|
||||
sed -i "s/host: localhost/host: <%= gitlab_url.host %>/" config/gitlab.yml
|
||||
sed -i "s/port: 80/port: <%= gitlab_url.port %>/" config/gitlab.yml
|
||||
sed -i "s/https: false/https: <%= gitlab_url.scheme == 'https' %>/" config/gitlab.yml
|
||||
|
||||
# No need for config file. Will be taken care of by REDIS_URL env variable
|
||||
rm config/resque.yml
|
||||
|
||||
# Set default unicorn.rb file
|
||||
echo "" > config/unicorn.rb
|
||||
|
||||
# Required for assets precompilation
|
||||
sudo service postgresql start
|
||||
Reference in New Issue
Block a user