Commit 088067fa authored by Vladimir Bashkirtsev's avatar Vladimir Bashkirtsev

Configured gitlab

parent 95746e5f
all:
all: database-config
rm /etc/passwd
mv -v /data/etc/passwd /etc/passwd
rm /etc/group
......@@ -25,6 +25,20 @@ all:
tar xf gitlab-foss-v13.1.0.tar.bz2 -C /srv/www --strip-components=1
rm -rf /srv/www/index.html
cd /srv/www && mv config/gitlab.yml.example config/gitlab.yml
cd /srv/www && mv config/secrets.yml.example config/secrets.yml
mkdir -p /srv/www/public/uploads
chmod 0700 /srv/www/public/uploads
cd /srv/www && mv config/puma.rb.example config/puma.rb
git config --global core.autocrlf input
git config --global gc.auto 0
git config --global repack.writeBitmaps true
git config --global receive.advertisePushOptions true
git config --global core.fsyncObjectFiles true
cd /srv/www && mv config/resque.yml.example config/resque.yml
@echo "$$DATABASE_CONFIG" > /srv/www/config/database.yml
cd /srv/www && HOME="/tmp" && bundle install --deployment --without development test mysql aws kerberos
cd /srv/www && HOME="/tmp" && bundle exec rake gitlab:shell:install RAILS_ENV=production
cd /srv/www && HOME="/tmp" && bundle exec rake "gitlab:workhorse:install[/srv/www/gitlab-workhorse]" RAILS_ENV=production
......@@ -40,3 +54,12 @@ postinstall:
sudo -u postgres psql -d template1 -c "CREATE EXTENSION IF NOT EXISTS btree_gist;"
sudo -u postgres psql -d template1 -c "CREATE DATABASE gitlabhq_production OWNER git;"
sudo -u postgres /usr/bin/pg_ctl -s -D /srv/pgsql/data stop -m fast
database-config:
define DATABASE_CONFIG
production:
adapter: postgresql
encoding: unicode
database: gitlabhq_production
endef
export DATABASE_CONFIG
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment