Commit dc33dff0 authored by Vladimir Bashkirtsev's avatar Vladimir Bashkirtsev

Configured to use redis over IP; enabled gitlab service

parent 1a8cf262
all: database-config
all: database-config resque-yml
rm /etc/passwd
mv -v /data/etc/passwd /etc/passwd
rm /etc/group
......@@ -59,12 +59,15 @@ all: database-config
sudo -u git -H git config --global repack.writeBitmaps true
sudo -u git -H git config --global receive.advertisePushOptions true
sudo -u git -H git config --global core.fsyncObjectFiles true
cd /home/git/gitlab && sudo -u git -H mv config/resque.yml.example config/resque.yml
@echo "$$DATABASE_CONFIG" > /home/git/gitlab/config/database.yml
cd /home/git/gitlab && chown -R git.git config/database.yml
cd /home/git/gitlab && sudo -u git -H chmod o-rwx config/database.yml
@echo "$$RESQUE_YML" > /home/git/gitlab/config/resque.yml
cd /home/git/gitlab && chown -R git.git config/resque.yml
cd /home/git/gitlab && sudo -u git -H chmod o-rwx config/resque.yml
cd /home/git/gitlab && sudo -u git -H HOME=$(CURDIR)/gitlab-home bundle install --deployment --without development test mysql aws kerberos
cd /home/git/gitlab && sudo -u git -H HOME=$(CURDIR)/gitlab-home PATH=$$PATH:$(CURDIR)/../go/go/bin GOCACHE=$(CURDIR)/gitlab-home/gocache bundle exec rake gitlab:shell:install RAILS_ENV=production
mv /home/git/gitlab-shell /srv/gitlab-shell
......@@ -84,8 +87,7 @@ all: database-config
cd /home/git/gitlab && sudo -u git -H HOME=$(CURDIR)/gitlab-home yarn install --production --pure-lockfile
cd /home/git/gitlab && sudo -u git -H HOME=$(CURDIR)/gitlab-home bundle exec rake gitlab:assets:compile RAILS_ENV=production NODE_ENV=production NODE_OPTIONS="--max-old-space-size=3072"
install -v -m775 -o git -g git -d /var/run/redis
sudo -u git /usr/bin/redis-server /etc/redis/redis.conf --daemonize yes --unixsocket /var/run/redis/redis.sock --supervised no
sudo -u git /usr/bin/redis-server /etc/redis/redis.conf --daemonize yes --supervised no
install -v -m775 -o postgres -g postgres -d /run/postgresql
sudo -u postgres /usr/bin/pg_ctl -s -D /srv/pgsql/data start -w -t 120
sudo -u postgres psql -d template1 -c "CREATE USER git CREATEDB;"
......@@ -103,6 +105,8 @@ all: database-config
install -v -m755 /home/git/gitlab/lib/support/init.d/gitlab /etc/init.d/gitlab
install -v -m644 /home/git/gitlab/lib/support/init.d/gitlab.default.example /etc/default/gitlab
systemctl enable gitlab.service
rm -rf /usr/local/share/.yarnrc
/bin/sh cleanup gitlab dev doc git tests cache ports man patches node_modules windows macos bytecode maps packed_assets
......@@ -120,3 +124,14 @@ production:
database: gitlabhq_production
endef
export DATABASE_CONFIG
resque-yml:
define RESQUE_YML
development:
url: redis://localhost:6379
test:
url: redis://localhost:6379
production:
url: redis://localhost:6379
endef
export RESQUE_YML
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