Compare commits
4 commits
master
...
master-13.
Author | SHA1 | Date | |
---|---|---|---|
|
8680a174b6 | ||
|
290aa15f4e | ||
|
e23b02efe9 | ||
|
645c713439 |
8 changed files with 45 additions and 8 deletions
8
debian/changelog
vendored
8
debian/changelog
vendored
|
@ -1,3 +1,11 @@
|
||||||
|
gitlab (13.0.6-2) experimental; urgency=medium
|
||||||
|
|
||||||
|
* Switch to using structure.sql from schema.rb for database initialization
|
||||||
|
* Add rack-timeout gem to Gemfile
|
||||||
|
* Relax dependency on ruby-grape-entity
|
||||||
|
|
||||||
|
-- Pirate Praveen <praveen@debian.org> Sat, 27 Jun 2020 23:07:50 +0530
|
||||||
|
|
||||||
gitlab (13.0.6-1) experimental; urgency=medium
|
gitlab (13.0.6-1) experimental; urgency=medium
|
||||||
|
|
||||||
* New upstream version 13.0.6 with a security fix (CVE ID not
|
* New upstream version 13.0.6 with a security fix (CVE ID not
|
||||||
|
|
2
debian/control
vendored
2
debian/control
vendored
|
@ -99,7 +99,7 @@ Depends: ${shlibs:Depends}, ${misc:Depends},
|
||||||
ruby-grape (>= 1.3.3~),
|
ruby-grape (>= 1.3.3~),
|
||||||
# https://gitlab.com/gitlab-org/gitlab/-/issues/219623
|
# https://gitlab.com/gitlab-org/gitlab/-/issues/219623
|
||||||
ruby-rack-timeout,
|
ruby-rack-timeout,
|
||||||
ruby-grape-entity (>= 0.7.1~),
|
ruby-grape-entity (>= 0.8.0~),
|
||||||
ruby-rack-cors (>= 1.0.6~),
|
ruby-rack-cors (>= 1.0.6~),
|
||||||
# GraphQL API
|
# GraphQL API
|
||||||
ruby-graphql (>= 1.10.5~),
|
ruby-graphql (>= 1.10.5~),
|
||||||
|
|
3
debian/gitlab.postinst
vendored
3
debian/gitlab.postinst
vendored
|
@ -129,9 +129,6 @@ case "$1" in
|
||||||
# Make yarn.lock writable
|
# Make yarn.lock writable
|
||||||
chown ${gitlab_user}: /var/lib/gitlab/yarn.lock
|
chown ${gitlab_user}: /var/lib/gitlab/yarn.lock
|
||||||
|
|
||||||
# Make db/structure.sql writable
|
|
||||||
chown ${gitlab_user}: /var/lib/gitlab/db/structure.sql
|
|
||||||
|
|
||||||
runuser -u ${gitlab_user} -- sh -c "chmod 700 ${gitlab_uploads_path}"
|
runuser -u ${gitlab_user} -- sh -c "chmod 700 ${gitlab_uploads_path}"
|
||||||
runuser -u ${gitlab_user} -- sh -c 'git config --global core.autocrlf "input"'
|
runuser -u ${gitlab_user} -- sh -c 'git config --global core.autocrlf "input"'
|
||||||
|
|
||||||
|
|
18
debian/patches/0770-add-rack-timeout.patch
vendored
Normal file
18
debian/patches/0770-add-rack-timeout.patch
vendored
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
--- a/Gemfile
|
||||||
|
+++ b/Gemfile
|
||||||
|
@@ -80,7 +80,6 @@
|
||||||
|
|
||||||
|
# API
|
||||||
|
gem 'grape', '~> 1.3', '>= 1.3.3'
|
||||||
|
-gem 'rack-timeout'
|
||||||
|
gem 'grape-entity', '~> 0.7.1'
|
||||||
|
gem 'rack-cors', '~> 1.0', '>= 1.0.6', require: 'rack/cors'
|
||||||
|
|
||||||
|
@@ -160,6 +159,7 @@
|
||||||
|
|
||||||
|
# Application server
|
||||||
|
gem 'rack', '~> 2.0', '>= 2.0.9'
|
||||||
|
+gem 'rack-timeout', require: false
|
||||||
|
|
||||||
|
group :unicorn do
|
||||||
|
gem 'unicorn', '~> 5.5'
|
11
debian/patches/0780-relax-grape-entity.patch
vendored
Normal file
11
debian/patches/0780-relax-grape-entity.patch
vendored
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
--- a/Gemfile
|
||||||
|
+++ b/Gemfile
|
||||||
|
@@ -80,7 +80,7 @@
|
||||||
|
|
||||||
|
# API
|
||||||
|
gem 'grape', '~> 1.3', '>= 1.3.3'
|
||||||
|
-gem 'grape-entity', '~> 0.7.1'
|
||||||
|
+gem 'grape-entity', '~> 0.8.0'
|
||||||
|
gem 'rack-cors', '~> 1.0', '>= 1.0.6', require: 'rack/cors'
|
||||||
|
|
||||||
|
# GraphQL API
|
2
debian/patches/series
vendored
2
debian/patches/series
vendored
|
@ -24,4 +24,6 @@
|
||||||
0741-add-graphql-tag.patch
|
0741-add-graphql-tag.patch
|
||||||
0750-fix-relative-paths.patch
|
0750-fix-relative-paths.patch
|
||||||
0760-update-grape.patch
|
0760-update-grape.patch
|
||||||
|
0770-add-rack-timeout.patch
|
||||||
|
0780-relax-grape-entity.patch
|
||||||
0790-protobuf-compat.patch
|
0790-protobuf-compat.patch
|
||||||
|
|
7
debian/rake-tasks.sh
vendored
7
debian/rake-tasks.sh
vendored
|
@ -13,13 +13,13 @@ db_relations="$(LANG=C runuser -u postgres -- sh -c "psql gitlab_production -c \
|
||||||
if [ "$db_relations" = "No relations found." ] || \
|
if [ "$db_relations" = "No relations found." ] || \
|
||||||
[ "$db_relations" = "Did not find any relations." ]; then
|
[ "$db_relations" = "Did not find any relations." ]; then
|
||||||
echo "Initializing database..."
|
echo "Initializing database..."
|
||||||
test -f ${gitlab_home}/db/schema.rb || \
|
test -f ${gitlab_home}/db/structure.sql || \
|
||||||
runuser -u ${gitlab_user} -- sh -c \
|
runuser -u ${gitlab_user} -- sh -c \
|
||||||
"cp ${gitlab_data_dir}/db/schema.rb.template ${gitlab_data_dir}/db/schema.rb"
|
"cp ${gitlab_data_dir}/db/structure.sql.template ${gitlab_data_dir}/db/structure.sql"
|
||||||
runuser -u ${gitlab_user} -- sh -c \
|
runuser -u ${gitlab_user} -- sh -c \
|
||||||
"touch ${gitlab_data_dir}/.gitlab_shell_secret"
|
"touch ${gitlab_data_dir}/.gitlab_shell_secret"
|
||||||
runuser -u ${gitlab_user} -- sh -c 'touch /var/lib/gitlab/secrets.yml'
|
runuser -u ${gitlab_user} -- sh -c 'touch /var/lib/gitlab/secrets.yml'
|
||||||
runuser -u ${gitlab_user} -- sh -c '/usr/bin/bundle exec rake db:schema:load'
|
runuser -u ${gitlab_user} -- sh -c '/usr/bin/bundle exec rake db:structure:load'
|
||||||
else
|
else
|
||||||
echo "gitlab_production database is not empty, skipping gitlab setup"
|
echo "gitlab_production database is not empty, skipping gitlab setup"
|
||||||
fi
|
fi
|
||||||
|
@ -31,6 +31,7 @@ chmod 0700 ${gitlab_data_dir}/.gitlab_shell_secret
|
||||||
|
|
||||||
echo "Installing node modules..."
|
echo "Installing node modules..."
|
||||||
runuser -u ${gitlab_user} -- sh -c 'install -d /var/lib/gitlab/.node_modules'
|
runuser -u ${gitlab_user} -- sh -c 'install -d /var/lib/gitlab/.node_modules'
|
||||||
|
runuser -u ${gitlab_user} -- sh -c 'install -d /var/lib/gitlab/.cache'
|
||||||
runuser -u ${gitlab_user} -- sh -c 'yarnpkg install'
|
runuser -u ${gitlab_user} -- sh -c 'yarnpkg install'
|
||||||
# Remove write permissions of .yarn-metadata.json files
|
# Remove write permissions of .yarn-metadata.json files
|
||||||
runuser -u ${gitlab_user} -- sh -c 'test -d "/var/lib/gitlab/.cache/yarn/v6" && find /var/lib/gitlab/.cache/yarn/v6/ -name .yarn-metadata.json -perm -a=w -exec chmod 644 {} \;'
|
runuser -u ${gitlab_user} -- sh -c 'test -d "/var/lib/gitlab/.cache/yarn/v6" && find /var/lib/gitlab/.cache/yarn/v6/ -name .yarn-metadata.json -perm -a=w -exec chmod 644 {} \;'
|
||||||
|
|
2
debian/rules
vendored
2
debian/rules
vendored
|
@ -13,7 +13,7 @@ override_dh_install:
|
||||||
find debian/gitlab/usr/share/gitlab/ -name .eslintrc.yml -delete
|
find debian/gitlab/usr/share/gitlab/ -name .eslintrc.yml -delete
|
||||||
mv debian/gitlab/usr/share/gitlab/app/assets/javascripts/locale \
|
mv debian/gitlab/usr/share/gitlab/app/assets/javascripts/locale \
|
||||||
debian/gitlab/usr/share/gitlab/app/assets/javascripts/locale.static
|
debian/gitlab/usr/share/gitlab/app/assets/javascripts/locale.static
|
||||||
mv debian/gitlab/var/lib/gitlab/db/schema.rb debian/gitlab/var/lib/gitlab/db/schema.rb.template
|
mv debian/gitlab/var/lib/gitlab/db/structure.sql debian/gitlab/var/lib/gitlab/db/structure.sql.template
|
||||||
sed -i 's/__NEW_VERSION__/${DEB_VERSION}/g' debian/gitlab/usr/lib/gitlab/templates/gitlab-debian.conf.example
|
sed -i 's/__NEW_VERSION__/${DEB_VERSION}/g' debian/gitlab/usr/lib/gitlab/templates/gitlab-debian.conf.example
|
||||||
|
|
||||||
override_dh_installinit:
|
override_dh_installinit:
|
||||||
|
|
Loading…
Reference in a new issue