Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
aefdac00
Commit
aefdac00
authored
May 06, 2014
by
Sytse Sijbrandij
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #6716 from pkgr/pkgr
Automatically generate debian package with pkgr.io
parents
81ecd119
402361af
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
42 additions
and
0 deletions
+42
-0
.pkgr.yml
.pkgr.yml
+19
-0
bin/pkgr_before_precompile.sh
bin/pkgr_before_precompile.sh
+23
-0
No files found.
.pkgr.yml
0 → 100644
View file @
aefdac00
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
bin/pkgr_before_precompile.sh
0 → 100755
View file @
aefdac00
#!/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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment