Skip to content

Commit f0ca594

Browse files
authored
Merge pull request #19411 from code-dot-org/nodejs-daemon
Install nodejs on daemon for building apps packages
2 parents bb56c69 + 88ab87d commit f0ca594

3 files changed

Lines changed: 12 additions & 12 deletions

File tree

cookbooks/Berksfile.lock

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -56,12 +56,12 @@ DEPENDENCIES
5656

5757
GRAPH
5858
apt (2.6.1)
59-
ark (1.0.1)
59+
ark (3.1.0)
6060
build-essential (>= 0.0.0)
6161
seven_zip (>= 0.0.0)
6262
windows (>= 0.0.0)
6363
build-essential (2.1.3)
64-
cdo-apps (0.2.253)
64+
cdo-apps (0.2.254)
6565
apt (>= 0.0.0)
6666
build-essential (>= 0.0.0)
6767
cdo-cloudwatch-extra-metrics (>= 0.0.0)
@@ -121,26 +121,21 @@ GRAPH
121121
compat_resource (>= 0.0.0)
122122
compat_resource (12.9.1)
123123
cron (1.7.4)
124-
homebrew (2.0.5)
125-
build-essential (>= 2.1.2)
126124
ixgbevf (0.1.2)
127125
apt (>= 0.0.0)
128126
yum-epel (>= 0.0.0)
129127
logrotate (1.9.2)
130-
nodejs (2.4.4)
131-
apt (>= 0.0.0)
132-
ark (>= 0.0.0)
128+
nodejs (5.0.0)
129+
ark (>= 2.0.2)
133130
build-essential (>= 0.0.0)
134-
homebrew (>= 0.0.0)
135-
yum-epel (>= 0.0.0)
136131
ntp (1.8.6)
137132
ohai (2.1.0)
138133
omnibus_updater (2.0.0)
139134
poise (2.7.1)
140135
poise-service (1.3.1)
141136
poise (~> 2.0)
142137
postfix (3.7.0)
143-
seven_zip (1.0.4)
138+
seven_zip (2.0.2)
144139
windows (>= 1.2.2)
145140
ssl_certificate (1.11.0)
146141
sudo-user (0.1.1)

cookbooks/cdo-apps/metadata.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
license 'All rights reserved'
55
description 'Installs/Configures cdo-apps'
66
long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
7-
version '0.2.253'
7+
version '0.2.254'
88

99
depends 'apt'
1010
depends 'build-essential'

cookbooks/cdo-apps/recipes/default.rb

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,12 @@
8686
include_recipe 'cdo-apps::build'
8787

8888
# Install nodejs if apps build specified in attributes.
89-
include_recipe 'cdo-nodejs' if node['cdo-secrets'] && node['cdo-secrets']["build_apps"]
89+
if node['cdo-secrets']["build_apps"] ||
90+
# Or install nodejs if the daemon builds apps packages in this environment.
91+
# TODO keep this logic in sync with `BUILD_PACKAGE` in `package.rake`.
92+
(node['cdo-apps']['daemon'] && %w[staging test].include?(node.chef_environment))
93+
include_recipe 'cdo-nodejs'
94+
end
9095

9196
include_recipe 'cdo-apps::dashboard'
9297
include_recipe 'cdo-apps::pegasus'

0 commit comments

Comments
 (0)