8008: Make dependencies for build-dockerfiles.
[arvados-dev.git] / jenkins / run-library.sh
index 3c62d7bb3248a1d58033d29fa1f94a25765cc79e..766683778a10b76bb7e87d7cf56644f62465783f 100755 (executable)
@@ -157,8 +157,13 @@ handle_rails_package() {
     local exclude_root="${railsdir#/}"
     # .git and packages are for the SSO server, which is built from its
     # repository root.
-    for exclude in .git packages tmp log coverage \
-                        Capfile\* config/deploy\*; do
+    local -a exclude_list=(.git packages tmp log coverage Capfile\* \
+                           config/deploy\* config/application.yml)
+    # for arvados-workbench, we need to have the (dummy) config/database.yml in the package
+    if  [[ "$pkgname" != "arvados-workbench" ]]; then
+      exclude_list+=('config/database.yml')
+    fi
+    for exclude in ${exclude_list[@]}; do
         switches+=(-x "$exclude_root/$exclude")
     done
     fpm_build "${pos_args[@]}" "${switches[@]}" \