Skip to content

Commit d4bf59e

Browse files
committed
Temporary remove geo from config/database.yml
1 parent 45599f8 commit d4bf59e

File tree

2 files changed

+105
-1
lines changed

2 files changed

+105
-1
lines changed
Lines changed: 100 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,100 @@
1+
# HINT: This file is identical to the corresponding configuration file from the
2+
# upstream repository, where the additional defined entries for `geo` had to be
3+
# removed. Otherwise, it is not possible to build the image, since the build
4+
# will fail with the error message:
5+
#
6+
# > rake aborted!
7+
# > ERROR: This installation of GitLab uses unsupported database names in 'config/database.yml': geo. The only supported ones are main, ci.
8+
#
9+
# This adjustment is hopefully only a temporary workaround (see
10+
# <https://github.com/sameersbn/docker-gitlab/pull/2596>).
11+
12+
#
13+
# PRODUCTION
14+
#
15+
production:
16+
main:
17+
adapter: postgresql
18+
encoding: unicode
19+
database: gitlabhq_production
20+
username: git
21+
password: "secure password"
22+
host: localhost
23+
# load_balancing:
24+
# hosts:
25+
# - host1.example.com
26+
# - host2.example.com
27+
# discover:
28+
# nameserver: 1.2.3.4
29+
# port: 8600
30+
# record: secondary.postgresql.service.consul
31+
# interval: 300
32+
# geo:
33+
# adapter: postgresql
34+
# encoding: unicode
35+
# database: gitlabhq_geo_production
36+
# username: git
37+
# password: "secure password"
38+
# host: localhost
39+
40+
#
41+
# Development specific
42+
#
43+
development:
44+
main:
45+
adapter: postgresql
46+
encoding: unicode
47+
database: gitlabhq_development
48+
username: postgres
49+
password: "secure password"
50+
host: localhost
51+
variables:
52+
statement_timeout: 15s
53+
# geo:
54+
# adapter: postgresql
55+
# encoding: unicode
56+
# database: gitlabhq_geo_development
57+
# username: postgres
58+
# password: "secure password"
59+
# host: localhost
60+
61+
#
62+
# Staging specific
63+
#
64+
staging:
65+
main:
66+
adapter: postgresql
67+
encoding: unicode
68+
database: gitlabhq_staging
69+
username: git
70+
password: "secure password"
71+
host: localhost
72+
# geo:
73+
# adapter: postgresql
74+
# encoding: unicode
75+
# database: gitlabhq_geo_staging
76+
# username: git
77+
# password: "secure password"
78+
# host: localhost
79+
80+
# Warning: The database defined as "test" will be erased and
81+
# re-generated from your development database when you run "rake".
82+
# Do not set this db to the same as development or production.
83+
test: &test
84+
main:
85+
adapter: postgresql
86+
encoding: unicode
87+
database: gitlabhq_test
88+
username: postgres
89+
password:
90+
host: localhost
91+
prepared_statements: false
92+
variables:
93+
statement_timeout: 15s
94+
# geo:
95+
# adapter: postgresql
96+
# encoding: unicode
97+
# database: gitlabhq_geo_test
98+
# username: postgres
99+
# password:
100+
# host: localhost

assets/build/install.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,11 @@ chown -R ${GITLAB_USER}: ${GITLAB_HOME}
187187
# gitlab.yml and database.yml are required for `assets:precompile`
188188
exec_as_git cp ${GITLAB_INSTALL_DIR}/config/resque.yml.example ${GITLAB_INSTALL_DIR}/config/resque.yml
189189
exec_as_git cp ${GITLAB_INSTALL_DIR}/config/gitlab.yml.example ${GITLAB_INSTALL_DIR}/config/gitlab.yml
190-
exec_as_git cp ${GITLAB_INSTALL_DIR}/config/database.yml.postgresql ${GITLAB_INSTALL_DIR}/config/database.yml
190+
#
191+
# Temporary workaround, see <https://github.com/sameersbn/docker-gitlab/pull/2596>
192+
#
193+
# exec_as_git cp ${GITLAB_INSTALL_DIR}/config/database.yml.postgresql ${GITLAB_INSTALL_DIR}/config/database.yml
194+
exec_as_git cp ${GITLAB_BUILD_DIR}/config/database.yml.postgresql ${GITLAB_INSTALL_DIR}/config/database.yml
191195

192196
# Installs nodejs packages required to compile webpack
193197
exec_as_git yarn install --production --pure-lockfile

0 commit comments

Comments
 (0)