Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
gitlab
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
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
certo
gitlab
Commits
613cd5fe
Commit
613cd5fe
authored
Aug 17, 2021
by
Vladimir Bashkirtsev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reset config/secrets.yml upon installation and moved pid files to /run/gitlab
parent
c9097a5b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
+10
-3
Makefile
Makefile
+10
-3
No files found.
Makefile
View file @
613cd5fe
...
...
@@ -43,12 +43,11 @@ all: database-config resque-yml nginx-conf
cd
/srv/gitlab
&&
sed
-e
"s|/home/git/.ssh/|/srv/gitlab/.ssh/|"
-i
config/gitlab.yml
cd
/srv/gitlab
&&
sed
-e
"s|/home/git/repositories/|/var/lib/gitlab/repositories/|"
-i
config/gitlab.yml
cd
/srv/gitlab
&&
sed
-e
"s|/home/git|/srv|"
-i
config/gitlab.yml
cd
/srv/gitlab
&&
sudo
-u
git
-H
mv
config/secrets.yml.example
config/secrets.yml
cd
/srv/gitlab
&&
sudo
-u
git
-H
cp
config/secrets.yml.example
config/secrets.yml
cd
/srv/gitlab
&&
chown
-R
git
log/
cd
/srv/gitlab
&&
chown
-R
git
tmp/
cd
/srv/gitlab
&&
chmod
-R
u+rwX,go-w
log/
cd
/srv/gitlab
&&
chmod
-R
u+rwX
tmp/
cd
/srv/gitlab
&&
chmod
-R
u+rwX
tmp/pids/
cd
/srv/gitlab
&&
chmod
-R
u+rwX
tmp/sockets/
cd
/srv/gitlab
&&
sudo
-u
git
-H
mkdir
-p
public/uploads/
cd
/srv/gitlab
&&
chmod
0700
public/uploads
...
...
@@ -57,6 +56,7 @@ all: database-config resque-yml nginx-conf
cd
/srv/gitlab
&&
chmod
-R
ug+rwX
shared/pages/
cd
/srv/gitlab
&&
sudo
-u
git
-H
mv
config/puma.rb.example
config/puma.rb
cd
/srv/gitlab
&&
sed
-e
"s|/home/git|/srv|"
-i
config/puma.rb
cd
/srv/gitlab
&&
sed
-e
"s|/srv/gitlab/tmp/pids|/run/gitlab|"
-i
config/puma.rb
@echo
"$$DATABASE_CONFIG"
>
/srv/gitlab/config/database.yml
cd
/srv/gitlab
&&
chown
-R
git.git
config/database.yml
...
...
@@ -65,6 +65,8 @@ all: database-config resque-yml nginx-conf
@echo
"$$RESQUE_YML"
>
/srv/gitlab/config/resque.yml
cd
/srv/gitlab
&&
chown
-R
git.git
config/resque.yml
cd
/srv/gitlab
&&
sudo
-u
git
-H
chmod
o-rwx
config/resque.yml
@echo
"d /run/gitlab 755 git git -"
>
/usr/lib/tmpfiles.d/gitlab.conf
chmod
o+w
/srv
cd
/srv/gitlab
&&
sudo
-u
git
-H
HOME
=
$(CURDIR)
/gitlab-home bundle
install
--deployment
--without
development
test
mysql aws kerberos
...
...
@@ -79,13 +81,14 @@ all: database-config resque-yml nginx-conf
cd
/srv/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"
sudo
-u
git
/usr/bin/redis-server
/etc/redis/redis.conf
--daemonize
yes
--supervised
no
install
-v
-m775
-o
git
-g
git
-d
/run/gitlab
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;"
sudo
-u
postgres
psql
-d
template1
-c
"CREATE EXTENSION IF NOT EXISTS pg_trgm;"
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
git
-H
sh
-c
"/srv/gitlab/bin/daemon_with_pidfile /
srv/gitlab/tmp/pids
/gitaly.pid /srv/gitaly/gitaly /srv/gitaly/config.toml >> /srv/gitlab/log/gitaly.log 2>&1 &"
sudo
-u
git
-H
sh
-c
"/srv/gitlab/bin/daemon_with_pidfile /
run/gitlab
/gitaly.pid /srv/gitaly/gitaly /srv/gitaly/config.toml >> /srv/gitlab/log/gitaly.log 2>&1 &"
cd /srv/gitlab && sudo -u git -H bundle exec rake gitlab
:
setup RAILS_ENV=production force=yes
cd
/srv/gitlab
&&
sudo
-u
git
-H
HOME
=
$(CURDIR)
/gitlab-home
PATH
=
$$
PATH:
$(CURDIR)
/../go/go/bin
GOCACHE
=
$(CURDIR)
/gitlab-home/gocache bundle
exec
rake gitlab:env:info
RAILS_ENV
=
production
sudo
-u
postgres /usr/bin/pg_ctl
-s
-D
/srv/pgsql/data stop
-m
fast
...
...
@@ -101,8 +104,12 @@ all: database-config resque-yml nginx-conf
sed
-e
"s/redis-server/redis/"
-i
/etc/init.d/gitlab
install
-v
-m644
/srv/gitlab/lib/support/init.d/gitlab.default.example
/etc/default/gitlab
sed
-e
"s/\/home\/\(\$$app_user\|git\)/\/srv/"
-i
/etc/default/gitlab
sed
-e
"s/\$$app_root\/tmp\/pids/\/run\/gitlab/"
-i
/etc/default/gitlab
systemctl
enable
gitlab.service
cd
/srv/gitlab
&&
sudo
-u
git
-H
mv
-f
config/secrets.yml.example
config/secrets.yml
sudo
-u
git
psql
-d
gitlabhq_production
-c
"UPDATE application_settings SET runners_registration_token_encrypted = null;"
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
...
...
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