File tree Expand file tree Collapse file tree 3 files changed +18
-9
lines changed Expand file tree Collapse file tree 3 files changed +18
-9
lines changed Original file line number Diff line number Diff line change 34
34
35
35
# Set github URL for gitlab
36
36
default [ 'gitlab' ] [ 'git_url' ] = 'https://github.com/gitlabhq/gitlabhq.git'
37
- default [ 'gitlab' ] [ 'git_branch' ] = '8-14 -stable'
37
+ default [ 'gitlab' ] [ 'git_branch' ] = '8-17 -stable'
38
38
39
39
# gitlab-shell attributes
40
40
default [ 'gitlab' ] [ 'shell' ] [ 'home' ] = node [ 'gitlab' ] [ 'home' ] + '/gitlab-shell'
41
41
default [ 'gitlab' ] [ 'shell' ] [ 'git_url' ] = 'https://github.com/gitlabhq/gitlab-shell.git'
42
- default [ 'gitlab' ] [ 'shell' ] [ 'git_branch' ] = 'v4.0.2 '
42
+ default [ 'gitlab' ] [ 'shell' ] [ 'git_branch' ] = 'v4.1.1 '
43
43
default [ 'gitlab' ] [ 'shell' ] [ 'gitlab_host' ] = nil
44
44
45
45
# Database setup
69
69
redisio::default
70
70
redisio::enable
71
71
ruby_build
72
+ nodejs::install
72
73
)
73
74
74
75
# Redisio instance name
79
80
cmake
80
81
curl
81
82
golang
82
- nodejs
83
83
python-docutils
84
84
sudo
85
85
wget
165
165
default [ 'nginx' ] [ 'default_site_enabled' ] = false
166
166
167
167
# GitLab Workhorse
168
- default [ 'gitlab' ] [ 'workhorse_revision' ] = 'v1.0.1 '
168
+ default [ 'gitlab' ] [ 'workhorse_revision' ] = 'v1.3.0 '
169
169
default [ 'gitlab' ] [ 'workhorse_repository' ] = 'https://gitlab.com/gitlab-org/gitlab-workhorse.git'
Original file line number Diff line number Diff line change 4
4
description 'Installs/Configures gitlab'
5
5
long_description IO . read ( File . join ( File . dirname ( __FILE__ ) , 'README.md' ) )
6
6
name 'gitlab'
7
- version '8.14 .0'
7
+ version '8.17 .0'
8
8
issues_url 'https://github.com/atomic-penguin/cookbook-gitlab/issues'
9
9
source_url 'https://github.com/atomic-penguin/cookbook-gitlab'
10
10
16
16
git
17
17
logrotate
18
18
ncurses
19
+ nodejs
19
20
openssh
20
21
postgresql
21
22
readline
Original file line number Diff line number Diff line change @@ -380,14 +380,22 @@ class unix_stream_socket connectto;
380
380
not_if { ::File . exist? ( "#{ node [ 'gitlab' ] [ 'home' ] } /gitlab-workhorse/gitlab-workhorse" ) }
381
381
end
382
382
383
- # Precompile assets
384
- execute 'gitlab-bundle-precompile-assets' do
385
- command "#{ bundler_binary } exec rake assets:precompile RAILS_ENV=production"
383
+ nodejs_npm 'gitlab' do
384
+ path node [ 'gitlab' ] [ 'app_home' ]
385
+ user node [ 'gitlab' ] [ 'user' ]
386
+ group node [ 'gitlab' ] [ 'group' ]
387
+ options [ '--only=production' ]
388
+ json true
389
+ end
390
+
391
+ # Compile assets
392
+ execute 'gitlab-bundle-assets-compile' do
393
+ command "#{ bundler_binary } exec rake gitlab:assets:compile RAILS_ENV=production NODE_ENV=production && touch .assets-compiled"
386
394
cwd node [ 'gitlab' ] [ 'app_home' ]
387
395
user node [ 'gitlab' ] [ 'user' ]
388
396
group node [ 'gitlab' ] [ 'group' ]
389
397
environment ( 'LANG' => 'en_US.UTF-8' , 'LC_ALL' => 'en_US.UTF-8' )
390
- only_if { Dir [ "#{ node [ 'gitlab' ] [ 'app_home' ] } /public/ assets/*" ] . empty? }
398
+ not_if { File . exist? ( "#{ node [ 'gitlab' ] [ 'app_home' ] } /. assets-compiled" ) }
391
399
end
392
400
393
401
# Initialize database
You can’t perform that action at this time.
0 commit comments