Merge branch 'feature/7-purge-gitlab' of linux/gentoo-overlay into master
All checks were successful
continuous-integration/drone the build was successful
All checks were successful
continuous-integration/drone the build was successful
This commit is contained in:
commit
ae9fa0c161
110 changed files with 0 additions and 9837 deletions
|
@ -1,699 +0,0 @@
|
|||
13 Apr 2018; <manuel@gentoo.org> files/gitlab-10.4.4-unicorn.init:
|
||||
www-apps/gitlab-ce: Fix init script: Remove "provide gitlab" instruction
|
||||
|
||||
*gitlab-ce-10.4.7 (13 Apr 2018)
|
||||
|
||||
13 Apr 2018; <manuel@gentoo.org> +gitlab-ce-10.4.7.ebuild:
|
||||
www-apps/gitlab-ce: Add ebuild for version 10.4.7
|
||||
|
||||
*gitlab-ce-10.5.4 (09 Mar 2018)
|
||||
|
||||
09 Mar 2018; Manuel Friedli <manuel@fritteli.ch> +gitlab-ce-10.5.4.ebuild:
|
||||
www-apps/gitlab-ce: Add ebuild for version 10.5.4
|
||||
|
||||
09 Mar 2018; Manuel Friedli <manuel@fritteli.ch> gitlab-ce-10.4.5.ebuild:
|
||||
www-apps/gitlab-ce: Fix dependency on nodejs: >=6.0.0
|
||||
|
||||
*gitlab-ce-10.4.5 (09 Mar 2018)
|
||||
|
||||
09 Mar 2018; Manuel Friedli <manuel@fritteli.ch> +gitlab-ce-10.4.5.ebuild,
|
||||
-gitlab-ce-10.4.4.ebuild:
|
||||
www-apps/gitlab-ce: v10.4.4 -> v10.4.5
|
||||
|
||||
08 Mar 2018; Manuel Friedli <manuel@fritteli.ch>
|
||||
-files/03-gitlab-ce-8.17.0-database.yml.patch,
|
||||
-files/03-gitlab-ce-9.2.2-database.yml.patch,
|
||||
-files/04-gitlab-ce-8.12.7-fix-check-task.patch,
|
||||
-files/gitlab-8.13.3-sidekiq.init, -files/gitlab-8.13.3-unicorn.init,
|
||||
-gitlab-ce-10.0.0_rc3.ebuild, -gitlab-ce-10.0.4.ebuild,
|
||||
-gitlab-ce-9.0.13.ebuild, -gitlab-ce-9.1.10.ebuild, -gitlab-ce-9.2.10.ebuild,
|
||||
-gitlab-ce-9.3.11.ebuild, -gitlab-ce-9.4.7.ebuild, -gitlab-ce-9999.ebuild,
|
||||
metadata.xml:
|
||||
www-apps/gitlab-ce: Purge all versions depending on <libgit2:0/26
|
||||
|
||||
*gitlab-ce-10.4.4 (19 Feb 2018)
|
||||
|
||||
19 Feb 2018; Manuel Friedli <manuel@fritteli.ch>
|
||||
+files/08-gitlab-ce-10.4.4-general-config.patch,
|
||||
+files/gitlab-10.4.4-sidekiq.init, +files/gitlab-10.4.4-unicorn.init,
|
||||
+gitlab-ce-10.4.4.ebuild:
|
||||
www-apps/gitlab-ce: Add ebuild for version 10.4.4.
|
||||
|
||||
*gitlab-ce-10.3.7 (17 Feb 2018)
|
||||
|
||||
17 Feb 2018; Manuel Friedli <manuel@fritteli.ch> +gitlab-ce-10.3.7.ebuild:
|
||||
www-apps/gitlab-ce: Add ebuild for version 10.3.7.
|
||||
|
||||
*gitlab-ce-10.2.8 (16 Feb 2018)
|
||||
|
||||
16 Feb 2018; Manuel Friedli <manuel@fritteli.ch>
|
||||
+files/03-gitlab-ce-10.2.8-database.yml.patch, +gitlab-ce-10.2.8.ebuild:
|
||||
www-apps/gitlab-ce: Add ebuild for version 10.2.8.
|
||||
|
||||
08 Feb 2018; Manuel Friedli <manuel@fritteli.ch>
|
||||
+files/07-gitlab-ce-10.0.7-yarn.patch, gitlab-ce-10.0.7.ebuild:
|
||||
www-apps/gitlab-ce: Add patch for package.json and yarn.lock in order to fix
|
||||
dependency errors that cause emerge --config gitlab-ce to fail
|
||||
|
||||
*gitlab-ce-9.5.10 (08 Feb 2018)
|
||||
|
||||
08 Feb 2018; Manuel Friedli <manuel@fritteli.ch> +gitlab-ce-9.5.10.ebuild,
|
||||
-gitlab-ce-9.5.9.ebuild:
|
||||
www-apps/gitlab-ce: Update 9.5.9.-> 9.5.10
|
||||
|
||||
*gitlab-ce-10.0.7 (08 Feb 2018)
|
||||
|
||||
08 Feb 2018; Manuel Friedli <manuel@fritteli.ch> +gitlab-ce-10.0.7.ebuild:
|
||||
www-apps/gitlab-ce: Add ebuild for version 10.0.7, the latest version for the
|
||||
10.0 branch.
|
||||
|
||||
*gitlab-ce-10.0.4 (27 Oct 2017)
|
||||
|
||||
27 Oct 2017; Manuel Friedli <manuel@fritteli.ch> +gitlab-ce-10.0.4.ebuild,
|
||||
-gitlab-ce-10.0.1.ebuild:
|
||||
www-apps/gitlab-ce: Version 10.0.4
|
||||
|
||||
*gitlab-ce-9.5.9 (27 Oct 2017)
|
||||
|
||||
27 Oct 2017; Manuel Friedli <manuel@fritteli.ch> +gitlab-ce-9.5.9.ebuild,
|
||||
-gitlab-ce-9.5.4.ebuild:
|
||||
www-apps/gitlab-ce: Version 9.5.9
|
||||
|
||||
*gitlab-ce-9.4.7 (27 Oct 2017)
|
||||
|
||||
27 Oct 2017; Manuel Friedli <manuel@fritteli.ch> +gitlab-ce-9.4.7.ebuild,
|
||||
-gitlab-ce-9.4.6.ebuild, gitlab-ce-10.0.0_rc3.ebuild, gitlab-ce-10.0.1.ebuild,
|
||||
gitlab-ce-9.0.13.ebuild, gitlab-ce-9.1.10.ebuild, gitlab-ce-9.2.10.ebuild,
|
||||
gitlab-ce-9.3.11.ebuild, gitlab-ce-9.5.4.ebuild, gitlab-ce-9999.ebuild:
|
||||
www-apps/gitlab-ce: Version 9.4.7
|
||||
|
||||
*gitlab-ce-10.0.1 (25 Sep 2017)
|
||||
|
||||
25 Sep 2017; Manuel Friedli <manuel@fritteli.ch> +gitlab-ce-10.0.1.ebuild:
|
||||
www-apps/gitlab-ce: Add ebuild for gitlab-10.0.1.
|
||||
|
||||
*gitlab-ce-10.0.0_rc3 (17 Sep 2017)
|
||||
|
||||
17 Sep 2017; Manuel Friedli <manuel@fritteli.ch> +gitlab-ce-10.0.0_rc3.ebuild,
|
||||
-gitlab-ce-9.4.0_rc6.ebuild:
|
||||
www-apps/gitlab-ce: Add ebuild for gitlab-10.0.0_rc3.
|
||||
|
||||
08 Sep 2017; Manuel Friedli <manuel@fritteli.ch> gitlab-ce-9999.ebuild:
|
||||
www-apps/gitlab-ce: Update ebuild for version 9999 (master branch).
|
||||
|
||||
*gitlab-ce-9.5.4 (08 Sep 2017)
|
||||
|
||||
08 Sep 2017; Manuel Friedli <manuel@fritteli.ch> +gitlab-ce-9.5.4.ebuild,
|
||||
-gitlab-ce-9.5.3.ebuild:
|
||||
www-apps/gitlab-ce: Update 9.5: 9.5.3 => 9.5.4: Security fixes.
|
||||
|
||||
*gitlab-ce-9.4.6 (08 Sep 2017)
|
||||
|
||||
08 Sep 2017; Manuel Friedli <manuel@fritteli.ch> +gitlab-ce-9.4.6.ebuild,
|
||||
-gitlab-ce-9.4.5.ebuild:
|
||||
www-apps/gitlab-ce: Update 9.4: 9.4.5 => 9.4.6: Security fixes.
|
||||
|
||||
*gitlab-ce-9.3.11 (08 Sep 2017)
|
||||
|
||||
08 Sep 2017; Manuel Friedli <manuel@fritteli.ch> +gitlab-ce-9.3.11.ebuild,
|
||||
-gitlab-ce-9.3.10.ebuild:
|
||||
www-apps/gitlab-ce: Update 9.3: 9.3.10 => 9.3.11: Security fixes.
|
||||
|
||||
*gitlab-ce-9.5.3 (05 Sep 2017)
|
||||
|
||||
05 Sep 2017; Manuel Friedli <manuel@fritteli.ch> +gitlab-ce-9.5.3.ebuild:
|
||||
www-apps/gitlab-ce: Add ebuild for version 9.5.3.
|
||||
|
||||
*gitlab-ce-9.0.13 (17 Aug 2017)
|
||||
*gitlab-ce-9.1.10 (17 Aug 2017)
|
||||
*gitlab-ce-9.2.10 (17 Aug 2017)
|
||||
*gitlab-ce-9.3.10 (17 Aug 2017)
|
||||
*gitlab-ce-9.4.5 (17 Aug 2017)
|
||||
|
||||
17 Aug 2017; Manuel Friedli <manuel@fritteli.ch> +gitlab-ce-9.0.13.ebuild,
|
||||
+gitlab-ce-9.1.10.ebuild, +gitlab-ce-9.2.10.ebuild, +gitlab-ce-9.3.10.ebuild,
|
||||
+gitlab-ce-9.4.5.ebuild, -gitlab-ce-9.0.12.ebuild, -gitlab-ce-9.1.9.ebuild,
|
||||
-gitlab-ce-9.2.9.ebuild, -gitlab-ce-9.3.9.ebuild, -gitlab-ce-9.4.0.ebuild:
|
||||
www-apps/gitlab-ce: Update versions 9.0 through 9.4 to their respective
|
||||
latest patch releases.
|
||||
|
||||
25 Jul 2017; Manuel Friedli <manuel@fritteli.ch> gitlab-ce-9.0.12.ebuild,
|
||||
gitlab-ce-9.1.9.ebuild, gitlab-ce-9.2.9.ebuild, gitlab-ce-9.3.9.ebuild:
|
||||
www-apps/gitlab-ce: Emergency fix: After the upgrade to EAPI 6, RUBY_PATCHES
|
||||
stopped working the way it did before. use PATCHES instead.
|
||||
|
||||
*gitlab-ce-9.4.0 (25 Jul 2017)
|
||||
|
||||
25 Jul 2017; Manuel Friedli <manuel@fritteli.ch>
|
||||
+files/03-gitlab-ce-9.4.0-database.yml.patch, +gitlab-ce-9.4.0.ebuild,
|
||||
gitlab-ce-9.4.0_rc6.ebuild, gitlab-ce-9999.ebuild:
|
||||
www-apps/gitlab-ce: Add ebuild for version 9.4.0 and update dev versions
|
||||
|
||||
*gitlab-ce-9.4.0_rc6 (25 Jul 2017)
|
||||
|
||||
25 Jul 2017; Manuel Friedli <manuel@fritteli.ch> +gitlab-ce-9.4.0_rc6.ebuild,
|
||||
-gitlab-ce-9.3.0_rc2.ebuild, gitlab-ce-9999.ebuild:
|
||||
www-apps/gitlab-ce: Update dev versions of gitlab-ce
|
||||
|
||||
25 Jul 2017; Manuel Friedli <manuel@fritteli.ch> gitlab-ce-9.0.12.ebuild,
|
||||
gitlab-ce-9.1.9.ebuild, gitlab-ce-9.2.9.ebuild, gitlab-ce-9.3.9.ebuild:
|
||||
www-apps/gitlab-ce: Fix build errors due to missing dependency on dev-
|
||||
libs/re2
|
||||
|
||||
*gitlab-ce-9.3.9 (25 Jul 2017)
|
||||
|
||||
25 Jul 2017; Manuel Friedli <manuel@fritteli.ch> +gitlab-ce-9.3.9.ebuild,
|
||||
-gitlab-ce-9.3.5.ebuild:
|
||||
www-apps/gitlab-ce: Update Gitlab 9.3.5 -> 9.3.9
|
||||
|
||||
*gitlab-ce-9.2.9 (25 Jul 2017)
|
||||
|
||||
25 Jul 2017; Manuel Friedli <manuel@fritteli.ch> +gitlab-ce-9.2.9.ebuild,
|
||||
-gitlab-ce-9.2.7.ebuild:
|
||||
www-apps/gitlab-ce: Update Gitlab 9.2.7 -> 9.2.9
|
||||
|
||||
*gitlab-ce-9.1.9 (25 Jul 2017)
|
||||
|
||||
25 Jul 2017; Manuel Friedli <manuel@fritteli.ch> +gitlab-ce-9.1.9.ebuild,
|
||||
-gitlab-ce-9.1.7.ebuild:
|
||||
www-apps/gitlab-ce: Update Gitlab 9.1.7 -> 9.1.9
|
||||
|
||||
*gitlab-ce-9.0.12 (25 Jul 2017)
|
||||
|
||||
25 Jul 2017; Manuel Friedli <manuel@fritteli.ch> +gitlab-ce-9.0.12.ebuild,
|
||||
-gitlab-ce-9.0.10.ebuild:
|
||||
www-apps/gitlab-ce: Update Gitlab 9.0.10 -> 9.0.12
|
||||
|
||||
16 Jul 2017; Manuel Friedli <manuel@fritteli.ch> gitlab-ce-9.0.10.ebuild,
|
||||
gitlab-ce-9.1.7.ebuild, gitlab-ce-9.2.7.ebuild, gitlab-ce-9.3.0_rc2.ebuild,
|
||||
gitlab-ce-9.3.5.ebuild, gitlab-ce-9999.ebuild:
|
||||
www-apps/gitlab-ce: Switch to EAPI 6; this resolves #47.
|
||||
|
||||
10 Jul 2017; Jerzy Kołosowski <jerzy@kolosowscy.pl> gitlab-ce-9.2.7.ebuild,
|
||||
gitlab-9.3.5.ebuild:
|
||||
www-apps/gitlab-ce: Fix libgit dependencies
|
||||
|
||||
09 Jul 2017; Manuel Friedli <manuel@fritteli.ch> gitlab-ce-9999.ebuild:
|
||||
www-apps/gitlab-ce: Update ebuild for gitlab-ce-9999
|
||||
|
||||
09 Jul 2017; Manuel Friedli <manuel@fritteli.ch>
|
||||
-files/02-gitlab-ce-8.11.0-fix-redis-config-path.patch,
|
||||
-files/03-gitlab-ce-8.14.0-database.yml.patch,
|
||||
-files/05-gitlab-ce-8.12.7-replace-sys-filesystem.patch,
|
||||
-files/05-gitlab-ce-8.16.0-replace-sys-filesystem.patch,
|
||||
-gitlab-ce-8.15.8.ebuild, -gitlab-ce-8.16.9.ebuild, -gitlab-ce-8.17.6.ebuild:
|
||||
www-apps/gitlab-ce: Purge versions <9.0.0.
|
||||
|
||||
09 Jul 2017; Manuel Friedli <manuel@fritteli.ch> gitlab-ce-9.3.5.ebuild:
|
||||
www-apps/gitlab-ce: Fix last bug in the ebuild.
|
||||
|
||||
09 Jul 2017; Manuel Friedli <manuel@fritteli.ch> gitlab-ce-9.3.5.ebuild:
|
||||
www-apps/gitlab-ce: Fix some bugs in the ebuild.
|
||||
|
||||
*gitlab-ce-9.3.5 (08 Jul 2017)
|
||||
|
||||
08 Jul 2017; Manuel Friedli <manuel@fritteli.ch>
|
||||
+files/gitlab-9.3.5-sidekiq.init, +files/gitlab-9.3.5-unicorn.init,
|
||||
+gitlab-ce-9.3.5.ebuild:
|
||||
www-apps/gitlab-ce: Add ebuild for gitlab-ce-9.3.5
|
||||
|
||||
*gitlab-ce-9.2.7 (08 Jul 2017)
|
||||
|
||||
08 Jul 2017; Manuel Friedli <manuel@fritteli.ch> +gitlab-ce-9.2.7.ebuild,
|
||||
-gitlab-ce-9.2.6.ebuild:
|
||||
www-apps/gitlab-ce: Add ebuild for GitLab 9.2.7
|
||||
|
||||
08 Jul 2017; Manuel Friedli <manuel@fritteli.ch> gitlab-ce-9.0.10.ebuild,
|
||||
gitlab-ce-9.1.7.ebuild, gitlab-ce-9.2.6.ebuild, gitlab-ce-9.3.0_rc2.ebuild,
|
||||
gitlab-ce-9999.ebuild:
|
||||
www-apps/gitlab-ce: Follow rename of gitaly -> gitlab-gitaly
|
||||
|
||||
17 Jun 2017; Manuel Friedli <manuel@fritteli.ch> gitlab-ce-9999.ebuild:
|
||||
www-apps/gitlab-ce: Update version 9999
|
||||
|
||||
*gitlab-ce-9.3.0_rc2 (17 Jun 2017)
|
||||
|
||||
17 Jun 2017; Manuel Friedli <manuel@fritteli.ch>
|
||||
+files/04-gitlab-ce-9.3.0-fix-check-task.patch, +gitlab-ce-9.3.0_rc2.ebuild,
|
||||
-gitlab-ce-9.2.0_rc7.ebuild:
|
||||
www-apps/gitlab-ce: Update 9.2.0_rc7 -> 9.3.0_rc2
|
||||
|
||||
*gitlab-ce-9.2.6 (17 Jun 2017)
|
||||
|
||||
17 Jun 2017; Manuel Friedli <manuel@fritteli.ch> +gitlab-ce-9.2.6.ebuild,
|
||||
-gitlab-ce-9.2.2.ebuild:
|
||||
www-apps/gitlab-ce: Update 9.2.2 -> 9.2.6
|
||||
|
||||
*gitlab-ce-9.1.7 (17 Jun 2017)
|
||||
|
||||
17 Jun 2017; Manuel Friedli <manuel@fritteli.ch> +gitlab-ce-9.1.7.ebuild,
|
||||
-gitlab-ce-9.1.4-r1.ebuild:
|
||||
www-apps/gitlab-ce: Update 9.1.4-r1 -> 9.1.7
|
||||
|
||||
*gitlab-ce-9.0.10 (17 Jun 2017)
|
||||
|
||||
17 Jun 2017; Manuel Friedli <manuel@fritteli.ch> +gitlab-ce-9.0.10.ebuild,
|
||||
-gitlab-ce-9.0.7.ebuild:
|
||||
www-apps/gitlab-ce: Update 9.0.7 -> 9.0.10
|
||||
|
||||
*gitlab-ce-9.0.7 (25 May 2017)
|
||||
|
||||
25 May 2017; Manuel Friedli <manuel@fritteli.ch> +gitlab-ce-9.0.7.ebuild:
|
||||
www-apps/gitlab-ce: added ebuild for Gitlab CE 9.0.7
|
||||
|
||||
*gitlab-ce-9.0.2 (30 Mar 2017)
|
||||
|
||||
30 Mar 2017; Manuel Friedli <manuel@fritteli.ch> +gitlab-ce-9.0.2.ebuild:
|
||||
www-apps/gitlab-ce: added ebuild for Gitlab CE 9.0.2
|
||||
|
||||
30 Mar 2017; Manuel Friedli <manuel@fritteli.ch> gitlab-ce-9999.ebuild:
|
||||
www-apps/gitlab-ce: brought the ebuild for the GIT version (9999) up to speed
|
||||
in terms of dependencies.
|
||||
|
||||
*gitlab-ce-9.0.1-r1 (30 Mar 2017)
|
||||
|
||||
30 Mar 2017; Manuel Friedli <manuel@fritteli.ch> +gitlab-ce-9.0.1-r1.ebuild,
|
||||
-gitlab-ce-9.0.0.ebuild, -gitlab-ce-9.0.1.ebuild, gitlab-ce-9999.ebuild:
|
||||
www-apps/gitlab-ce: updated dependency on Ruby to ruby-2.3 for Gitlab CE >=9;
|
||||
removed ebuild for version 9.0.0, as version 9.0.1 is out.
|
||||
|
||||
*gitlab-ce-9.0.1 (29 Mar 2017)
|
||||
|
||||
29 Mar 2017; Manuel Friedli <manuel@fritteli.ch> +gitlab-ce-9.0.1.ebuild,
|
||||
metadata.xml:
|
||||
www-apps/gitlab-ce: Added ebuild for Gitlab CE 9.0.1; this is the first one
|
||||
with the gitaly USE flag; though that is not supported yet, it must therefore
|
||||
be disabled at the moment.
|
||||
|
||||
28 Mar 2017; Manuel Friedli <manuel@fritteli.ch> gitlab-ce-9.0.0.ebuild,
|
||||
gitlab-ce-9999.ebuild:
|
||||
www-apps/gitlab-ce: Moved warning about MySQL migrations to the postinst
|
||||
phase, as the config phase might fail when the database is not updated. So the
|
||||
message must be displayed earlier.
|
||||
|
||||
28 Mar 2017; Manuel Friedli <manuel@fritteli.ch> gitlab-ce-9.0.0.ebuild,
|
||||
gitlab-ce-9999.ebuild:
|
||||
www-apps/gitlab-ce: Fixed the latest ebuild to use yarn instead of npm.
|
||||
|
||||
*gitlab-ce-9.0.0 (28 Mar 2017)
|
||||
|
||||
28 Mar 2017; Manuel Friedli <manuel@fritteli.ch> +gitlab-ce-9.0.0.ebuild:
|
||||
www-apps/gitlab-ce: Added ebuild for Gitlab CE 9.0.0, dropping the ~arm
|
||||
keyword due to the dependency to yarn, which is not available on unstable arm.
|
||||
|
||||
19 Mar 2017; Manuel Friedli <manuel@fritteli.ch> gitlab-ce-9.0.0_rc4.ebuild,
|
||||
gitlab-ce-9999.ebuild:
|
||||
www-apps/gitlab-ce: Updated ebuild for gitlab-ce-9999 and also cleaned
|
||||
dependencies for gitlab-9.0.0_rc4
|
||||
|
||||
*gitlab-ce-9.0.0_rc4 (19 Mar 2017)
|
||||
|
||||
19 Mar 2017; Manuel Friedli <manuel@fritteli.ch>
|
||||
+files/02-gitlab-ce-9.0.0-fix-redis-config-path.patch,
|
||||
+files/05-gitlab-ce-9.0.0-replace-sys-filesystem.patch,
|
||||
+gitlab-ce-9.0.0_rc4.ebuild, -gitlab-ce-8.17.0_rc3.ebuild:
|
||||
www-apps/gitlab-ce: Added ebuild for Gitlab CE 9.0.0 RC4
|
||||
|
||||
*gitlab-ce-8.15.8 (21 Mar 2017)
|
||||
*gitlab-ce-8.16.8 (21 Mar 2017)
|
||||
*gitlab-ce-8.17.4 (21 Mar 2017)
|
||||
|
||||
21 Mar 2017; Manuel Friedli <manuel@fritteli.ch> +gitlab-ce-8.15.8.ebuild,
|
||||
+gitlab-ce-8.16.8.ebuild, +gitlab-ce-8.17.4.ebuild, -gitlab-ce-8.15.4.ebuild,
|
||||
-gitlab-ce-8.15.7.ebuild, -gitlab-ce-8.16.4.ebuild, -gitlab-ce-8.16.5.ebuild,
|
||||
-gitlab-ce-8.16.6.ebuild, -gitlab-ce-8.17.0.ebuild, -gitlab-ce-8.17.2.ebuild,
|
||||
-gitlab-ce-8.17.3.ebuild:
|
||||
www-apps/gitlab-ce: Added ebuilds containing important security fixes These
|
||||
versions contain the security fixes: - v8.15.8 - v8.16.8 - v8.17.4 Removed
|
||||
all older ebuilds, as they are vulnerable. For more information see:
|
||||
https://about.gitlab.com/2017/03/20/gitlab-8-dot-17-dot-4-security-release/
|
||||
|
||||
*gitlab-ce-8.17.3 (13 Mar 2017)
|
||||
|
||||
13 Mar 2017; Manuel Friedli <manuel@fritteli.ch> +gitlab-ce-8.17.3.ebuild,
|
||||
gitlab-ce-9999.ebuild, metadata.xml:
|
||||
www-apps/gitlab-ce: added ebuild for gitlab-ce-8.17.3, which is the initial
|
||||
ebuild to contain a USE flag for gitlab-pages
|
||||
|
||||
*gitlab-ce-8.17.2 (07 Mar 2017)
|
||||
|
||||
07 Mar 2017; Manuel Friedli <manuel@fritteli.ch> +gitlab-ce-8.17.2.ebuild:
|
||||
www-apps/gitlab-ce: Added ebuild for gitlab-ce-8.17.2. This version does not
|
||||
include support for gitlab-pages yet, as the ebuild for that is only just
|
||||
about to be introduced to the overlay.
|
||||
|
||||
26 Feb 2017; Manuel Friedli <manuel@fritteli.ch> gitlab-ce-8.17.0.ebuild,
|
||||
gitlab-ce-9999.ebuild:
|
||||
www-apps/gitlab-ce: Updated ebuild for the GIT version (-9999) and fixed the
|
||||
dependency to nodejs in the 8.17.0 version.
|
||||
|
||||
26 Feb 2017; Manuel Friedli <manuel@fritteli.ch>
|
||||
+files/06-gitlab-ce-8.17-fix-webpack-config.patch, gitlab-ce-8.17.0.ebuild:
|
||||
www-apps/gitlab-ce: added patch for the webpack config, hopefully fixing the
|
||||
emerge --config phase
|
||||
|
||||
*gitlab-ce-8.17.0 (24 Feb 2017)
|
||||
|
||||
24 Feb 2017; Manuel Friedli <manuel@fritteli.ch> +gitlab-ce-8.17.0.ebuild:
|
||||
www-apps/gitlab-ce: added ebuild for gitlab-ce-8.17.0. This is the first
|
||||
version to depend on npm
|
||||
|
||||
*gitlab-ce-8.16.6 (24 Feb 2017)
|
||||
|
||||
24 Feb 2017; Manuel Friedli <manuel@fritteli.ch>
|
||||
+gitlab-ce-8.16.6.ebuild:
|
||||
www-apps/gitlab-ce: Added ebuild for gitlab-ce-8.16.6
|
||||
|
||||
*gitlab-ce-8.15.7 (16 Feb 2017)
|
||||
*gitlab-ce-8.16.5 (16 Feb 2017)
|
||||
*gitlab-ce-8.17.0_rc3 (16 Feb 2017)
|
||||
|
||||
16 Feb 2017; Manuel Friedli <manuel@fritteli.ch>
|
||||
+files/03-gitlab-ce-8.17.0-database.yml.patch, +gitlab-ce-8.15.7.ebuild,
|
||||
+gitlab-ce-8.16.5.ebuild, +gitlab-ce-8.17.0_rc3.ebuild,
|
||||
-gitlab-ce-8.17.0_rc1.ebuild, gitlab-ce-9999.ebuild:
|
||||
www-apps/gitlab-ce: Added ebuilds for the lates patch versions of the 8.15
|
||||
and 8.16 branch, and also for the lates release candidate of the 8.17 branch.
|
||||
|
||||
*gitlab-ce-8.16.4 (14 Feb 2017)
|
||||
*gitlab-ce-8.17.0_rc1 (14 Feb 2017)
|
||||
|
||||
14 Feb 2017; Manuel Friedli <manuel@fritteli.ch> +gitlab-ce-8.16.4.ebuild,
|
||||
+gitlab-ce-8.17.0_rc1.ebuild, -gitlab-ce-8.14.5.ebuild,
|
||||
-gitlab-ce-8.16.0_rc2.ebuild, gitlab-ce-9999.ebuild:
|
||||
www-apps/gitlab-ce: added ebuild for gitlab-ce-8.16.4
|
||||
|
||||
*gitlab-ce-8.16.0_rc2 (16 Jan 2017)
|
||||
|
||||
16 Jan 2017; Manuel Friedli <manuel@fritteli.ch>
|
||||
+files/05-gitlab-ce-8.16.0-replace-sys-filesystem.patch,
|
||||
+gitlab-ce-8.16.0_rc2.ebuild, -gitlab-ce-8.16.0_rc1.ebuild,
|
||||
gitlab-ce-9999.ebuild:
|
||||
www-apps/gitlab-ce: updated lates RC ebuild
|
||||
|
||||
*gitlab-ce-8.15.0_rc1 (16 Dec 2016)
|
||||
|
||||
16 Dec 2016; Manuel Friedli <manuel@fritteli.ch> +gitlab-ce-8.15.0_rc1.ebuild,
|
||||
-gitlab-ce-8.14.0_rc4.ebuild:
|
||||
www-apps/gitlab-ce: added ebuild for latest release candidate (8.15.0_rc1).
|
||||
This is, as always, untested.
|
||||
|
||||
*gitlab-ce-8.14.5 (16 Dec 2016)
|
||||
|
||||
16 Dec 2016; Manuel Friedli <manuel@fritteli.ch> +gitlab-ce-8.14.5.ebuild:
|
||||
www-apps/gitlab-ce: added ebuild for version 8.14.5, latest bugfix release
|
||||
|
||||
*gitlab-ce-8.14.4 (12 Dec 2016)
|
||||
|
||||
12 Dec 2016; Manuel Friedli <manuel@fritteli.ch> +gitlab-ce-8.14.4.ebuild:
|
||||
www-apps/gitlab-ce: added ebuild for gitlab-ce-8.14.4, latest bugfix release
|
||||
|
||||
*gitlab-ce-8.14.3 (08 Dec 2016)
|
||||
|
||||
08 Dec 2016; Manuel Friedli <manuel@fritteli.ch> +gitlab-ce-8.14.3.ebuild:
|
||||
www-apps/gitlab-ce: added ebuild for gitlab 8.14.3
|
||||
|
||||
*gitlab-ce-8.14.2 (05 Dec 2016)
|
||||
|
||||
05 Dec 2016; Manuel Friedli <manuel@fritteli.ch> +gitlab-ce-8.14.2.ebuild:
|
||||
www-apps/gitlab-ce: added ebuild for latest bugfix release v8.14.2
|
||||
|
||||
23 Nov 2016; Manuel Friedli <manuel@fritteli.ch>
|
||||
-files/gitlab-8.10.6-sidekiq.service, -files/gitlab-8.13.0-sidekiq.init,
|
||||
-files/gitlab-8.13.0-unicorn.init, -gitlab-ce-8.12.7.ebuild,
|
||||
-gitlab-ce-8.13.0.ebuild, -gitlab-ce-8.13.3.ebuild, -gitlab-ce-8.13.5.ebuild,
|
||||
gitlab-ce-9999.ebuild:
|
||||
www-apps/gitlab-ce: pruned old ebuilds
|
||||
|
||||
*gitlab-ce-8.14.0 (23 Nov 2016)
|
||||
*gitlab-ce-8.14.0_rc4 (23 Nov 2016)
|
||||
|
||||
23 Nov 2016; Manuel Friedli <manuel@fritteli.ch>
|
||||
+files/03-gitlab-ce-8.14.0-database.yml.patch, +gitlab-ce-8.14.0.ebuild,
|
||||
+gitlab-ce-8.14.0_rc4.ebuild, -gitlab-ce-8.14.0_rc2.ebuild:
|
||||
www-apps/gitlab-ce: added ebuild for gitlab-ce-8.14.0
|
||||
|
||||
*gitlab-ce-8.13.6 (17 Nov 2016)
|
||||
|
||||
17 Nov 2016; Manuel Friedli <manuel@fritteli.ch> +gitlab-ce-8.13.6.ebuild:
|
||||
www-apps/gitlab-ce: added ebuild for gitlab-ce-8.13.6
|
||||
|
||||
*gitlab-ce-8.13.5 (11 Nov 2016)
|
||||
*gitlab-ce-8.14.0_rc1 (11 Nov 2016)
|
||||
|
||||
11 Nov 2016; Manuel Friedli <manuel@fritteli.ch> +gitlab-ce-8.13.5.ebuild,
|
||||
+gitlab-ce-8.14.0_rc1.ebuild, -gitlab-ce-8.12.0_rc6.ebuild,
|
||||
gitlab-ce-9999.ebuild:
|
||||
www-apps/gitlab-ce: added ebuild for gitlab-ce-8.13.5 and updated the
|
||||
bleeding-edge ones
|
||||
|
||||
04 Nov 2016; Manuel Friedli <manuel@fritteli.ch>
|
||||
files/gitlab-8.13.3-sidekiq.init, files/gitlab-8.13.3-unicorn.init:
|
||||
www-apps/gitlab-ce: fixed init script for gitlab-ce-8.13.3
|
||||
|
||||
03 Nov 2016; Manuel Friedli <manuel@fritteli.ch> gitlab-ce-9999.ebuild:
|
||||
www-apps/gitlab-ce: updated ebuild for gitlab-9999
|
||||
|
||||
*gitlab-ce-8.13.3 (03 Nov 2016)
|
||||
|
||||
03 Nov 2016; Manuel Friedli <manuel@fritteli.ch>
|
||||
+files/gitlab-8.13.3-sidekiq.init, +files/gitlab-8.13.3-unicorn.init,
|
||||
+gitlab-ce-8.13.3.ebuild:
|
||||
www-apps/gitlab-ce: added ebuild for gitlab-ce-8.13.3, also with new init
|
||||
scripts
|
||||
|
||||
22 Oct 2016; Manuel Friedli <manuel@fritteli.ch> gitlab-ce-9999.ebuild:
|
||||
www-apps/gitlab-ce: updated dependencies for gitlab-ce-9999
|
||||
|
||||
*gitlab-ce-8.13.0 (22 Oct 2016)
|
||||
|
||||
22 Oct 2016; Manuel Friedli <manuel@fritteli.ch>
|
||||
+files/gitlab-8.13.0-sidekiq.init, +files/gitlab-8.13.0-sidekiq.service,
|
||||
+files/gitlab-8.13.0-unicorn.init, +gitlab-ce-8.13.0.ebuild,
|
||||
-gitlab-ce-8.11.6.ebuild, -gitlab-ce-8.12.0.ebuild, gitlab-ce-9999.ebuild:
|
||||
www-apps/gitlab-ce: added ebuild for version 8.13.0 and deleted old ones
|
||||
|
||||
*gitlab-ce-8.12.7 (21 Oct 2016)
|
||||
|
||||
21 Oct 2016; Manuel Friedli <manuel@fritteli.ch>
|
||||
+files/01-gitlab-ce-8.7.5-fix-sendmail-config.patch,
|
||||
+files/02-gitlab-ce-8.11.0-fix-redis-config-path.patch,
|
||||
+files/03-gitlab-ce-8.12.7-database.yml.patch,
|
||||
+files/04-gitlab-ce-8.12.7-fix-check-task.patch,
|
||||
+files/05-gitlab-ce-8.12.7-replace-sys-filesystem.patch,
|
||||
+gitlab-ce-8.12.7.ebuild, -files/gitlab-ce-8.11.0-fix-redis-config-path.patch,
|
||||
-files/gitlab-ce-8.12.4-database.yml.patch,
|
||||
-files/gitlab-ce-8.7.5-fix-sendmail-config.patch, -gitlab-ce-8.12.4.ebuild,
|
||||
gitlab-ce-8.11.6.ebuild, gitlab-ce-8.12.0.ebuild, gitlab-ce-8.12.0_rc6.ebuild,
|
||||
gitlab-ce-9999.ebuild:
|
||||
www-apps/gitlab-ce: added ebuild for gitlab-8.12.7 and incorporated the
|
||||
following patches from Jakub: - 0002-default-configs.patch - 0005-fix-check-
|
||||
task.patch - 0006-replace-sys-filesystem.patch
|
||||
|
||||
23 Sep 2016; Manuel Friedli <manuel@fritteli.ch> gitlab-ce-8.12.0.ebuild:
|
||||
www-apps/gitlab-ce: added missing keywords for version 8.12.0
|
||||
|
||||
23 Sep 2016; Manuel Friedli <manuel@fritteli.ch> gitlab-ce-9999.ebuild:
|
||||
www-apps/gitlab-ce: updated dependencies for gitlab-ce-9999
|
||||
|
||||
23 Sep 2016; Manuel Friedli <manuel@fritteli.ch>
|
||||
-files/gitlab-ce-8.9.1-fix-redis-config-path.patch,
|
||||
-files/gitlab-sidekiq.service:
|
||||
www-apps/gitlab-ce: deleted obsolete auxiliary files
|
||||
|
||||
23 Sep 2016; Manuel Friedli <manuel@fritteli.ch> -gitlab-ce-8.10.6.ebuild,
|
||||
-gitlab-ce-8.11.0.ebuild, -gitlab-ce-8.11.2.ebuild, -gitlab-ce-8.11.3.ebuild,
|
||||
-gitlab-ce-8.11.4.ebuild, -gitlab-ce-8.11.5.ebuild:
|
||||
www-apps/gitlab-ce: removed old versions
|
||||
|
||||
*gitlab-ce-8.12.0 (23 Sep 2016)
|
||||
|
||||
23 Sep 2016; Manuel Friedli <manuel@fritteli.ch> +gitlab-ce-8.12.0.ebuild:
|
||||
www-apps/gitlab-ce: added ebuild for version 8.12.0
|
||||
|
||||
*gitlab-ce-8.12.0_rc6 (21 Sep 2016)
|
||||
|
||||
21 Sep 2016; Manuel Friedli <manuel@fritteli.ch> +gitlab-ce-8.12.0_rc6.ebuild,
|
||||
-gitlab-ce-8.12.0_rc4.ebuild, gitlab-ce-9999.ebuild:
|
||||
www-apps/gitlab-ce: - updated ebuild fot 8.12.0-rc4 to 8.12.0-rc6 - updated
|
||||
dependencies in 8.12.0-rc6 and 9999
|
||||
|
||||
*gitlab-ce-8.12.0_rc4 (18 Sep 2016)
|
||||
|
||||
18 Sep 2016; Manuel Friedli <manuel@fritteli.ch> +gitlab-ce-8.12.0_rc4.ebuild,
|
||||
-gitlab-ce-8.12.0_rc3.ebuild:
|
||||
www-apps/gitlab-ce: added ebuild for gitlab-ce-8.12.0_rc4 with Ruby 2.3
|
||||
support
|
||||
|
||||
*gitlab-ce-8.11.6 (18 Sep 2016)
|
||||
|
||||
18 Sep 2016; Manuel Friedli <manuel@fritteli.ch> +gitlab-ce-8.11.6.ebuild:
|
||||
www-apps/gitlab-ce: added ebuild for gitlab-ce-8.11.6
|
||||
|
||||
*gitlab-ce-8.12.0_rc2 (11 Sep 2016)
|
||||
|
||||
11 Sep 2016; Manuel Friedli <manuel@fritteli.ch> +gitlab-ce-8.12.0_rc2.ebuild,
|
||||
-gitlab-ce-8.11.0_rc1.ebuild:
|
||||
www-apps/gitlab-ce: added ebuild for version 8.12.0_rc2 and deleted old
|
||||
version 8.11.0_rc1
|
||||
|
||||
*gitlab-ce-8.11.5 (08 Sep 2016)
|
||||
|
||||
08 Sep 2016; Manuel Friedli <manuel@fritteli.ch> +gitlab-ce-8.11.5.ebuild:
|
||||
www-apps/gitlab-ce: added ebuild for gitlab-ce-8.11.5
|
||||
|
||||
*gitlab-ce-8.11.4 (02 Sep 2016)
|
||||
|
||||
02 Sep 2016; Manuel Friedli <manuel@fritteli.ch> +gitlab-ce-8.11.4.ebuild,
|
||||
gitlab-ce-9999.ebuild:
|
||||
www-apps/gitlab-ce: added ebuild for www-apps/gitlab-ce-8.11.4. this version
|
||||
should fix the update migration issue that was introduced with the 8.11.0
|
||||
ebuild.
|
||||
|
||||
*gitlab-ce-8.11.3 (30 Aug 2016)
|
||||
|
||||
30 Aug 2016; Manuel Friedli <manuel@fritteli.ch> +gitlab-ce-8.11.3.ebuild:
|
||||
www-apps/gitlab-ce: added ebuild for gitlab-ce-8.11.3 which contains various
|
||||
fixes
|
||||
|
||||
*gitlab-ce-8.11.2 (29 Aug 2016)
|
||||
|
||||
29 Aug 2016; Manuel Friedli <manuel@fritteli.ch> +gitlab-ce-8.11.2.ebuild:
|
||||
www-apps/gitlab-ce: added ebuild for gitlab-ce-8.11.2
|
||||
|
||||
22 Aug 2016; Manuel Friedli <manuel@fritteli.ch> gitlab-ce-9999.ebuild:
|
||||
www-apps/gitlab-ce: updated ebuild for gitlab-9999 (git master)
|
||||
|
||||
22 Aug 2016; Manuel Friedli <manuel@fritteli.ch> -gitlab-ce-8.10.1.ebuild,
|
||||
-gitlab-ce-8.10.2.ebuild, -gitlab-ce-8.10.3.ebuild, -gitlab-ce-8.10.4.ebuild,
|
||||
-gitlab-ce-8.9.6.ebuild:
|
||||
www-apps/gitlab-ce: purged all versions older than gitlab-ce-8.10.6
|
||||
|
||||
*gitlab-ce-8.11.0 (22 Aug 2016)
|
||||
|
||||
22 Aug 2016; Manuel Friedli <manuel@fritteli.ch>
|
||||
+files/gitlab-ce-8.11.0-fix-redis-config-path.patch, +gitlab-ce-8.11.0.ebuild:
|
||||
www-apps/gitlab-ce: added gitlab-ce-8.11.0. this version contains the new
|
||||
issue board!
|
||||
|
||||
*gitlab-ce-8.10.6 (18 Aug 2016)
|
||||
|
||||
18 Aug 2016; Manuel Friedli <manuel@fritteli.ch> +gitlab-ce-8.10.6.ebuild
|
||||
+files/gitlab-8.10.6-sidekiq.service:
|
||||
www-apps/gitlab-ce: added ebuild for gitlab-ce-8.10.6 and fixed systemd-
|
||||
sidekiq service file
|
||||
|
||||
09 Aug 2016; Manuel Friedli <manuel@fritteli.ch> gitlab-ce-8.11.0_rc1.ebuild,
|
||||
gitlab-ce-9999.ebuild:
|
||||
www-apps/gitlab-ce: updated ebuild with correct commit id for version
|
||||
8.11.0_rc1
|
||||
|
||||
*gitlab-ce-8.10.4 (05 Aug 2016)
|
||||
|
||||
05 Aug 2016; Manuel Friedli <manuel@fritteli.ch> +gitlab-ce-8.10.4.ebuild:
|
||||
www-apps/gitlab-ce: added ebuild for version 8.10.4
|
||||
|
||||
*gitlab-ce-8.10.3 (02 Aug 2016)
|
||||
|
||||
02 Aug 2016; Manuel Friedli <manuel@fritteli.ch> +gitlab-ce-8.10.3.ebuild:
|
||||
www-apps/gitlab-ce: Added ebuild for version 8.10.3
|
||||
|
||||
02 Aug 2016; Manuel Friedli <manuel@fritteli.ch> -gitlab-ce-8.10.0_rc9.ebuild:
|
||||
www-apps/gitlab-ce: removed old RC version
|
||||
|
||||
*gitlab-ce-8.10.2 (27 Jul 2016)
|
||||
|
||||
27 Jul 2016; Manuel Friedli <manuel@fritteli.ch> +gitlab-ce-8.10.2.ebuild:
|
||||
www-apps/gitlab-ce: added ebuild for version 8.10.2 which fixes several bugs
|
||||
|
||||
27 Jul 2016; Manuel Friedli <manuel@fritteli.ch> gitlab-ce-8.10.1.ebuild:
|
||||
www-apps/gitlab-ce: Fixed config phase for gitlab-ce-8.10.1
|
||||
|
||||
*gitlab-ce-8.10.1 (26 Jul 2016)
|
||||
|
||||
26 Jul 2016; Manuel Friedli <manuel@fritteli.ch> +gitlab-ce-8.10.1.ebuild,
|
||||
-files/gitlab-ce-8.8.1-fix-redis-config-path.patch, -gitlab-ce-8.8.5.ebuild,
|
||||
-gitlab-ce-8.9.1.ebuild, -gitlab-ce-8.9.2.ebuild, -gitlab-ce-8.9.3.ebuild,
|
||||
-gitlab-ce-8.9.4.ebuild, -gitlab-ce-8.9.5.ebuild:
|
||||
www-apps/gitlab-ce: - added ebuild for gitlab-ce-8.10.1 - deleted all
|
||||
versions < 8.9.6 - removed obsolete patch file
|
||||
|
||||
*gitlab-ce-8.10.0_rc9 (18 Jul 2016)
|
||||
|
||||
18 Jul 2016; Manuel Friedli <manuel@fritteli.ch> +gitlab-ce-8.10.0_rc9.ebuild,
|
||||
-gitlab-ce-8.10.0_rc4.ebuild:
|
||||
www-apps/gitlab-ce: Added ebuild for gitlab-ce-8.10.0_rc9, and removed ebuild
|
||||
for gitlab-ce-8.10.0_rc4
|
||||
|
||||
*gitlab-ce-8.10.0_rc4 (12 Jul 2016)
|
||||
|
||||
12 Jul 2016; Manuel Friedli <manuel@fritteli.ch> +gitlab-ce-8.10.0_rc4.ebuild,
|
||||
gitlab-ce-9999.ebuild:
|
||||
www-apps/gitlab-ce: Updated dependency to gitlab-workhorse in gitlab-ce-9999
|
||||
to v0.7.8 and added ebuild for gitlab-ce-8.10.0_rc4
|
||||
|
||||
*gitlab-ce-8.9.6 (11 Jul 2016)
|
||||
|
||||
11 Jul 2016; Manuel Friedli <manuel@fritteli.ch> +gitlab-ce-8.9.6.ebuild:
|
||||
www-apps/gitlab-ce: added ebuild for version 8.9.6
|
||||
|
||||
09 Jul 2016; Manuel Friedli <manuel@fritteli.ch> gitlab-ce-9999.ebuild:
|
||||
www-apps/gitlab-ce: updated dependencies to gitlab-shell and gitlab-workhorse
|
||||
for gitlab-ce-9999
|
||||
|
||||
09 Jul 2016; Manuel Friedli <manuel@fritteli.ch> gitlab-ce-8.9.1.ebuild,
|
||||
gitlab-ce-8.9.2.ebuild, gitlab-ce-8.9.3.ebuild, gitlab-ce-8.9.4.ebuild,
|
||||
gitlab-ce-8.9.5.ebuild:
|
||||
www-apps/gitlab-ce: fixed dependency on dev-vcs/gitlab-shell for all 8.9*
|
||||
ebuilds (need =dev-vcs/gitlab-shell-3.0*, not >=dev-vcs/gitlab-shell-3.0.0)
|
||||
|
||||
*gitlab-ce-8.9.5 (09 Jul 2016)
|
||||
|
||||
09 Jul 2016; Manuel Friedli <manuel@fritteli.ch> +gitlab-ce-8.9.5.ebuild:
|
||||
www-apps/gitlab-ce: Added ebuild for gitlab-8.9.5. It contains a security fix
|
||||
for CVE-2012-6684
|
||||
|
||||
*gitlab-ce-8.9.4 (05 Jul 2016)
|
||||
|
||||
05 Jul 2016; Manuel Friedli <manuel@fritteli.ch> +gitlab-ce-8.9.4.ebuild:
|
||||
www-apps/gitlab-ce: added ebuild for version 8.9.4
|
||||
|
||||
*gitlab-ce-8.9.3 (01 Jul 2016)
|
||||
|
||||
01 Jul 2016; Manuel Friedli <manuel@fritteli.ch> +gitlab-ce-8.9.3.ebuild,
|
||||
files/gitlab-unicorn.init:
|
||||
www-apps/gitlab-ce: added ebuild for version 8.9.3 and updated init script.
|
||||
now, individual restart of sidekiq is possible
|
||||
|
||||
*gitlab-ce-8.9.2 (28 Jun 2016)
|
||||
|
||||
28 Jun 2016; Manuel Friedli <manuel@fritteli.ch> +gitlab-ce-8.9.2.ebuild:
|
||||
www-apps/gitlab-ce: Added ebuild for www-apps/gitlab-ce-8.9.2. This is a
|
||||
security fix.
|
||||
|
||||
26 Jun 2016; Manuel Friedli <manuel@fritteli.ch>
|
||||
-files/gitlab-ce-8.7.5-fix-redis-config-path.patch, -gitlab-ce-8.7.5.ebuild,
|
||||
-gitlab-ce-8.8.1.ebuild, -gitlab-ce-8.8.2.ebuild, -gitlab-ce-8.8.3.ebuild,
|
||||
-gitlab-ce-8.8.4.ebuild, gitlab-ce-9999.ebuild:
|
||||
www-apps/gitlab-ce: Purged all old versions; updated patchfile for
|
||||
gitlab-ce-9999
|
||||
|
||||
*gitlab-ce-8.9.1 (26 Jun 2016)
|
||||
|
||||
18 Jun 2016; Manuel Friedli <manuel@fritteli.ch> +gitlab-ce-8.9.1.ebuild:
|
||||
Added ebuild for www-apps/gitlab-ce-8.9.1
|
||||
|
||||
*gitlab-ce-8.8.5 (18 Jun 2016)
|
||||
|
||||
18 Jun 2016; Manuel Friedli <manuel@fritteli.ch> +gitlab-ce-8.8.5.ebuild,
|
||||
gitlab-ce-9999.ebuild:
|
||||
www-apps/gitlab-ce: added ebuild for version 8.8.5 and updated dependencies
|
||||
for version 9999 (git master)
|
||||
|
||||
*gitlab-ce-8.8.4 (13 Jun 2016)
|
||||
|
||||
13 Jun 2016; Manuel Friedli <manuel@fritteli.ch> +gitlab-ce-8.8.4.ebuild:
|
||||
Added ebuild for www-apps/gitlab-ce-8.8.4
|
||||
|
||||
07 Jun 2016; Manuel Friedli <manuel@fritteli.ch> +ChangeLog:
|
||||
Added ChangeLog
|
|
@ -1,33 +0,0 @@
|
|||
AUX 01-gitlab-ce-8.7.5-fix-sendmail-config.patch 705 BLAKE2B 9e1ce59c1396726734946ad3313269259b9debcd0ecc6ad92cd769ce04d77a7de360903ae093e4d1be764717ad21d24b9b020f6caefe95df4989974d3ea6e16e SHA512 a92659db8cab022185d87f321b037b1731612bf5f89b9df4552dd49b843bb49b6019f8ddda96a6fd6cb6544664a1c3d52ca5fee2c11be8b33698cc713219510f
|
||||
AUX 02-gitlab-ce-9.0.0-fix-redis-config-path.patch 423 BLAKE2B 981bbd3f4142a870915eb01ab08d58eebcafcdebd1141c06ad94c40f2b8a7e34520e1292e517d67c6c60f17a6c4ac535396d8e7a541d4a1671e75cfa3e067986 SHA512 ae89fa3c6fde777e844e777862415450787ebf83653435cea329d66810c5805d2126d41cb1ce40b15c42371543bc182a59305b8b1b6a7433121340a625300370
|
||||
AUX 03-gitlab-ce-10.2.8-database.yml.patch 2681 BLAKE2B b2537f30844808b0cbdedf8a6c55cb5cb789a83287506d1604751c1ee54453b8667c5faf3fe75196f7dd05e9d35ee51b9260a4680202640ef96e2057b5bd3bbf SHA512 93555c817eca4b7b04aac0d3f3ffbcb2f56e03ded54529f222c1b9b2a17e6eea6133bbd1d832bf19f98b60722a1f6ba63e21649abf0b4de5ac22560494155ca1
|
||||
AUX 03-gitlab-ce-9.4.0-database.yml.patch 2402 BLAKE2B 9e31ffda8f1af976f0417dac40ad6b467fc0d9a6cf2a7d76339bff60d5aa463b08a97df26b83e82e31782ec5aba41b47773c72ba39db22da62ef9ebe53d6fdf8 SHA512 42c66dcbf6f311ddcf391330b97acc36493f5ddc8e66c8812bf9826f7750c6bd268da6d5a159973902077528cdd11ae61594e3e377b1f9a6a5b551522d615a35
|
||||
AUX 04-gitlab-ce-9.3.0-fix-check-task.patch 1090 BLAKE2B f093cfbb8c24bb96e673a4e7a9b9641da5897e9bcb1304d8eec137ed66471b369a615c10dcdefca6de3b0d2623e83c24a69214fcea0ccb23889604ed4581b61a SHA512 2eacb47df7f9782172ae4f71d8e5fb07f2a830da7733e2ec84b95259a9ee5d454f9c68f93b40251050cedd502761800ec56fe7f502309364e61e9e4431e2b112
|
||||
AUX 05-gitlab-ce-9.0.0-replace-sys-filesystem.patch 2436 BLAKE2B bca02c3ef45c5c0d376f381c842758aa107cde2b5439af9fd027b20e1898c27bd29323efac16258a510cd6b8b4db1cfb409700e134387440bfbe812f9f5a1141 SHA512 21636f298df7e762f59595f39fb50266f8737311f37aa2b9ba96bc29190b8a67eea01b09e3b589d0885da6b27beaa136fa66c7d98408a8e3ecb3ac6baf20d891
|
||||
AUX 06-gitlab-ce-8.17.0-fix-webpack-config.patch 614 BLAKE2B f635eb4943d9ed6418e6bfe9aa0380a91c6063cb0d690a7449241afc5d03a6ac28e19aeaf3b5dce05710006105a6e688ab5f8dacf92544fc4a3c96d133e8af09 SHA512 f5ccb4d1849ab395ba4ec3c80735a1fedd9fa7f790c8b114d8dc8d1fc2c431d7b9e5645247485f0b8c1061a00ed61c21a5e50f49af0d76e232182c68868a163f
|
||||
AUX 07-gitlab-ce-10.0.7-yarn.patch 36442 BLAKE2B 66be83739a26557b99861c1bf7356ccbd377a25b2602dc075d06705fa0c6136a130274e9c39d1c882bf4d6253f0a541cc74b675072d80bb418663f42067e888d SHA512 931edab62e1218f84f08db72cc2f4ff95e53c6f88d755224de5e9dd19c230bb4b4c808accebd14c7bb06e6c57e4f101f7b4fb1843abb9a908d7f9f2b901d4e5f
|
||||
AUX 08-gitlab-ce-10.4.4-general-config.patch 4069 BLAKE2B 032dac26af1510ec0e9d3b729855d12f8a1b327b331c12cc7ab29c2b6abb658f7de755f86d29258000fa6fbd97a367103ac2b10b34d3e3ae678ab415ec6c88fd SHA512 c9e7e2456c43b9b3494adacd980a07e4f75ce07259622e2215a9a2f3cd7f4173473e5e0044f978ee8b84042a42eb49156cb1d9f258e4c32b1284beb1f5ac9524
|
||||
AUX gitlab-10.4.4-sidekiq.init 1461 BLAKE2B 1754fc086c2995241023d9dacad9daa472337d328c966a5021cfe82dd5afb4fe0d0f16584057e9314e6f7ce6b79e39fd509df7e664a7e1ef31a4f3e1d64980ec SHA512 8d536a3db5af3bdf04b92e0c1e9e9d65aacb3dff244729d32f28b8dd66f586cbd5a2e60b3e2f58c2be96c0c09708dc21275adca3f89fbdfa20e000e9563ee880
|
||||
AUX gitlab-10.4.4-unicorn.init 4052 BLAKE2B 67a6bb2fc5c5571f7b631accf4502f642146a1eef028df4a49c2df5813f0a56499a4f64c090e8673a74050413a947d49caf47799b819163813491b34c609b43c SHA512 241c5ecd9f34b686c47a3b46fd8ac121c4ea5a644541bb61f2ea1f06fb9351aff79b8647ea9b147eb194545db00439ced1bced8a5d3936c55b1371802979524f
|
||||
AUX gitlab-8.13.0-sidekiq.service 990 BLAKE2B fa753e0886ccebca2338b78f5f58b23380430a3b7b9bf2b118576faf1b9bd58fe33c9bcce544a29f1f20d6a651c090677af2060901f99585df6e6a0df9d70a74 SHA512 c356baf65337739b08a0a4bfe24d3b68f557e9d6d95f479b39ec954ee6c2077e380f99d1e9e9390f5b038e093c0a46562f651512a6578dfa86977580159470a2
|
||||
AUX gitlab-9.3.5-sidekiq.init 1464 BLAKE2B 61643180adcd406fa1ddeb35ec40075fc81898279da8c87d52060a38937afe8ed895ec89350bc20a4e7adc78283d6c1df35175227beb9876b811a4cc0b476525 SHA512 fe00243c815b0e4f826aada4f02c70659872673a36fe92ea1b72a94a21bacfb097260ac1623cc1fc9c74566fe5c6068a456c9dc6e1e1c02f42e86fd162573713
|
||||
AUX gitlab-9.3.5-unicorn.init 3748 BLAKE2B c9019356230bd82a7552f2aafaa543148b1fa2e626015129276a9f17c5905c699b8e56a6f749f21da1a49728ab0054a41d08bbce9eb1e167dd8a2d721ed362df SHA512 6f7a6cded598f3f8174a4d39f06f1994aa77b22cb90fa7f1bb6f82919c9856c3eae1623f57636f2ee564b2bf6c660c82dd104e3c59455946db42e6cf44079ccb
|
||||
AUX gitlab-mailroom.service 773 BLAKE2B 97850f4e90451392fd30477ec402a1d5ecec60f1732c2a6d09657f56740ca0cffb0a25a2e9e95a807b131d452fd11f78bc37610e3d6266465186994111f13236 SHA512 f82c63a180add1103e2bd115e67826ad7362a844991ef16f1de7fc6c78bf1955155ecf278fc0d759e674ab85736f3ba2a6650d00e9b3ce683316875efd9efa3c
|
||||
AUX gitlab-unicorn.service 773 BLAKE2B e8b448c182bb6cb4a34872bb4ae94162d08e37c142d957348e1c8b1e27636f93d65b31ba4c4428132b89daa368d825c56006a574949e3d4ea00b0888afa4382c SHA512 0bf9630aa91ed8f590a7bfa42d09b7ba33f6342b43b3d191c792c11157f8926c2a2ac2390eebd8179637e29b5bf68233d4699d62463497a0fd45b9bdbdd9167b
|
||||
AUX gitlab-workhorse.service 930 BLAKE2B 824dc2f99dc87825fed07268d2b08ff73973145245e1b753caa798d358174a52887583988feb0f51a27c75b194c663ecdc954ad5620ae36a446ea2ecee44239a SHA512 6332024fe0049287899cf482b6e4439e9dd90da14e489d08aa8e5e79cb7872efcc517d99b69fa23b011b382acb1e5926496a78f08af5d2d64daa515b869a0c6a
|
||||
AUX gitlab.conf 27 BLAKE2B d06e3663890c54ec7f305e6b56ec90769664d484444b05d3003230c6399d63bd654c8ab161d70e4dd312e5fad6750a66e1c12ce60c153b816f9949dc92b41bef SHA512 909c49fee6d050c1e94b2559ff2a9d54c5c346492be0e2920b50d56d69eaddbed67e3ac12e012d2a9601b5596640ebf33c8dc68fc588a03ca370d963294be37f
|
||||
DIST gitlab-ce-10.0.7.tar.gz 40049508 BLAKE2B 700a37878b9856fd6af8a0f8ef8e4d89b2b5913ed201eef5dbcf83eb50d63df61201e87d3c9c8956385d8af1acb66a60b8a2e23921583d0ff2080a05f6960092 SHA512 770b747a35988b663f1ffe3b05b317839cc66e9c76e64e51673d066787a42acbb688b739fe9fe3a6dc787f2e44d6fbd99388ea0a20f103bedc631ed0054401f4
|
||||
DIST gitlab-ce-10.1.7.tar.gz 41749804 BLAKE2B 73d4d46f076175bbc554a36d1ed79688b969b92aede27ba2d3b2be1e210c065bb03cc19a6eb4ccaf24961ab918dba81829c60f47d330fc803892affd8f96f826 SHA512 3ebf8ab1e57ef82caeef940264a6f755e091717879d7ac36ce786155440ebd1264fa3320012cea4d1e6c319926a818cfcb19740fb765f069d5d18841ac1c0a21
|
||||
DIST gitlab-ce-10.2.8.tar.gz 42393303 BLAKE2B 9d31579a15549e05d076d927dc4eb5c704565223926e968b7e4a0efdb5fc9d64afb697c6c391bbcbb86791639817a192222b7bc50ce7fbcb86ee68dd3a03f7d6 SHA512 cdd30f8500d1c902c42fd60b155143dc76ebc9990cc9c515ab2229f678feedebf6e1c7bd9c2c59b374cea2259eb7ad1384f50184787f45381afdaf3eb8e82803
|
||||
DIST gitlab-ce-10.3.7.tar.gz 42852145 BLAKE2B 4f1340ea0b130eec5ba1fa2df43e04bab7c7bb920132c0deda0ae7498065da3938435c3aef957d416cc96ca8117ef5872f7b2c3f5691d81262ff34598b203dde SHA512 f4488e5a02067ebfbc9dcc0d1e0b06eeb047ea793c5e5c286e54c2fcee56d88f0a4b4dcbae66319a63960e7737ff134ab615764524fb7bb5bf017b0d035a55e0
|
||||
DIST gitlab-ce-9.5.10.tar.gz 36463237 BLAKE2B d29ddcdb9c8e254fa0db050db148cd26b1889ec3923950d1d75068622a3a20087f0be62c395aa25c01f06a636214063e6e3ebd0561884ff6308f23770267bd2d SHA512 c1d2de2fbe7ebde26f2b56de2b7d48a4179c4ecb7e1676bffbcbab46cd59a96a46f7d6bb2ccd9af35ffd8d7934a63e72a4a725a5fea36884007ec60e82f47e0e
|
||||
EBUILD gitlab-ce-10.0.7.ebuild 13568 BLAKE2B 22543f4630349dc09c8b96cdcd810ae65aa0e7ee7bc2b1a5da91b5189b45d2657be461ac5e8896180b1e2952f0f9a7d2beccb6a6138b8a7bbcaf3eb1e930459d SHA512 ba702162d9fad73d46953649c9faf913069f2059fbd253d8019224c1645c56cb6c0ec69893be6238e42ee3d54bbcd9a22343eece1975e084d7ff73d4efbb79dd
|
||||
EBUILD gitlab-ce-10.1.7.ebuild 13679 BLAKE2B 613508e3e215eab15a30f4cc4d84cecda8ca141370fcdf639a6a0677a05a6f39ca9303c9ce75a768b3144d40c9c380c93a8f0484ed2bfeee76dc99ca114df8a6 SHA512 6958f3f67b7d8729519175337b5e411b9d32fa3e7348105870d5f35c938e905cc60e7af23802b1b5835610c72e9a76ca50c229f5d862403ffd5065e82ee39d25
|
||||
EBUILD gitlab-ce-10.2.8.ebuild 13681 BLAKE2B f1f231d159618631160d7b1e132f204ef081649a2a86c69dcbbf41a395fb64c66ebddbc8baceeb704458084a2bfb4f8e0f4c4587a547a575f44a3643729ba2fe SHA512 805d6a717b0dcdc6551f549722abb8322a51d6cee1eb807dabac1fe4b98ffd32fcf3667d1de7f845a08e9dfb72afa257c51c6382cbc48f5f23fe15b027724dde
|
||||
EBUILD gitlab-ce-10.3.7.ebuild 14085 BLAKE2B d4b591faed66854f282766e03d316385063bef8035040fbfefbf60ec9d3b0ec380bf5a23d71f52816a65444796891f25edb093e30bcd7583d5f9928b79e8257d SHA512 311e256f675c6cbb8e374448858e0adcfecd6a5432c4384a5d9c302a3c82dcab0aab0eb9a79d90f8f770dba0d1d984f0b7e3d53ce1e3b2c4c915aaa2facdbdd7
|
||||
EBUILD gitlab-ce-10.4.5.ebuild 13152 BLAKE2B 0c0876fbe988e285ef2597531cf6bead19628bb0ed501a1367380f36ee773529434df743d83267a95e1facc9b2f8c20824089b8b0615ae2c9f57246c70c121ae SHA512 7472484a4d1f6050de4e649a11fa00d01a93dcd6a03dd41519a6c9e7673b923bb6621c2515786c016d05adcef1b130d17b8a132a0aa9b1c60aea955610892c9d
|
||||
EBUILD gitlab-ce-10.4.7.ebuild 13152 BLAKE2B 0c0876fbe988e285ef2597531cf6bead19628bb0ed501a1367380f36ee773529434df743d83267a95e1facc9b2f8c20824089b8b0615ae2c9f57246c70c121ae SHA512 7472484a4d1f6050de4e649a11fa00d01a93dcd6a03dd41519a6c9e7673b923bb6621c2515786c016d05adcef1b130d17b8a132a0aa9b1c60aea955610892c9d
|
||||
EBUILD gitlab-ce-10.5.4.ebuild 13151 BLAKE2B 66923a61ffece1fcdb974b535ec40ef33f31c617a6070a485360df5c2a9e1b7aafee872968f88835057a73ebdc65d88834b037b0d3c8a008e65962107002f232 SHA512 f183a12556bd1725dee258c1cab48dae81d4b4b5a709c2500177baf948537875a488c826fbf779db76ef5692253ac7189d6d3f8e8b38082e821df7e68bb812ee
|
||||
EBUILD gitlab-ce-9.5.10.ebuild 13526 BLAKE2B 3f5753dc7551b87d3072e91353b28bca2bacfa223046aeee28b97cd905d3097597d53b609e3de9050b75e704c8e58419e9d284e162323ee217621185d7f1e797 SHA512 e33e56c8e49bd2ef03dd9af508b186f7908b8502960cbdb95ca9166631b84d5357c4965c0919e432ee5de9b9eeb33f68773ac405c24430568f9abb0d8e7354a6
|
||||
MISC ChangeLog 27700 BLAKE2B c3cf41574933251ea85c6a2cfa2d2e57b0e452b3e7910ee1955dd8f60987d37e6c3b36f90f2144277cff4697f138c1b6efaf7fe72336887d93db708b192eee76 SHA512 ac5abb3f90e4cfe14af777a7c6bb182b6215f044b280a1a9b1865014beb50ed0212acdc066c554590e1bdd6f92c261d23d827cc47e4c92807c1431d0b757502a
|
||||
MISC metadata.xml 665 BLAKE2B da259061375fae81a312cd655c3c0344826a8af5598f10e05f8d15d65c5ce92aef3798bc40f6bb857c1c1d4bdfb343a47a4ebe9ad408b6b9f07759d6c1fa52e2 SHA512 64b8fbae373d0a057f705f64c1d097dbfab893bd585e1db65ccdb06cda9569211c9b63fa168ac8de9f6d512a17759ecd20b54d818d2790a6f4c99d0ca73fddc3
|
|
@ -1,20 +0,0 @@
|
|||
diff --git a/config/environments/production.rb b/config/environments/production.rb
|
||||
index a9d8ac4..256770a 100644
|
||||
--- a/config/environments/production.rb
|
||||
+++ b/config/environments/production.rb
|
||||
@@ -69,11 +69,10 @@ Rails.application.configure do
|
||||
config.active_support.deprecation = :notify
|
||||
|
||||
config.action_mailer.delivery_method = :sendmail
|
||||
- # Defaults to:
|
||||
- # # config.action_mailer.sendmail_settings = {
|
||||
- # # location: '/usr/sbin/sendmail',
|
||||
- # # arguments: '-i -t'
|
||||
- # # }
|
||||
+ config.action_mailer.sendmail_settings = {
|
||||
+ location: '/usr/sbin/sendmail',
|
||||
+ arguments: '-i'
|
||||
+ }
|
||||
config.action_mailer.perform_deliveries = true
|
||||
config.action_mailer.raise_delivery_errors = true
|
||||
|
|
@ -1,12 +0,0 @@
|
|||
diff --git a/config/mail_room.yml b/config/mail_room.yml
|
||||
index 88d93d4..688d663 100644
|
||||
--- a/config/mail_room.yml
|
||||
+++ b/config/mail_room.yml
|
||||
@@ -1,6 +1,6 @@
|
||||
:mailboxes:
|
||||
<%
|
||||
- require_relative "../lib/gitlab/mail_room" unless defined?(Gitlab::MailRoom)
|
||||
+ require_relative "/opt/gitlab/lib/gitlab/mail_room" unless defined?(Gitlab::MailRoom)
|
||||
config = Gitlab::MailRoom.config
|
||||
|
||||
if Gitlab::MailRoom.enabled?
|
|
@ -1,118 +0,0 @@
|
|||
diff --git a/config/database.yml.mysql b/config/database.yml.mysql
|
||||
index 98c2abe..2896c50 100644
|
||||
--- a/config/database.yml.mysql
|
||||
+++ b/config/database.yml.mysql
|
||||
@@ -3,58 +3,12 @@
|
||||
#
|
||||
production:
|
||||
adapter: mysql2
|
||||
- encoding: utf8
|
||||
- collation: utf8_general_ci
|
||||
- reconnect: false
|
||||
- database: gitlabhq_production
|
||||
- pool: 10
|
||||
- username: git
|
||||
- password: "secure password"
|
||||
- host: localhost
|
||||
- # socket: /tmp/mysql.sock
|
||||
-
|
||||
-#
|
||||
-# Development specific
|
||||
-#
|
||||
-development:
|
||||
- adapter: mysql2
|
||||
- encoding: utf8
|
||||
- collation: utf8_general_ci
|
||||
- reconnect: false
|
||||
- database: gitlabhq_development
|
||||
- pool: 5
|
||||
- username: root
|
||||
- password: "secure password"
|
||||
- host: localhost
|
||||
- # socket: /tmp/mysql.sock
|
||||
-
|
||||
-#
|
||||
-# Staging specific
|
||||
-#
|
||||
-staging:
|
||||
- adapter: mysql2
|
||||
- encoding: utf8
|
||||
- collation: utf8_general_ci
|
||||
+ encoding: utf8mb4
|
||||
+ collation: utf8mb4_general_ci
|
||||
reconnect: false
|
||||
- database: gitlabhq_staging
|
||||
+ database: gitlab
|
||||
pool: 10
|
||||
username: git
|
||||
password: "secure password"
|
||||
host: localhost
|
||||
- # socket: /tmp/mysql.sock
|
||||
-
|
||||
-# Warning: The database defined as "test" will be erased and
|
||||
-# re-generated from your development database when you run "rake".
|
||||
-# Do not set this db to the same as development or production.
|
||||
-test: &test
|
||||
- adapter: mysql2
|
||||
- encoding: utf8mb4
|
||||
- collation: utf8mb4_general_ci
|
||||
- reconnect: false
|
||||
- database: gitlabhq_test
|
||||
- pool: 5
|
||||
- username: root
|
||||
- password:
|
||||
- host: localhost
|
||||
- # socket: /tmp/mysql.sock
|
||||
- prepared_statements: false
|
||||
+ # socket: /run/mysqld/mysqld.sock
|
||||
diff --git a/config/database.yml.postgresql b/config/database.yml.postgresql
|
||||
index baded68..5669617 100644
|
||||
--- a/config/database.yml.postgresql
|
||||
+++ b/config/database.yml.postgresql
|
||||
@@ -4,45 +4,8 @@
|
||||
production:
|
||||
adapter: postgresql
|
||||
encoding: unicode
|
||||
- database: gitlabhq_production
|
||||
+ database: gitlab
|
||||
pool: 10
|
||||
username: git
|
||||
password: "secure password"
|
||||
host: localhost
|
||||
-
|
||||
-#
|
||||
-# Development specific
|
||||
-#
|
||||
-development:
|
||||
- adapter: postgresql
|
||||
- encoding: unicode
|
||||
- database: gitlabhq_development
|
||||
- pool: 5
|
||||
- username: postgres
|
||||
- password: "secure password"
|
||||
- host: localhost
|
||||
-
|
||||
-#
|
||||
-# Staging specific
|
||||
-#
|
||||
-staging:
|
||||
- adapter: postgresql
|
||||
- encoding: unicode
|
||||
- database: gitlabhq_staging
|
||||
- pool: 10
|
||||
- username: git
|
||||
- password: "secure password"
|
||||
- host: localhost
|
||||
-
|
||||
-# Warning: The database defined as "test" will be erased and
|
||||
-# re-generated from your development database when you run "rake".
|
||||
-# Do not set this db to the same as development or production.
|
||||
-test: &test
|
||||
- adapter: postgresql
|
||||
- encoding: unicode
|
||||
- database: gitlabhq_test
|
||||
- pool: 5
|
||||
- username: postgres
|
||||
- password:
|
||||
- host: localhost
|
||||
- prepared_statements: false
|
|
@ -1,104 +0,0 @@
|
|||
diff --git a/config/database.yml.mysql b/config/database.yml.mysql
|
||||
index eb71d3f..a3b5ecc 100644
|
||||
--- a/config/database.yml.mysql
|
||||
+++ b/config/database.yml.mysql
|
||||
@@ -3,43 +3,12 @@
|
||||
#
|
||||
production:
|
||||
adapter: mysql2
|
||||
- encoding: utf8
|
||||
- collation: utf8_general_ci
|
||||
+ encoding: utf8mb4
|
||||
+ collation: utf8mb4_general_ci
|
||||
reconnect: false
|
||||
- database: gitlabhq_production
|
||||
+ database: gitlab
|
||||
pool: 10
|
||||
username: git
|
||||
password: "secure password"
|
||||
# host: localhost
|
||||
- # socket: /tmp/mysql.sock
|
||||
-
|
||||
-#
|
||||
-# Development specific
|
||||
-#
|
||||
-development:
|
||||
- adapter: mysql2
|
||||
- encoding: utf8
|
||||
- collation: utf8_general_ci
|
||||
- reconnect: false
|
||||
- database: gitlabhq_development
|
||||
- pool: 5
|
||||
- username: root
|
||||
- password: "secure password"
|
||||
- # host: localhost
|
||||
- # socket: /tmp/mysql.sock
|
||||
-
|
||||
-# Warning: The database defined as "test" will be erased and
|
||||
-# re-generated from your development database when you run "rake".
|
||||
-# Do not set this db to the same as development or production.
|
||||
-test: &test
|
||||
- adapter: mysql2
|
||||
- encoding: utf8mb4
|
||||
- collation: utf8mb4_general_ci
|
||||
- reconnect: false
|
||||
- database: gitlabhq_test
|
||||
- pool: 5
|
||||
- username: root
|
||||
- password:
|
||||
- # host: localhost
|
||||
- # socket: /tmp/mysql.sock
|
||||
- prepared_statements: false
|
||||
+ # socket: /run/mysqld/mysqld.sock
|
||||
diff --git a/config/database.yml.postgresql b/config/database.yml.postgresql
|
||||
index 4b30982..28f7993 100644
|
||||
--- a/config/database.yml.postgresql
|
||||
+++ b/config/database.yml.postgresql
|
||||
@@ -4,46 +4,9 @@
|
||||
production:
|
||||
adapter: postgresql
|
||||
encoding: unicode
|
||||
- database: gitlabhq_production
|
||||
+ database: gitlab
|
||||
pool: 10
|
||||
# username: git
|
||||
# password:
|
||||
# host: localhost
|
||||
# port: 5432
|
||||
-
|
||||
-#
|
||||
-# Development specific
|
||||
-#
|
||||
-development:
|
||||
- adapter: postgresql
|
||||
- encoding: unicode
|
||||
- database: gitlabhq_development
|
||||
- pool: 5
|
||||
- username: postgres
|
||||
- password:
|
||||
- # host: localhost
|
||||
-
|
||||
-#
|
||||
-# Staging specific
|
||||
-#
|
||||
-staging:
|
||||
- adapter: postgresql
|
||||
- encoding: unicode
|
||||
- database: gitlabhq_staging
|
||||
- pool: 5
|
||||
- username: postgres
|
||||
- password:
|
||||
- # host: localhost
|
||||
-
|
||||
-# Warning: The database defined as "test" will be erased and
|
||||
-# re-generated from your development database when you run "rake".
|
||||
-# Do not set this db to the same as development or production.
|
||||
-test: &test
|
||||
- adapter: postgresql
|
||||
- encoding: unicode
|
||||
- database: gitlabhq_test
|
||||
- pool: 5
|
||||
- username: postgres
|
||||
- password:
|
||||
- # host: localhost
|
||||
- prepared_statements: false
|
|
@ -1,27 +0,0 @@
|
|||
diff --git a/lib/tasks/gitlab/check.rake b/lib/tasks/gitlab/check.rake
|
||||
index 63c5e9b..2ffa8ed 100644
|
||||
--- a/lib/tasks/gitlab/check.rake
|
||||
+++ b/lib/tasks/gitlab/check.rake
|
||||
@@ -28,7 +28,7 @@ namespace :gitlab do
|
||||
SystemCheck::App::UploadsPathPermissionCheck,
|
||||
SystemCheck::App::UploadsPathTmpPermissionCheck,
|
||||
SystemCheck::App::InitScriptExistsCheck,
|
||||
- SystemCheck::App::InitScriptUpToDateCheck,
|
||||
+ # SystemCheck::App::InitScriptUpToDateCheck, Gentoo uses a different init script
|
||||
SystemCheck::App::ProjectsHaveNamespaceCheck,
|
||||
SystemCheck::App::RedisVersionCheck,
|
||||
SystemCheck::App::RubyVersionCheck,
|
||||
@@ -272,13 +272,6 @@ namespace :gitlab do
|
||||
puts "yes".color(:green)
|
||||
else
|
||||
puts "no".color(:red)
|
||||
- try_fixing_it(
|
||||
- sudo_gitlab("RAILS_ENV=production bin/background_jobs start")
|
||||
- )
|
||||
- for_more_information(
|
||||
- see_installation_guide_section("Install Init Script"),
|
||||
- "see log/sidekiq.log for possible errors"
|
||||
- )
|
||||
fix_and_rerun
|
||||
end
|
||||
end
|
|
@ -1,80 +0,0 @@
|
|||
diff --git a/Gemfile b/Gemfile
|
||||
index 2f81332..8d1b7d6 100644
|
||||
--- a/Gemfile
|
||||
+++ b/Gemfile
|
||||
@@ -349,7 +349,7 @@ gem 'health_check', '~> 2.6.0'
|
||||
|
||||
# System information
|
||||
gem 'vmstat', '~> 2.3.0'
|
||||
-gem 'sys-filesystem', '~> 1.1.6'
|
||||
+gem 'sys-filesystem', '~> 1.1.6', group: :exclude
|
||||
|
||||
# Gitaly GRPC client
|
||||
gem 'gitaly', '~> 0.2.1'
|
||||
diff --git a/app/controllers/admin/system_info_controller.rb b/app/controllers/admin/system_info_controller.rb
|
||||
index 9903972..41af5a2 100644
|
||||
--- a/app/controllers/admin/system_info_controller.rb
|
||||
+++ b/app/controllers/admin/system_info_controller.rb
|
||||
@@ -1,3 +1,5 @@
|
||||
+require 'open3'
|
||||
+
|
||||
class Admin::SystemInfoController < Admin::ApplicationController
|
||||
EXCLUDED_MOUNT_OPTIONS = [
|
||||
'nobrowse',
|
||||
@@ -29,10 +31,14 @@ class Admin::SystemInfoController < Admin::ApplicationController
|
||||
'vfat'
|
||||
].freeze
|
||||
|
||||
+ MOUNT_REGEX = /(\S+) on (\S+) type (\S+) \(([^)]+)\)/
|
||||
+
|
||||
+ Mount = Struct.new('Mount', :name, :mount_point, :mount_type, :options)
|
||||
+ FsStat = Struct.new('FsStats', :path, :bytes_total, :bytes_used)
|
||||
+
|
||||
def show
|
||||
@cpus = Vmstat.cpu rescue nil
|
||||
@memory = Vmstat.memory rescue nil
|
||||
- mounts = Sys::Filesystem.mounts
|
||||
|
||||
@disks = []
|
||||
mounts.each do |mount|
|
||||
@@ -42,15 +48,38 @@ class Admin::SystemInfoController < Admin::ApplicationController
|
||||
next if (EXCLUDED_MOUNT_TYPES & [mount.mount_type]).any?
|
||||
|
||||
begin
|
||||
- disk = Sys::Filesystem.stat(mount.mount_point)
|
||||
+ disk = fs_stat(mount.mount_point)
|
||||
@disks.push({
|
||||
bytes_total: disk.bytes_total,
|
||||
bytes_used: disk.bytes_used,
|
||||
disk_name: mount.name,
|
||||
mount_path: disk.path
|
||||
})
|
||||
- rescue Sys::Filesystem::Error
|
||||
+ rescue IOError
|
||||
end
|
||||
end
|
||||
end
|
||||
+
|
||||
+ def mounts
|
||||
+ stdout, stderr, status = Open3.capture3('mount')
|
||||
+ fail IOError, stderr unless status.success?
|
||||
+
|
||||
+ stdout.lines
|
||||
+ .map { |line| MOUNT_REGEX.match(line) }
|
||||
+ .compact
|
||||
+ .map { |match| Mount.new(*match.captures) }
|
||||
+ end
|
||||
+
|
||||
+ def fs_stat(mount_point)
|
||||
+ stdout, status = Open3.capture2('stat', '-c', '%s %b %a', '-f', mount_point)
|
||||
+ fail IOError unless status.success?
|
||||
+
|
||||
+ block_size, blocks_total, blocks_free = stdout.split(' ').map(&:to_i)
|
||||
+
|
||||
+ bytes_total = blocks_total * block_size
|
||||
+ bytes_free = blocks_free * block_size
|
||||
+ bytes_used = bytes_total - bytes_free
|
||||
+
|
||||
+ FsStat.new(mount_point, bytes_total, bytes_used)
|
||||
+ end
|
||||
end
|
|
@ -1,13 +0,0 @@
|
|||
diff --git a/config/webpack.config.js b/config/webpack.config.js
|
||||
index d1bf9c6..210c871 100644
|
||||
--- a/config/webpack.config.js
|
||||
+++ b/config/webpack.config.js
|
||||
@@ -6,7 +6,7 @@ var webpack = require('webpack');
|
||||
var StatsPlugin = require('stats-webpack-plugin');
|
||||
var CompressionPlugin = require('compression-webpack-plugin');
|
||||
|
||||
-var ROOT_PATH = path.resolve(__dirname, '..');
|
||||
+var ROOT_PATH = '/opt/gitlab';
|
||||
var IS_PRODUCTION = process.env.NODE_ENV === 'production';
|
||||
var IS_DEV_SERVER = process.argv[1].indexOf('webpack-dev-server') !== -1;
|
||||
var DEV_SERVER_PORT = parseInt(process.env.DEV_SERVER_PORT, 10) || 3808;
|
|
@ -1,988 +0,0 @@
|
|||
diff --git a/package.json b/package.json
|
||||
index feae6ca..dc0d822 100644
|
||||
--- a/package.json
|
||||
+++ b/package.json
|
||||
@@ -71,11 +71,11 @@
|
||||
},
|
||||
"devDependencies": {
|
||||
"babel-plugin-istanbul": "^4.0.0",
|
||||
- "eslint": "^3.10.1",
|
||||
- "eslint-config-airbnb-base": "^10.0.1",
|
||||
+ "eslint": "^4.0.0",
|
||||
+ "eslint-config-airbnb-base": "^12.0.0",
|
||||
"eslint-import-resolver-webpack": "^0.8.3",
|
||||
"eslint-plugin-filenames": "^1.1.0",
|
||||
- "eslint-plugin-import": "^2.2.0",
|
||||
+ "eslint-plugin-import": "^2.6.0",
|
||||
"eslint-plugin-jasmine": "^2.1.0",
|
||||
"eslint-plugin-promise": "^3.5.0",
|
||||
"istanbul": "^0.4.5",
|
||||
diff --git a/yarn.lock b/yarn.lock
|
||||
index de4a9ac..411a469 100644
|
||||
--- a/yarn.lock
|
||||
+++ b/yarn.lock
|
||||
@@ -33,28 +33,25 @@ acorn@^4.0.3:
|
||||
version "4.0.13"
|
||||
resolved "https://registry.yarnpkg.com/acorn/-/acorn-4.0.13.tgz#105495ae5361d697bd195c825192e1ad7f253787"
|
||||
|
||||
-acorn@^5.0.0, acorn@^5.0.3, acorn@^5.1.1:
|
||||
+acorn@^5.0.0, acorn@^5.0.3:
|
||||
version "5.1.1"
|
||||
resolved "https://registry.yarnpkg.com/acorn/-/acorn-5.1.1.tgz#53fe161111f912ab999ee887a90a0bc52822fd75"
|
||||
|
||||
+acorn@^5.4.0:
|
||||
+ version "5.4.1"
|
||||
+ resolved "https://registry.yarnpkg.com/acorn/-/acorn-5.4.1.tgz#fdc58d9d17f4a4e98d102ded826a9b9759125102"
|
||||
+
|
||||
after@0.8.2:
|
||||
version "0.8.2"
|
||||
resolved "https://registry.yarnpkg.com/after/-/after-0.8.2.tgz#fedb394f9f0e02aa9768e702bda23b505fae7e1f"
|
||||
|
||||
-ajv-keywords@^1.0.0:
|
||||
- version "1.5.1"
|
||||
- resolved "https://registry.yarnpkg.com/ajv-keywords/-/ajv-keywords-1.5.1.tgz#314dd0a4b3368fad3dfcdc54ede6171b886daf3c"
|
||||
-
|
||||
ajv-keywords@^2.0.0:
|
||||
version "2.1.0"
|
||||
resolved "https://registry.yarnpkg.com/ajv-keywords/-/ajv-keywords-2.1.0.tgz#a296e17f7bfae7c1ce4f7e0de53d29cb32162df0"
|
||||
|
||||
-ajv@^4.7.0:
|
||||
- version "4.11.2"
|
||||
- resolved "https://registry.yarnpkg.com/ajv/-/ajv-4.11.2.tgz#f166c3c11cbc6cb9dcc102a5bcfe5b72c95287e6"
|
||||
- dependencies:
|
||||
- co "^4.6.0"
|
||||
- json-stable-stringify "^1.0.1"
|
||||
+ajv-keywords@^2.1.0:
|
||||
+ version "2.1.1"
|
||||
+ resolved "https://registry.yarnpkg.com/ajv-keywords/-/ajv-keywords-2.1.1.tgz#617997fc5f60576894c435f940d819e135b80762"
|
||||
|
||||
ajv@^4.9.1:
|
||||
version "4.11.8"
|
||||
@@ -72,6 +69,15 @@ ajv@^5.1.5:
|
||||
json-schema-traverse "^0.3.0"
|
||||
json-stable-stringify "^1.0.1"
|
||||
|
||||
+ajv@^5.2.3, ajv@^5.3.0:
|
||||
+ version "5.5.2"
|
||||
+ resolved "https://registry.yarnpkg.com/ajv/-/ajv-5.5.2.tgz#73b5eeca3fab653e3d3f9422b341ad42205dc965"
|
||||
+ dependencies:
|
||||
+ co "^4.6.0"
|
||||
+ fast-deep-equal "^1.0.0"
|
||||
+ fast-json-stable-stringify "^2.0.0"
|
||||
+ json-schema-traverse "^0.3.0"
|
||||
+
|
||||
align-text@^0.1.1, align-text@^0.1.3:
|
||||
version "0.1.4"
|
||||
resolved "https://registry.yarnpkg.com/align-text/-/align-text-0.1.4.tgz#0cd90a561093f35d0a99256c22b7069433fad117"
|
||||
@@ -88,9 +94,9 @@ amdefine@>=0.0.4:
|
||||
version "1.0.1"
|
||||
resolved "https://registry.yarnpkg.com/amdefine/-/amdefine-1.0.1.tgz#4a5282ac164729e93619bcfd3ad151f817ce91f5"
|
||||
|
||||
-ansi-escapes@^1.1.0:
|
||||
- version "1.4.0"
|
||||
- resolved "https://registry.yarnpkg.com/ansi-escapes/-/ansi-escapes-1.4.0.tgz#d3a8a83b319aa67793662b13e761c7911422306e"
|
||||
+ansi-escapes@^3.0.0:
|
||||
+ version "3.0.0"
|
||||
+ resolved "https://registry.yarnpkg.com/ansi-escapes/-/ansi-escapes-3.0.0.tgz#ec3e8b4e9f8064fc02c3ac9b65f1c275bda8ef92"
|
||||
|
||||
ansi-html@0.0.5:
|
||||
version "0.0.5"
|
||||
@@ -104,10 +110,20 @@ ansi-regex@^2.0.0:
|
||||
version "2.1.1"
|
||||
resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-2.1.1.tgz#c3b33ab5ee360d86e0e628f0468ae7ef27d654df"
|
||||
|
||||
+ansi-regex@^3.0.0:
|
||||
+ version "3.0.0"
|
||||
+ resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-3.0.0.tgz#ed0317c322064f79466c02966bddb605ab37d998"
|
||||
+
|
||||
ansi-styles@^2.2.1:
|
||||
version "2.2.1"
|
||||
resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-2.2.1.tgz#b432dd3358b634cf75e1e4664368240533c1ddbe"
|
||||
|
||||
+ansi-styles@^3.1.0:
|
||||
+ version "3.2.0"
|
||||
+ resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-3.2.0.tgz#c159b8d5be0f9e5a6f346dab94f16ce022161b88"
|
||||
+ dependencies:
|
||||
+ color-convert "^1.9.0"
|
||||
+
|
||||
anymatch@^1.3.0:
|
||||
version "1.3.2"
|
||||
resolved "https://registry.yarnpkg.com/anymatch/-/anymatch-1.3.2.tgz#553dcb8f91e3c889845dfdba34c77721b90b9d7a"
|
||||
@@ -278,14 +294,6 @@ babel-code-frame@^6.11.0, babel-code-frame@^6.22.0:
|
||||
esutils "^2.0.2"
|
||||
js-tokens "^3.0.0"
|
||||
|
||||
-babel-code-frame@^6.16.0:
|
||||
- version "6.26.0"
|
||||
- resolved "https://registry.yarnpkg.com/babel-code-frame/-/babel-code-frame-6.26.0.tgz#63fd43f7dc1e3bb7ce35947db8fe369a3f58c74b"
|
||||
- dependencies:
|
||||
- chalk "^1.1.3"
|
||||
- esutils "^2.0.2"
|
||||
- js-tokens "^3.0.2"
|
||||
-
|
||||
babel-core@^6.22.1, babel-core@^6.23.0:
|
||||
version "6.23.1"
|
||||
resolved "https://registry.yarnpkg.com/babel-core/-/babel-core-6.23.1.tgz#c143cb621bb2f621710c220c5d579d15b8a442df"
|
||||
@@ -990,7 +998,7 @@ brace-expansion@^1.0.0:
|
||||
balanced-match "^0.4.1"
|
||||
concat-map "0.0.1"
|
||||
|
||||
-brace-expansion@^1.1.8:
|
||||
+brace-expansion@^1.1.7, brace-expansion@^1.1.8:
|
||||
version "1.1.8"
|
||||
resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-1.1.8.tgz#c07b211c7c952ec1f8efd51a77ef0d1d3990a292"
|
||||
dependencies:
|
||||
@@ -1170,7 +1178,7 @@ center-align@^0.1.1:
|
||||
align-text "^0.1.3"
|
||||
lazy-cache "^1.0.3"
|
||||
|
||||
-chalk@1.1.3, chalk@^1.0.0, chalk@^1.1.0, chalk@^1.1.1, chalk@^1.1.3:
|
||||
+chalk@1.1.3, chalk@^1.0.0, chalk@^1.1.0, chalk@^1.1.3:
|
||||
version "1.1.3"
|
||||
resolved "https://registry.yarnpkg.com/chalk/-/chalk-1.1.3.tgz#a8115c55e4a702fe4d150abd3872822a7e09fc98"
|
||||
dependencies:
|
||||
@@ -1180,6 +1188,18 @@ chalk@1.1.3, chalk@^1.0.0, chalk@^1.1.0, chalk@^1.1.1, chalk@^1.1.3:
|
||||
strip-ansi "^3.0.0"
|
||||
supports-color "^2.0.0"
|
||||
|
||||
+chalk@^2.0.0, chalk@^2.1.0:
|
||||
+ version "2.3.0"
|
||||
+ resolved "https://registry.yarnpkg.com/chalk/-/chalk-2.3.0.tgz#b5ea48efc9c1793dccc9b4767c93914d3f2d52ba"
|
||||
+ dependencies:
|
||||
+ ansi-styles "^3.1.0"
|
||||
+ escape-string-regexp "^1.0.5"
|
||||
+ supports-color "^4.0.0"
|
||||
+
|
||||
+chardet@^0.4.0:
|
||||
+ version "0.4.2"
|
||||
+ resolved "https://registry.yarnpkg.com/chardet/-/chardet-0.4.2.tgz#b5473b33dc97c424e5d98dc87d55d4d8a29c8bf2"
|
||||
+
|
||||
chokidar@^1.4.1, chokidar@^1.4.3, chokidar@^1.6.0, chokidar@^1.7.0:
|
||||
version "1.7.0"
|
||||
resolved "https://registry.yarnpkg.com/chokidar/-/chokidar-1.7.0.tgz#798e689778151c8076b4b360e5edd28cda2bb468"
|
||||
@@ -1211,11 +1231,11 @@ clap@^1.0.9:
|
||||
dependencies:
|
||||
chalk "^1.1.3"
|
||||
|
||||
-cli-cursor@^1.0.1:
|
||||
- version "1.0.2"
|
||||
- resolved "https://registry.yarnpkg.com/cli-cursor/-/cli-cursor-1.0.2.tgz#64da3f7d56a54412e59794bd62dc35295e8f2987"
|
||||
+cli-cursor@^2.1.0:
|
||||
+ version "2.1.0"
|
||||
+ resolved "https://registry.yarnpkg.com/cli-cursor/-/cli-cursor-2.1.0.tgz#b35dac376479facc3e94747d41d0d0f5238ffcb5"
|
||||
dependencies:
|
||||
- restore-cursor "^1.0.1"
|
||||
+ restore-cursor "^2.0.0"
|
||||
|
||||
cli-width@^2.0.0:
|
||||
version "2.1.0"
|
||||
@@ -1269,6 +1289,12 @@ color-convert@^1.3.0:
|
||||
dependencies:
|
||||
color-name "^1.1.1"
|
||||
|
||||
+color-convert@^1.9.0:
|
||||
+ version "1.9.1"
|
||||
+ resolved "https://registry.yarnpkg.com/color-convert/-/color-convert-1.9.1.tgz#c1261107aeb2f294ebffec9ed9ecad529a6097ed"
|
||||
+ dependencies:
|
||||
+ color-name "^1.1.1"
|
||||
+
|
||||
color-name@^1.0.0, color-name@^1.1.1:
|
||||
version "1.1.2"
|
||||
resolved "https://registry.yarnpkg.com/color-name/-/color-name-1.1.2.tgz#5c8ab72b64bd2215d617ae9559ebb148475cf98d"
|
||||
@@ -1366,7 +1392,7 @@ concat-map@0.0.1:
|
||||
version "0.0.1"
|
||||
resolved "https://registry.yarnpkg.com/concat-map/-/concat-map-0.0.1.tgz#d8a96bd77fd68df7793a73036a3ba0d5405d477b"
|
||||
|
||||
-concat-stream@^1.5.2:
|
||||
+concat-stream@^1.6.0:
|
||||
version "1.6.0"
|
||||
resolved "https://registry.yarnpkg.com/concat-stream/-/concat-stream-1.6.0.tgz#0aac662fd52be78964d5532f694784e70110acf7"
|
||||
dependencies:
|
||||
@@ -1520,7 +1546,7 @@ cropper@^2.3.0:
|
||||
dependencies:
|
||||
jquery ">= 1.9.1"
|
||||
|
||||
-cross-spawn@^5.0.1:
|
||||
+cross-spawn@^5.0.1, cross-spawn@^5.1.0:
|
||||
version "5.1.0"
|
||||
resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-5.1.0.tgz#e8bd0efee58fcff6f8f94510a0a554bbfa235449"
|
||||
dependencies:
|
||||
@@ -1698,6 +1724,18 @@ debug@2.6.8, debug@^2.1.0, debug@^2.1.1, debug@^2.2.0, debug@^2.4.5, debug@^2.6.
|
||||
dependencies:
|
||||
ms "2.0.0"
|
||||
|
||||
+debug@^2.6.9:
|
||||
+ version "2.6.9"
|
||||
+ resolved "https://registry.yarnpkg.com/debug/-/debug-2.6.9.tgz#5d128515df134ff327e90a4c93f4e077a536341f"
|
||||
+ dependencies:
|
||||
+ ms "2.0.0"
|
||||
+
|
||||
+debug@^3.1.0:
|
||||
+ version "3.1.0"
|
||||
+ resolved "https://registry.yarnpkg.com/debug/-/debug-3.1.0.tgz#5bb5a0672628b64149566ba16819e61518c67261"
|
||||
+ dependencies:
|
||||
+ ms "2.0.0"
|
||||
+
|
||||
decamelize@^1.0.0, decamelize@^1.1.1, decamelize@^1.1.2:
|
||||
version "1.2.0"
|
||||
resolved "https://registry.yarnpkg.com/decamelize/-/decamelize-1.2.0.tgz#f6534d15148269b20352e7bee26f501f9a191290"
|
||||
@@ -1834,12 +1872,11 @@ doctrine@1.5.0:
|
||||
esutils "^2.0.2"
|
||||
isarray "^1.0.0"
|
||||
|
||||
-doctrine@^2.0.0:
|
||||
- version "2.0.0"
|
||||
- resolved "https://registry.yarnpkg.com/doctrine/-/doctrine-2.0.0.tgz#c73d8d2909d22291e1a007a395804da8b665fe63"
|
||||
+doctrine@^2.1.0:
|
||||
+ version "2.1.0"
|
||||
+ resolved "https://registry.yarnpkg.com/doctrine/-/doctrine-2.1.0.tgz#5cd01fc101621b42c4cd7f5d1a66243716d3f39d"
|
||||
dependencies:
|
||||
esutils "^2.0.2"
|
||||
- isarray "^1.0.0"
|
||||
|
||||
document-register-element@^1.3.0:
|
||||
version "1.3.0"
|
||||
@@ -2125,17 +2162,18 @@ escope@^3.6.0:
|
||||
esrecurse "^4.1.0"
|
||||
estraverse "^4.1.1"
|
||||
|
||||
-eslint-config-airbnb-base@^10.0.1:
|
||||
- version "10.0.1"
|
||||
- resolved "https://registry.yarnpkg.com/eslint-config-airbnb-base/-/eslint-config-airbnb-base-10.0.1.tgz#f17d4e52992c1d45d1b7713efbcd5ecd0e7e0506"
|
||||
+eslint-config-airbnb-base@^12.0.0:
|
||||
+ version "12.1.0"
|
||||
+ resolved "https://registry.yarnpkg.com/eslint-config-airbnb-base/-/eslint-config-airbnb-base-12.1.0.tgz#386441e54a12ccd957b0a92564a4bafebd747944"
|
||||
+ dependencies:
|
||||
+ eslint-restricted-globals "^0.1.1"
|
||||
|
||||
-eslint-import-resolver-node@^0.2.0:
|
||||
- version "0.2.3"
|
||||
- resolved "https://registry.yarnpkg.com/eslint-import-resolver-node/-/eslint-import-resolver-node-0.2.3.tgz#5add8106e8c928db2cba232bcd9efa846e3da16c"
|
||||
+eslint-import-resolver-node@^0.3.1:
|
||||
+ version "0.3.2"
|
||||
+ resolved "https://registry.yarnpkg.com/eslint-import-resolver-node/-/eslint-import-resolver-node-0.3.2.tgz#58f15fb839b8d0576ca980413476aab2472db66a"
|
||||
dependencies:
|
||||
- debug "^2.2.0"
|
||||
- object-assign "^4.0.1"
|
||||
- resolve "^1.1.6"
|
||||
+ debug "^2.6.9"
|
||||
+ resolve "^1.5.0"
|
||||
|
||||
eslint-import-resolver-webpack@^0.8.3:
|
||||
version "0.8.3"
|
||||
@@ -2153,11 +2191,11 @@ eslint-import-resolver-webpack@^0.8.3:
|
||||
resolve "^1.2.0"
|
||||
semver "^5.3.0"
|
||||
|
||||
-eslint-module-utils@^2.0.0:
|
||||
- version "2.0.0"
|
||||
- resolved "https://registry.yarnpkg.com/eslint-module-utils/-/eslint-module-utils-2.0.0.tgz#a6f8c21d901358759cdc35dbac1982ae1ee58bce"
|
||||
+eslint-module-utils@^2.1.1:
|
||||
+ version "2.1.1"
|
||||
+ resolved "https://registry.yarnpkg.com/eslint-module-utils/-/eslint-module-utils-2.1.1.tgz#abaec824177613b8a95b299639e1b6facf473449"
|
||||
dependencies:
|
||||
- debug "2.2.0"
|
||||
+ debug "^2.6.8"
|
||||
pkg-dir "^1.0.0"
|
||||
|
||||
eslint-plugin-filenames@^1.1.0:
|
||||
@@ -2174,20 +2212,20 @@ eslint-plugin-html@^2.0.1:
|
||||
dependencies:
|
||||
htmlparser2 "^3.8.2"
|
||||
|
||||
-eslint-plugin-import@^2.2.0:
|
||||
- version "2.2.0"
|
||||
- resolved "https://registry.yarnpkg.com/eslint-plugin-import/-/eslint-plugin-import-2.2.0.tgz#72ba306fad305d67c4816348a4699a4229ac8b4e"
|
||||
+eslint-plugin-import@^2.6.0:
|
||||
+ version "2.8.0"
|
||||
+ resolved "https://registry.yarnpkg.com/eslint-plugin-import/-/eslint-plugin-import-2.8.0.tgz#fa1b6ef31fcb3c501c09859c1b86f1fc5b986894"
|
||||
dependencies:
|
||||
builtin-modules "^1.1.1"
|
||||
contains-path "^0.1.0"
|
||||
- debug "^2.2.0"
|
||||
+ debug "^2.6.8"
|
||||
doctrine "1.5.0"
|
||||
- eslint-import-resolver-node "^0.2.0"
|
||||
- eslint-module-utils "^2.0.0"
|
||||
+ eslint-import-resolver-node "^0.3.1"
|
||||
+ eslint-module-utils "^2.1.1"
|
||||
has "^1.0.1"
|
||||
lodash.cond "^4.3.0"
|
||||
minimatch "^3.0.3"
|
||||
- pkg-up "^1.0.0"
|
||||
+ read-pkg-up "^2.0.0"
|
||||
|
||||
eslint-plugin-jasmine@^2.1.0:
|
||||
version "2.2.0"
|
||||
@@ -2197,51 +2235,68 @@ eslint-plugin-promise@^3.5.0:
|
||||
version "3.5.0"
|
||||
resolved "https://registry.yarnpkg.com/eslint-plugin-promise/-/eslint-plugin-promise-3.5.0.tgz#78fbb6ffe047201627569e85a6c5373af2a68fca"
|
||||
|
||||
-eslint@^3.10.1:
|
||||
- version "3.19.0"
|
||||
- resolved "https://registry.yarnpkg.com/eslint/-/eslint-3.19.0.tgz#c8fc6201c7f40dd08941b87c085767386a679acc"
|
||||
+eslint-restricted-globals@^0.1.1:
|
||||
+ version "0.1.1"
|
||||
+ resolved "https://registry.yarnpkg.com/eslint-restricted-globals/-/eslint-restricted-globals-0.1.1.tgz#35f0d5cbc64c2e3ed62e93b4b1a7af05ba7ed4d7"
|
||||
+
|
||||
+eslint-scope@^3.7.1:
|
||||
+ version "3.7.1"
|
||||
+ resolved "https://registry.yarnpkg.com/eslint-scope/-/eslint-scope-3.7.1.tgz#3d63c3edfda02e06e01a452ad88caacc7cdcb6e8"
|
||||
dependencies:
|
||||
- babel-code-frame "^6.16.0"
|
||||
- chalk "^1.1.3"
|
||||
- concat-stream "^1.5.2"
|
||||
- debug "^2.1.1"
|
||||
- doctrine "^2.0.0"
|
||||
- escope "^3.6.0"
|
||||
- espree "^3.4.0"
|
||||
+ esrecurse "^4.1.0"
|
||||
+ estraverse "^4.1.1"
|
||||
+
|
||||
+eslint-visitor-keys@^1.0.0:
|
||||
+ version "1.0.0"
|
||||
+ resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-1.0.0.tgz#3f3180fb2e291017716acb4c9d6d5b5c34a6a81d"
|
||||
+
|
||||
+eslint@^4.0.0:
|
||||
+ version "4.17.0"
|
||||
+ resolved "https://registry.yarnpkg.com/eslint/-/eslint-4.17.0.tgz#dc24bb51ede48df629be7031c71d9dc0ee4f3ddf"
|
||||
+ dependencies:
|
||||
+ ajv "^5.3.0"
|
||||
+ babel-code-frame "^6.22.0"
|
||||
+ chalk "^2.1.0"
|
||||
+ concat-stream "^1.6.0"
|
||||
+ cross-spawn "^5.1.0"
|
||||
+ debug "^3.1.0"
|
||||
+ doctrine "^2.1.0"
|
||||
+ eslint-scope "^3.7.1"
|
||||
+ eslint-visitor-keys "^1.0.0"
|
||||
+ espree "^3.5.2"
|
||||
esquery "^1.0.0"
|
||||
- estraverse "^4.2.0"
|
||||
esutils "^2.0.2"
|
||||
file-entry-cache "^2.0.0"
|
||||
- glob "^7.0.3"
|
||||
- globals "^9.14.0"
|
||||
- ignore "^3.2.0"
|
||||
+ functional-red-black-tree "^1.0.1"
|
||||
+ glob "^7.1.2"
|
||||
+ globals "^11.0.1"
|
||||
+ ignore "^3.3.3"
|
||||
imurmurhash "^0.1.4"
|
||||
- inquirer "^0.12.0"
|
||||
- is-my-json-valid "^2.10.0"
|
||||
+ inquirer "^3.0.6"
|
||||
is-resolvable "^1.0.0"
|
||||
- js-yaml "^3.5.1"
|
||||
- json-stable-stringify "^1.0.0"
|
||||
+ js-yaml "^3.9.1"
|
||||
+ json-stable-stringify-without-jsonify "^1.0.1"
|
||||
levn "^0.3.0"
|
||||
- lodash "^4.0.0"
|
||||
- mkdirp "^0.5.0"
|
||||
+ lodash "^4.17.4"
|
||||
+ minimatch "^3.0.2"
|
||||
+ mkdirp "^0.5.1"
|
||||
natural-compare "^1.4.0"
|
||||
optionator "^0.8.2"
|
||||
- path-is-inside "^1.0.1"
|
||||
- pluralize "^1.2.1"
|
||||
- progress "^1.1.8"
|
||||
- require-uncached "^1.0.2"
|
||||
- shelljs "^0.7.5"
|
||||
- strip-bom "^3.0.0"
|
||||
+ path-is-inside "^1.0.2"
|
||||
+ pluralize "^7.0.0"
|
||||
+ progress "^2.0.0"
|
||||
+ require-uncached "^1.0.3"
|
||||
+ semver "^5.3.0"
|
||||
+ strip-ansi "^4.0.0"
|
||||
strip-json-comments "~2.0.1"
|
||||
- table "^3.7.8"
|
||||
+ table "^4.0.1"
|
||||
text-table "~0.2.0"
|
||||
- user-home "^2.0.0"
|
||||
|
||||
-espree@^3.4.0:
|
||||
- version "3.5.0"
|
||||
- resolved "https://registry.yarnpkg.com/espree/-/espree-3.5.0.tgz#98358625bdd055861ea27e2867ea729faf463d8d"
|
||||
+espree@^3.5.2:
|
||||
+ version "3.5.3"
|
||||
+ resolved "https://registry.yarnpkg.com/espree/-/espree-3.5.3.tgz#931e0af64e7fbbed26b050a29daad1fc64799fa6"
|
||||
dependencies:
|
||||
- acorn "^5.1.1"
|
||||
+ acorn "^5.4.0"
|
||||
acorn-jsx "^3.0.0"
|
||||
|
||||
esprima@2.7.x, esprima@^2.6.0, esprima@^2.7.1:
|
||||
@@ -2273,7 +2328,7 @@ estraverse@^1.9.1:
|
||||
version "1.9.3"
|
||||
resolved "https://registry.yarnpkg.com/estraverse/-/estraverse-1.9.3.tgz#af67f2dc922582415950926091a4005d29c9bb44"
|
||||
|
||||
-estraverse@^4.0.0, estraverse@^4.1.1, estraverse@^4.2.0:
|
||||
+estraverse@^4.0.0, estraverse@^4.1.1:
|
||||
version "4.2.0"
|
||||
resolved "https://registry.yarnpkg.com/estraverse/-/estraverse-4.2.0.tgz#0dee3fed31fcd469618ce7342099fc1afa0bdb13"
|
||||
|
||||
@@ -2344,10 +2399,6 @@ execa@^0.7.0:
|
||||
signal-exit "^3.0.0"
|
||||
strip-eof "^1.0.0"
|
||||
|
||||
-exit-hook@^1.0.0:
|
||||
- version "1.1.1"
|
||||
- resolved "https://registry.yarnpkg.com/exit-hook/-/exit-hook-1.1.1.tgz#f05ca233b48c05d54fff07765df8507e95c02ff8"
|
||||
-
|
||||
expand-braces@^0.1.1:
|
||||
version "0.1.2"
|
||||
resolved "https://registry.yarnpkg.com/expand-braces/-/expand-braces-0.1.2.tgz#488b1d1d2451cb3d3a6b192cfc030f44c5855fea"
|
||||
@@ -2419,6 +2470,14 @@ extend@^3.0.0, extend@~3.0.0:
|
||||
version "3.0.1"
|
||||
resolved "https://registry.yarnpkg.com/extend/-/extend-3.0.1.tgz#a755ea7bc1adfcc5a31ce7e762dbaadc5e636444"
|
||||
|
||||
+external-editor@^2.0.4:
|
||||
+ version "2.1.0"
|
||||
+ resolved "https://registry.yarnpkg.com/external-editor/-/external-editor-2.1.0.tgz#3d026a21b7f95b5726387d4200ac160d372c3b48"
|
||||
+ dependencies:
|
||||
+ chardet "^0.4.0"
|
||||
+ iconv-lite "^0.4.17"
|
||||
+ tmp "^0.0.33"
|
||||
+
|
||||
extglob@^0.3.1:
|
||||
version "0.3.2"
|
||||
resolved "https://registry.yarnpkg.com/extglob/-/extglob-0.3.2.tgz#2e18ff3d2f49ab2765cec9023f011daa8d8349a1"
|
||||
@@ -2433,6 +2492,14 @@ fast-deep-equal@^0.1.0:
|
||||
version "0.1.0"
|
||||
resolved "https://registry.yarnpkg.com/fast-deep-equal/-/fast-deep-equal-0.1.0.tgz#5c6f4599aba6b333ee3342e2ed978672f1001f8d"
|
||||
|
||||
+fast-deep-equal@^1.0.0:
|
||||
+ version "1.0.0"
|
||||
+ resolved "https://registry.yarnpkg.com/fast-deep-equal/-/fast-deep-equal-1.0.0.tgz#96256a3bc975595eb36d82e9929d060d893439ff"
|
||||
+
|
||||
+fast-json-stable-stringify@^2.0.0:
|
||||
+ version "2.0.0"
|
||||
+ resolved "https://registry.yarnpkg.com/fast-json-stable-stringify/-/fast-json-stable-stringify-2.0.0.tgz#d5142c0caee6b1189f87d3a76111064f86c8bbf2"
|
||||
+
|
||||
fast-levenshtein@~2.0.4:
|
||||
version "2.0.6"
|
||||
resolved "https://registry.yarnpkg.com/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz#3d8a5c66883a16a30ca8643e851f19baa7797917"
|
||||
@@ -2459,12 +2526,11 @@ faye-websocket@~0.7.3:
|
||||
dependencies:
|
||||
websocket-driver ">=0.3.6"
|
||||
|
||||
-figures@^1.3.5:
|
||||
- version "1.7.0"
|
||||
- resolved "https://registry.yarnpkg.com/figures/-/figures-1.7.0.tgz#cbe1e3affcf1cd44b80cadfed28dc793a9701d2e"
|
||||
+figures@^2.0.0:
|
||||
+ version "2.0.0"
|
||||
+ resolved "https://registry.yarnpkg.com/figures/-/figures-2.0.0.tgz#3ab1a2d2a62c8bfb431a0c94cb797a2fce27c962"
|
||||
dependencies:
|
||||
escape-string-regexp "^1.0.5"
|
||||
- object-assign "^4.1.0"
|
||||
|
||||
file-entry-cache@^2.0.0:
|
||||
version "2.0.0"
|
||||
@@ -2646,6 +2712,10 @@ function-bind@^1.0.2:
|
||||
version "1.1.0"
|
||||
resolved "https://registry.yarnpkg.com/function-bind/-/function-bind-1.1.0.tgz#16176714c801798e4e8f2cf7f7529467bb4a5771"
|
||||
|
||||
+functional-red-black-tree@^1.0.1:
|
||||
+ version "1.0.1"
|
||||
+ resolved "https://registry.yarnpkg.com/functional-red-black-tree/-/functional-red-black-tree-1.0.1.tgz#1b0ab3bd553b2a0d6399d29c0e3ea0b252078327"
|
||||
+
|
||||
gauge@~2.7.3:
|
||||
version "2.7.4"
|
||||
resolved "https://registry.yarnpkg.com/gauge/-/gauge-2.7.4.tgz#2c03405c7538c39d7eb37b317022e325fb018bf7"
|
||||
@@ -2659,16 +2729,6 @@ gauge@~2.7.3:
|
||||
strip-ansi "^3.0.1"
|
||||
wide-align "^1.1.0"
|
||||
|
||||
-generate-function@^2.0.0:
|
||||
- version "2.0.0"
|
||||
- resolved "https://registry.yarnpkg.com/generate-function/-/generate-function-2.0.0.tgz#6858fe7c0969b7d4e9093337647ac79f60dfbe74"
|
||||
-
|
||||
-generate-object-property@^1.1.0:
|
||||
- version "1.2.0"
|
||||
- resolved "https://registry.yarnpkg.com/generate-object-property/-/generate-object-property-1.2.0.tgz#9c0e1c40308ce804f4783618b937fa88f99d50d0"
|
||||
- dependencies:
|
||||
- is-property "^1.0.0"
|
||||
-
|
||||
get-caller-file@^1.0.1:
|
||||
version "1.0.2"
|
||||
resolved "https://registry.yarnpkg.com/get-caller-file/-/get-caller-file-1.0.2.tgz#f702e63127e7e231c160a80c1554acb70d5047e5"
|
||||
@@ -2720,36 +2780,36 @@ glob@^6.0.4:
|
||||
once "^1.3.0"
|
||||
path-is-absolute "^1.0.0"
|
||||
|
||||
-glob@^7.0.0, glob@^7.1.1:
|
||||
- version "7.1.2"
|
||||
- resolved "https://registry.yarnpkg.com/glob/-/glob-7.1.2.tgz#c19c9df9a028702d678612384a6552404c636d15"
|
||||
+glob@^7.0.3, glob@^7.0.5:
|
||||
+ version "7.1.1"
|
||||
+ resolved "https://registry.yarnpkg.com/glob/-/glob-7.1.1.tgz#805211df04faaf1c63a3600306cdf5ade50b2ec8"
|
||||
dependencies:
|
||||
fs.realpath "^1.0.0"
|
||||
inflight "^1.0.4"
|
||||
inherits "2"
|
||||
- minimatch "^3.0.4"
|
||||
+ minimatch "^3.0.2"
|
||||
once "^1.3.0"
|
||||
path-is-absolute "^1.0.0"
|
||||
|
||||
-glob@^7.0.3, glob@^7.0.5:
|
||||
- version "7.1.1"
|
||||
- resolved "https://registry.yarnpkg.com/glob/-/glob-7.1.1.tgz#805211df04faaf1c63a3600306cdf5ade50b2ec8"
|
||||
+glob@^7.1.1, glob@^7.1.2:
|
||||
+ version "7.1.2"
|
||||
+ resolved "https://registry.yarnpkg.com/glob/-/glob-7.1.2.tgz#c19c9df9a028702d678612384a6552404c636d15"
|
||||
dependencies:
|
||||
fs.realpath "^1.0.0"
|
||||
inflight "^1.0.4"
|
||||
inherits "2"
|
||||
- minimatch "^3.0.2"
|
||||
+ minimatch "^3.0.4"
|
||||
once "^1.3.0"
|
||||
path-is-absolute "^1.0.0"
|
||||
|
||||
+globals@^11.0.1:
|
||||
+ version "11.3.0"
|
||||
+ resolved "https://registry.yarnpkg.com/globals/-/globals-11.3.0.tgz#e04fdb7b9796d8adac9c8f64c14837b2313378b0"
|
||||
+
|
||||
globals@^9.0.0:
|
||||
version "9.14.0"
|
||||
resolved "https://registry.yarnpkg.com/globals/-/globals-9.14.0.tgz#8859936af0038741263053b39d0e76ca241e4034"
|
||||
|
||||
-globals@^9.14.0:
|
||||
- version "9.18.0"
|
||||
- resolved "https://registry.yarnpkg.com/globals/-/globals-9.18.0.tgz#aa3896b3e69b487f17e31ed2143d69a8e30c2d8a"
|
||||
-
|
||||
globby@^5.0.0:
|
||||
version "5.0.0"
|
||||
resolved "https://registry.yarnpkg.com/globby/-/globby-5.0.0.tgz#ebd84667ca0dbb330b99bcfc68eac2bc54370e0d"
|
||||
@@ -3018,6 +3078,10 @@ iconv-lite@0.4.15:
|
||||
version "0.4.15"
|
||||
resolved "https://registry.yarnpkg.com/iconv-lite/-/iconv-lite-0.4.15.tgz#fe265a218ac6a57cfe854927e9d04c19825eddeb"
|
||||
|
||||
+iconv-lite@^0.4.17:
|
||||
+ version "0.4.19"
|
||||
+ resolved "https://registry.yarnpkg.com/iconv-lite/-/iconv-lite-0.4.19.tgz#f7468f60135f5e5dad3399c0a81be9a1603a082b"
|
||||
+
|
||||
icss-replace-symbols@^1.0.2:
|
||||
version "1.0.2"
|
||||
resolved "https://registry.yarnpkg.com/icss-replace-symbols/-/icss-replace-symbols-1.0.2.tgz#cb0b6054eb3af6edc9ab1d62d01933e2d4c8bfa5"
|
||||
@@ -3030,9 +3094,9 @@ ignore-by-default@^1.0.0:
|
||||
version "1.0.1"
|
||||
resolved "https://registry.yarnpkg.com/ignore-by-default/-/ignore-by-default-1.0.1.tgz#48ca6d72f6c6a3af00a9ad4ae6876be3889e2b09"
|
||||
|
||||
-ignore@^3.2.0:
|
||||
- version "3.3.3"
|
||||
- resolved "https://registry.yarnpkg.com/ignore/-/ignore-3.3.3.tgz#432352e57accd87ab3110e82d3fea0e47812156d"
|
||||
+ignore@^3.3.3:
|
||||
+ version "3.3.7"
|
||||
+ resolved "https://registry.yarnpkg.com/ignore/-/ignore-3.3.7.tgz#612289bfb3c220e186a58118618d5be8c1bab021"
|
||||
|
||||
immediate@~3.0.5:
|
||||
version "3.0.6"
|
||||
@@ -3086,22 +3150,23 @@ ini@^1.3.4, ini@~1.3.0:
|
||||
version "1.3.4"
|
||||
resolved "https://registry.yarnpkg.com/ini/-/ini-1.3.4.tgz#0537cb79daf59b59a1a517dff706c86ec039162e"
|
||||
|
||||
-inquirer@^0.12.0:
|
||||
- version "0.12.0"
|
||||
- resolved "https://registry.yarnpkg.com/inquirer/-/inquirer-0.12.0.tgz#1ef2bfd63504df0bc75785fff8c2c41df12f077e"
|
||||
+inquirer@^3.0.6:
|
||||
+ version "3.3.0"
|
||||
+ resolved "https://registry.yarnpkg.com/inquirer/-/inquirer-3.3.0.tgz#9dd2f2ad765dcab1ff0443b491442a20ba227dc9"
|
||||
dependencies:
|
||||
- ansi-escapes "^1.1.0"
|
||||
- ansi-regex "^2.0.0"
|
||||
- chalk "^1.0.0"
|
||||
- cli-cursor "^1.0.1"
|
||||
+ ansi-escapes "^3.0.0"
|
||||
+ chalk "^2.0.0"
|
||||
+ cli-cursor "^2.1.0"
|
||||
cli-width "^2.0.0"
|
||||
- figures "^1.3.5"
|
||||
+ external-editor "^2.0.4"
|
||||
+ figures "^2.0.0"
|
||||
lodash "^4.3.0"
|
||||
- readline2 "^1.0.1"
|
||||
- run-async "^0.1.0"
|
||||
- rx-lite "^3.1.2"
|
||||
- string-width "^1.0.1"
|
||||
- strip-ansi "^3.0.0"
|
||||
+ mute-stream "0.0.7"
|
||||
+ run-async "^2.2.0"
|
||||
+ rx-lite "^4.0.8"
|
||||
+ rx-lite-aggregates "^4.0.8"
|
||||
+ string-width "^2.1.0"
|
||||
+ strip-ansi "^4.0.0"
|
||||
through "^2.3.6"
|
||||
|
||||
internal-ip@^1.2.0:
|
||||
@@ -3213,15 +3278,6 @@ is-glob@^3.1.0:
|
||||
dependencies:
|
||||
is-extglob "^2.1.0"
|
||||
|
||||
-is-my-json-valid@^2.10.0:
|
||||
- version "2.16.0"
|
||||
- resolved "https://registry.yarnpkg.com/is-my-json-valid/-/is-my-json-valid-2.16.0.tgz#f079dd9bfdae65ee2038aae8acbc86ab109e3693"
|
||||
- dependencies:
|
||||
- generate-function "^2.0.0"
|
||||
- generate-object-property "^1.1.0"
|
||||
- jsonpointer "^4.0.0"
|
||||
- xtend "^4.0.0"
|
||||
-
|
||||
is-npm@^1.0.0:
|
||||
version "1.0.0"
|
||||
resolved "https://registry.yarnpkg.com/is-npm/-/is-npm-1.0.0.tgz#f2fb63a65e4905b406c86072765a1a4dc793b9f4"
|
||||
@@ -3268,9 +3324,9 @@ is-primitive@^2.0.0:
|
||||
version "2.0.0"
|
||||
resolved "https://registry.yarnpkg.com/is-primitive/-/is-primitive-2.0.0.tgz#207bab91638499c07b2adf240a41a87210034575"
|
||||
|
||||
-is-property@^1.0.0:
|
||||
- version "1.0.2"
|
||||
- resolved "https://registry.yarnpkg.com/is-property/-/is-property-1.0.2.tgz#57fe1c4e48474edd65b09911f26b1cd4095dda84"
|
||||
+is-promise@^2.1.0:
|
||||
+ version "2.1.0"
|
||||
+ resolved "https://registry.yarnpkg.com/is-promise/-/is-promise-2.1.0.tgz#79a2a9ece7f096e80f36d2b2f3bc16c1ff4bf3fa"
|
||||
|
||||
is-redirect@^1.0.0:
|
||||
version "1.0.0"
|
||||
@@ -3483,10 +3539,6 @@ js-tokens@^3.0.0:
|
||||
version "3.0.1"
|
||||
resolved "https://registry.yarnpkg.com/js-tokens/-/js-tokens-3.0.1.tgz#08e9f132484a2c45a30907e9dc4d5567b7f114d7"
|
||||
|
||||
-js-tokens@^3.0.2:
|
||||
- version "3.0.2"
|
||||
- resolved "https://registry.yarnpkg.com/js-tokens/-/js-tokens-3.0.2.tgz#9866df395102130e38f7f996bceb65443209c25b"
|
||||
-
|
||||
js-yaml@3.x, js-yaml@^3.4.3, js-yaml@^3.7.0:
|
||||
version "3.8.1"
|
||||
resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-3.8.1.tgz#782ba50200be7b9e5a8537001b7804db3ad02628"
|
||||
@@ -3494,9 +3546,9 @@ js-yaml@3.x, js-yaml@^3.4.3, js-yaml@^3.7.0:
|
||||
argparse "^1.0.7"
|
||||
esprima "^3.1.1"
|
||||
|
||||
-js-yaml@^3.5.1:
|
||||
- version "3.9.1"
|
||||
- resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-3.9.1.tgz#08775cebdfdd359209f0d2acd383c8f86a6904a0"
|
||||
+js-yaml@^3.9.1:
|
||||
+ version "3.10.0"
|
||||
+ resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-3.10.0.tgz#2e78441646bd4682e963f22b6e92823c309c62dc"
|
||||
dependencies:
|
||||
argparse "^1.0.7"
|
||||
esprima "^4.0.0"
|
||||
@@ -3532,7 +3584,11 @@ json-schema@0.2.3:
|
||||
version "0.2.3"
|
||||
resolved "https://registry.yarnpkg.com/json-schema/-/json-schema-0.2.3.tgz#b480c892e59a2f05954ce727bd3f2a4e882f9e13"
|
||||
|
||||
-json-stable-stringify@^1.0.0, json-stable-stringify@^1.0.1:
|
||||
+json-stable-stringify-without-jsonify@^1.0.1:
|
||||
+ version "1.0.1"
|
||||
+ resolved "https://registry.yarnpkg.com/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz#9db7b59496ad3f3cfef30a75142d2d930ad72651"
|
||||
+
|
||||
+json-stable-stringify@^1.0.1:
|
||||
version "1.0.1"
|
||||
resolved "https://registry.yarnpkg.com/json-stable-stringify/-/json-stable-stringify-1.0.1.tgz#9a759d39c5f2ff503fd5300646ed445f88c4f9af"
|
||||
dependencies:
|
||||
@@ -3560,10 +3616,6 @@ jsonify@~0.0.0:
|
||||
version "0.0.0"
|
||||
resolved "https://registry.yarnpkg.com/jsonify/-/jsonify-0.0.0.tgz#2c74b6ee41d93ca51b7b5aaee8f503631d252a73"
|
||||
|
||||
-jsonpointer@^4.0.0:
|
||||
- version "4.0.1"
|
||||
- resolved "https://registry.yarnpkg.com/jsonpointer/-/jsonpointer-4.0.1.tgz#4fd92cb34e0e9db3c89c8622ecf51f9b978c6cb9"
|
||||
-
|
||||
jsprim@^1.2.2:
|
||||
version "1.4.1"
|
||||
resolved "https://registry.yarnpkg.com/jsprim/-/jsprim-1.4.1.tgz#313e66bc1e5cc06e438bc1b7499c2e5c56acb6a2"
|
||||
@@ -3887,7 +3939,7 @@ lodash@^3.8.0:
|
||||
version "3.10.1"
|
||||
resolved "https://registry.yarnpkg.com/lodash/-/lodash-3.10.1.tgz#5bf45e8e49ba4189e17d482789dfd15bd140b7b6"
|
||||
|
||||
-lodash@^4.0.0, lodash@^4.14.0, lodash@^4.17.2, lodash@^4.17.4, lodash@^4.2.0, lodash@^4.3.0, lodash@^4.5.0:
|
||||
+lodash@^4.14.0, lodash@^4.17.2, lodash@^4.17.4, lodash@^4.2.0, lodash@^4.3.0, lodash@^4.5.0:
|
||||
version "4.17.4"
|
||||
resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.4.tgz#78203a4d1c328ae1d86dca6460e369b57f4055ae"
|
||||
|
||||
@@ -4132,9 +4184,9 @@ multicast-dns@^6.0.1:
|
||||
dns-packet "^1.0.1"
|
||||
thunky "^0.1.0"
|
||||
|
||||
-mute-stream@0.0.5:
|
||||
- version "0.0.5"
|
||||
- resolved "https://registry.yarnpkg.com/mute-stream/-/mute-stream-0.0.5.tgz#8fbfabb0a98a253d3184331f9e8deb7372fac6c0"
|
||||
+mute-stream@0.0.7:
|
||||
+ version "0.0.7"
|
||||
+ resolved "https://registry.yarnpkg.com/mute-stream/-/mute-stream-0.0.7.tgz#3075ce93bc21b8fab43e1bc4da7e8115ed1e7bab"
|
||||
|
||||
name-all-modules-plugin@^1.0.1:
|
||||
version "1.0.1"
|
||||
@@ -4383,9 +4435,11 @@ once@1.x, once@^1.3.0, once@^1.3.3, once@^1.4.0:
|
||||
dependencies:
|
||||
wrappy "1"
|
||||
|
||||
-onetime@^1.0.0:
|
||||
- version "1.1.0"
|
||||
- resolved "https://registry.yarnpkg.com/onetime/-/onetime-1.1.0.tgz#a1f7838f8314c516f05ecefcbc4ccfe04b4ed789"
|
||||
+onetime@^2.0.0:
|
||||
+ version "2.0.1"
|
||||
+ resolved "https://registry.yarnpkg.com/onetime/-/onetime-2.0.1.tgz#067428230fd67443b2794b22bba528b6867962d4"
|
||||
+ dependencies:
|
||||
+ mimic-fn "^1.0.0"
|
||||
|
||||
opener@^1.4.3:
|
||||
version "1.4.3"
|
||||
@@ -4567,7 +4621,7 @@ path-is-absolute@^1.0.0:
|
||||
version "1.0.1"
|
||||
resolved "https://registry.yarnpkg.com/path-is-absolute/-/path-is-absolute-1.0.1.tgz#174b9268735534ffbc7ace6bf53a5a9e1b5c5f5f"
|
||||
|
||||
-path-is-inside@^1.0.1:
|
||||
+path-is-inside@^1.0.1, path-is-inside@^1.0.2:
|
||||
version "1.0.2"
|
||||
resolved "https://registry.yarnpkg.com/path-is-inside/-/path-is-inside-1.0.2.tgz#365417dede44430d1c11af61027facf074bdfc53"
|
||||
|
||||
@@ -4649,15 +4703,9 @@ pkg-dir@^2.0.0:
|
||||
dependencies:
|
||||
find-up "^2.1.0"
|
||||
|
||||
-pkg-up@^1.0.0:
|
||||
- version "1.0.0"
|
||||
- resolved "https://registry.yarnpkg.com/pkg-up/-/pkg-up-1.0.0.tgz#3e08fb461525c4421624a33b9f7e6d0af5b05a26"
|
||||
- dependencies:
|
||||
- find-up "^1.0.0"
|
||||
-
|
||||
-pluralize@^1.2.1:
|
||||
- version "1.2.1"
|
||||
- resolved "https://registry.yarnpkg.com/pluralize/-/pluralize-1.2.1.tgz#d1a21483fd22bb41e58a12fa3421823140897c45"
|
||||
+pluralize@^7.0.0:
|
||||
+ version "7.0.0"
|
||||
+ resolved "https://registry.yarnpkg.com/pluralize/-/pluralize-7.0.0.tgz#298b89df8b93b0221dbf421ad2b1b1ea23fc6777"
|
||||
|
||||
portfinder@^1.0.9:
|
||||
version "1.0.13"
|
||||
@@ -4958,9 +5006,9 @@ process@^0.11.0, process@~0.11.0:
|
||||
version "0.11.9"
|
||||
resolved "https://registry.yarnpkg.com/process/-/process-0.11.9.tgz#7bd5ad21aa6253e7da8682264f1e11d11c0318c1"
|
||||
|
||||
-progress@^1.1.8:
|
||||
- version "1.1.8"
|
||||
- resolved "https://registry.yarnpkg.com/progress/-/progress-1.1.8.tgz#e260c78f6161cdd9b0e56cc3e0a85de17c7a57be"
|
||||
+progress@^2.0.0:
|
||||
+ version "2.0.0"
|
||||
+ resolved "https://registry.yarnpkg.com/progress/-/progress-2.0.0.tgz#8a1be366bf8fc23db2bd23f10c6fe920b4389d1f"
|
||||
|
||||
proto-list@~1.2.1:
|
||||
version "1.2.4"
|
||||
@@ -5197,20 +5245,6 @@ readdirp@^2.0.0:
|
||||
readable-stream "^2.0.2"
|
||||
set-immediate-shim "^1.0.1"
|
||||
|
||||
-readline2@^1.0.1:
|
||||
- version "1.0.1"
|
||||
- resolved "https://registry.yarnpkg.com/readline2/-/readline2-1.0.1.tgz#41059608ffc154757b715d9989d199ffbf372e35"
|
||||
- dependencies:
|
||||
- code-point-at "^1.0.0"
|
||||
- is-fullwidth-code-point "^1.0.0"
|
||||
- mute-stream "0.0.5"
|
||||
-
|
||||
-rechoir@^0.6.2:
|
||||
- version "0.6.2"
|
||||
- resolved "https://registry.yarnpkg.com/rechoir/-/rechoir-0.6.2.tgz#85204b54dba82d5742e28c96756ef43af50e3384"
|
||||
- dependencies:
|
||||
- resolve "^1.1.6"
|
||||
-
|
||||
recursive-readdir@2.1.1:
|
||||
version "2.1.1"
|
||||
resolved "https://registry.yarnpkg.com/recursive-readdir/-/recursive-readdir-2.1.1.tgz#a01cfc7f7f38a53ec096a096f63a50489c3e297c"
|
||||
@@ -5360,7 +5394,7 @@ require-main-filename@^1.0.1:
|
||||
version "1.0.1"
|
||||
resolved "https://registry.yarnpkg.com/require-main-filename/-/require-main-filename-1.0.1.tgz#97f717b69d48784f5f526a6c5aa8ffdda055a4d1"
|
||||
|
||||
-require-uncached@^1.0.2:
|
||||
+require-uncached@^1.0.3:
|
||||
version "1.0.3"
|
||||
resolved "https://registry.yarnpkg.com/require-uncached/-/require-uncached-1.0.3.tgz#4e0d56d6c9662fd31e43011c4b95aa49955421d3"
|
||||
dependencies:
|
||||
@@ -5379,16 +5413,22 @@ resolve@1.1.x:
|
||||
version "1.1.7"
|
||||
resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.1.7.tgz#203114d82ad2c5ed9e8e0411b3932875e889e97b"
|
||||
|
||||
-resolve@^1.1.6, resolve@^1.2.0:
|
||||
+resolve@^1.2.0:
|
||||
version "1.2.0"
|
||||
resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.2.0.tgz#9589c3f2f6149d1417a40becc1663db6ec6bc26c"
|
||||
|
||||
-restore-cursor@^1.0.1:
|
||||
- version "1.0.1"
|
||||
- resolved "https://registry.yarnpkg.com/restore-cursor/-/restore-cursor-1.0.1.tgz#34661f46886327fed2991479152252df92daa541"
|
||||
+resolve@^1.5.0:
|
||||
+ version "1.5.0"
|
||||
+ resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.5.0.tgz#1f09acce796c9a762579f31b2c1cc4c3cddf9f36"
|
||||
+ dependencies:
|
||||
+ path-parse "^1.0.5"
|
||||
+
|
||||
+restore-cursor@^2.0.0:
|
||||
+ version "2.0.0"
|
||||
+ resolved "https://registry.yarnpkg.com/restore-cursor/-/restore-cursor-2.0.0.tgz#9f7ee287f82fd326d4fd162923d62129eee0dfaf"
|
||||
dependencies:
|
||||
- exit-hook "^1.0.0"
|
||||
- onetime "^1.0.0"
|
||||
+ onetime "^2.0.0"
|
||||
+ signal-exit "^3.0.2"
|
||||
|
||||
right-align@^0.1.1:
|
||||
version "0.1.3"
|
||||
@@ -5406,15 +5446,21 @@ ripemd160@^1.0.0:
|
||||
version "1.0.1"
|
||||
resolved "https://registry.yarnpkg.com/ripemd160/-/ripemd160-1.0.1.tgz#93a4bbd4942bc574b69a8fa57c71de10ecca7d6e"
|
||||
|
||||
-run-async@^0.1.0:
|
||||
- version "0.1.0"
|
||||
- resolved "https://registry.yarnpkg.com/run-async/-/run-async-0.1.0.tgz#c8ad4a5e110661e402a7d21b530e009f25f8e389"
|
||||
+run-async@^2.2.0:
|
||||
+ version "2.3.0"
|
||||
+ resolved "https://registry.yarnpkg.com/run-async/-/run-async-2.3.0.tgz#0371ab4ae0bdd720d4166d7dfda64ff7a445a6c0"
|
||||
dependencies:
|
||||
- once "^1.3.0"
|
||||
+ is-promise "^2.1.0"
|
||||
|
||||
-rx-lite@^3.1.2:
|
||||
- version "3.1.2"
|
||||
- resolved "https://registry.yarnpkg.com/rx-lite/-/rx-lite-3.1.2.tgz#19ce502ca572665f3b647b10939f97fd1615f102"
|
||||
+rx-lite-aggregates@^4.0.8:
|
||||
+ version "4.0.8"
|
||||
+ resolved "https://registry.yarnpkg.com/rx-lite-aggregates/-/rx-lite-aggregates-4.0.8.tgz#753b87a89a11c95467c4ac1626c4efc4e05c67be"
|
||||
+ dependencies:
|
||||
+ rx-lite "*"
|
||||
+
|
||||
+rx-lite@*, rx-lite@^4.0.8:
|
||||
+ version "4.0.8"
|
||||
+ resolved "https://registry.yarnpkg.com/rx-lite/-/rx-lite-4.0.8.tgz#0b1e11af8bc44836f04a6407e92da42467b79444"
|
||||
|
||||
safe-buffer@5.1.1, safe-buffer@~5.1.0, safe-buffer@~5.1.1:
|
||||
version "5.1.1"
|
||||
@@ -5535,19 +5581,11 @@ shebang-regex@^1.0.0:
|
||||
version "1.0.0"
|
||||
resolved "https://registry.yarnpkg.com/shebang-regex/-/shebang-regex-1.0.0.tgz#da42f49740c0b42db2ca9728571cb190c98efea3"
|
||||
|
||||
-shelljs@^0.7.5:
|
||||
- version "0.7.8"
|
||||
- resolved "https://registry.yarnpkg.com/shelljs/-/shelljs-0.7.8.tgz#decbcf874b0d1e5fb72e14b164a9683048e9acb3"
|
||||
- dependencies:
|
||||
- glob "^7.0.0"
|
||||
- interpret "^1.0.0"
|
||||
- rechoir "^0.6.2"
|
||||
-
|
||||
sigmund@^1.0.1:
|
||||
version "1.0.1"
|
||||
resolved "https://registry.yarnpkg.com/sigmund/-/sigmund-1.0.1.tgz#3ff21f198cad2175f9f3b781853fd94d0d19b590"
|
||||
|
||||
-signal-exit@^3.0.0:
|
||||
+signal-exit@^3.0.0, signal-exit@^3.0.2:
|
||||
version "3.0.2"
|
||||
resolved "https://registry.yarnpkg.com/signal-exit/-/signal-exit-3.0.2.tgz#b5fdc08f1287ea1178628e415e25132b73646c6d"
|
||||
|
||||
@@ -5555,9 +5593,11 @@ slash@^1.0.0:
|
||||
version "1.0.0"
|
||||
resolved "https://registry.yarnpkg.com/slash/-/slash-1.0.0.tgz#c41f2f6c39fc16d1cd17ad4b5d896114ae470d55"
|
||||
|
||||
-slice-ansi@0.0.4:
|
||||
- version "0.0.4"
|
||||
- resolved "https://registry.yarnpkg.com/slice-ansi/-/slice-ansi-0.0.4.tgz#edbf8903f66f7ce2f8eafd6ceed65e264c831b35"
|
||||
+slice-ansi@1.0.0:
|
||||
+ version "1.0.0"
|
||||
+ resolved "https://registry.yarnpkg.com/slice-ansi/-/slice-ansi-1.0.0.tgz#044f1a49d8842ff307aad6b505ed178bd950134d"
|
||||
+ dependencies:
|
||||
+ is-fullwidth-code-point "^2.0.0"
|
||||
|
||||
slide@^1.1.5:
|
||||
version "1.1.6"
|
||||
@@ -5805,6 +5845,13 @@ string-width@^2.0.0:
|
||||
is-fullwidth-code-point "^2.0.0"
|
||||
strip-ansi "^3.0.0"
|
||||
|
||||
+string-width@^2.1.0, string-width@^2.1.1:
|
||||
+ version "2.1.1"
|
||||
+ resolved "https://registry.yarnpkg.com/string-width/-/string-width-2.1.1.tgz#ab93f27a8dc13d28cac815c462143a6d9012ae9e"
|
||||
+ dependencies:
|
||||
+ is-fullwidth-code-point "^2.0.0"
|
||||
+ strip-ansi "^4.0.0"
|
||||
+
|
||||
string_decoder@^0.10.25, string_decoder@~0.10.x:
|
||||
version "0.10.31"
|
||||
resolved "https://registry.yarnpkg.com/string_decoder/-/string_decoder-0.10.31.tgz#62e203bc41766c6c28c9fc84301dab1c5310fa94"
|
||||
@@ -5825,6 +5872,12 @@ strip-ansi@3.0.1, strip-ansi@^3.0.0, strip-ansi@^3.0.1:
|
||||
dependencies:
|
||||
ansi-regex "^2.0.0"
|
||||
|
||||
+strip-ansi@^4.0.0:
|
||||
+ version "4.0.0"
|
||||
+ resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-4.0.0.tgz#a8479022eb1ac368a871389b635262c505ee368f"
|
||||
+ dependencies:
|
||||
+ ansi-regex "^3.0.0"
|
||||
+
|
||||
strip-bom@^2.0.0:
|
||||
version "2.0.0"
|
||||
resolved "https://registry.yarnpkg.com/strip-bom/-/strip-bom-2.0.0.tgz#6219a85616520491f35788bdbf1447a99c7e6b0e"
|
||||
@@ -5859,6 +5912,12 @@ supports-color@^3.1.0, supports-color@^3.1.1, supports-color@^3.1.2, supports-co
|
||||
dependencies:
|
||||
has-flag "^1.0.0"
|
||||
|
||||
+supports-color@^4.0.0:
|
||||
+ version "4.5.0"
|
||||
+ resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-4.5.0.tgz#be7a0de484dec5c5cddf8b3d59125044912f635b"
|
||||
+ dependencies:
|
||||
+ has-flag "^2.0.0"
|
||||
+
|
||||
supports-color@^4.2.1:
|
||||
version "4.2.1"
|
||||
resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-4.2.1.tgz#65a4bb2631e90e02420dba5554c375a4754bb836"
|
||||
@@ -5877,16 +5936,16 @@ svgo@^0.7.0:
|
||||
sax "~1.2.1"
|
||||
whet.extend "~0.9.9"
|
||||
|
||||
-table@^3.7.8:
|
||||
- version "3.8.3"
|
||||
- resolved "https://registry.yarnpkg.com/table/-/table-3.8.3.tgz#2bbc542f0fda9861a755d3947fefd8b3f513855f"
|
||||
+table@^4.0.1:
|
||||
+ version "4.0.2"
|
||||
+ resolved "https://registry.yarnpkg.com/table/-/table-4.0.2.tgz#a33447375391e766ad34d3486e6e2aedc84d2e36"
|
||||
dependencies:
|
||||
- ajv "^4.7.0"
|
||||
- ajv-keywords "^1.0.0"
|
||||
- chalk "^1.1.1"
|
||||
- lodash "^4.0.0"
|
||||
- slice-ansi "0.0.4"
|
||||
- string-width "^2.0.0"
|
||||
+ ajv "^5.2.3"
|
||||
+ ajv-keywords "^2.1.0"
|
||||
+ chalk "^2.1.0"
|
||||
+ lodash "^4.17.4"
|
||||
+ slice-ansi "1.0.0"
|
||||
+ string-width "^2.1.1"
|
||||
|
||||
tapable@^0.1.8:
|
||||
version "0.1.10"
|
||||
@@ -5989,7 +6048,7 @@ tmp@0.0.31:
|
||||
dependencies:
|
||||
os-tmpdir "~1.0.1"
|
||||
|
||||
-tmp@0.0.x:
|
||||
+tmp@0.0.x, tmp@^0.0.33:
|
||||
version "0.0.33"
|
||||
resolved "https://registry.yarnpkg.com/tmp/-/tmp-0.0.33.tgz#6d34335889768d21b2bcda0aa277ced3b1bfadf9"
|
||||
dependencies:
|
||||
@@ -6186,12 +6245,6 @@ url@^0.11.0:
|
||||
punycode "1.3.2"
|
||||
querystring "0.2.0"
|
||||
|
||||
-user-home@^2.0.0:
|
||||
- version "2.0.0"
|
||||
- resolved "https://registry.yarnpkg.com/user-home/-/user-home-2.0.0.tgz#9c70bfd8169bc1dcbf48604e0f04b8b49cde9e9f"
|
||||
- dependencies:
|
||||
- os-homedir "^1.0.0"
|
||||
-
|
||||
useragent@^2.1.12:
|
||||
version "2.2.1"
|
||||
resolved "https://registry.yarnpkg.com/useragent/-/useragent-2.2.1.tgz#cf593ef4f2d175875e8bb658ea92e18a4fd06d8e"
|
|
@ -1,96 +0,0 @@
|
|||
diff --git a/config/gitlab.yml.example b/config/gitlab.yml.example
|
||||
index f2f05b3..0670112 100644
|
||||
--- a/config/gitlab.yml.example
|
||||
+++ b/config/gitlab.yml.example
|
||||
@@ -502,7 +502,7 @@ production: &base
|
||||
# Gitaly settings
|
||||
gitaly:
|
||||
# Path to the directory containing Gitaly client executables.
|
||||
- client_path: /home/git/gitaly/bin
|
||||
+ client_path: /usr/bin
|
||||
# Default Gitaly authentication token. Can be overriden per storage. Can
|
||||
# be left blank when Gitaly is running locally on a Unix socket, which
|
||||
# is the normal way to deploy Gitaly.
|
||||
@@ -520,8 +520,8 @@ production: &base
|
||||
# real path not the symlink.
|
||||
storages: # You must have at least a `default` storage path.
|
||||
default:
|
||||
- path: /home/git/repositories/
|
||||
- gitaly_address: unix:/home/git/gitlab/tmp/sockets/private/gitaly.socket # TCP connections are supported too (e.g. tcp://host:port)
|
||||
+ path: /var/lib/git/repositories/
|
||||
+ gitaly_address: unix:/run/gitlab/gitaly.socket # TCP connections are supported too (e.g. tcp://host:port)
|
||||
# gitaly_token: 'special token' # Optional: override global gitaly.token for this storage.
|
||||
|
||||
## Backup settings
|
||||
@@ -549,12 +549,12 @@ production: &base
|
||||
|
||||
## GitLab Shell settings
|
||||
gitlab_shell:
|
||||
- path: /home/git/gitlab-shell/
|
||||
- hooks_path: /home/git/gitlab-shell/hooks/
|
||||
+ path: /usr/share/gitlab-shell/
|
||||
+ hooks_path: /usr/share/gitlab-shell/hooks/
|
||||
|
||||
# File that contains the secret key for verifying access for gitlab-shell.
|
||||
# Default is '.gitlab_shell_secret' relative to Rails.root (i.e. root of the GitLab app).
|
||||
- # secret_file: /home/git/gitlab/.gitlab_shell_secret
|
||||
+ secret_file: /opt/gitlab/.gitlab_shell_secret
|
||||
|
||||
# Git over HTTP
|
||||
upload_pack: true
|
||||
@@ -569,7 +569,7 @@ production: &base
|
||||
workhorse:
|
||||
# File that contains the secret key for verifying access for gitlab-workhorse.
|
||||
# Default is '.gitlab_workhorse_secret' relative to Rails.root (i.e. root of the GitLab app).
|
||||
- # secret_file: /home/git/gitlab/.gitlab_workhorse_secret
|
||||
+ # secret_file: /opt/gitlab/.gitlab_workhorse_secret
|
||||
|
||||
## Git settings
|
||||
# CAUTION!
|
||||
@@ -667,8 +667,8 @@ test:
|
||||
backup:
|
||||
path: tmp/tests/backups
|
||||
gitlab_shell:
|
||||
- path: tmp/tests/gitlab-shell/
|
||||
- hooks_path: tmp/tests/gitlab-shell/hooks/
|
||||
+ path: /usr/share/gitlab-shell/
|
||||
+ hooks_path: /usr/share/gitlab-shell/hooks/
|
||||
issues_tracker:
|
||||
redmine:
|
||||
title: "Redmine"
|
||||
diff --git a/config/unicorn.rb.example b/config/unicorn.rb.example
|
||||
index cc10da2..3c80d44 100644
|
||||
--- a/config/unicorn.rb.example
|
||||
+++ b/config/unicorn.rb.example
|
||||
@@ -33,12 +33,12 @@ worker_processes 3
|
||||
|
||||
# Help ensure your application will always spawn in the symlinked
|
||||
# "current" directory that Capistrano sets up.
|
||||
-working_directory "/home/git/gitlab" # available in 0.94.0+
|
||||
+working_directory "/opt/gitlab" # available in 0.94.0+
|
||||
|
||||
# Listen on both a Unix domain socket and a TCP port.
|
||||
# If you are load-balancing multiple Unicorn masters, lower the backlog
|
||||
# setting to e.g. 64 for faster failover.
|
||||
-listen "/home/git/gitlab/tmp/sockets/gitlab.socket", :backlog => 1024
|
||||
+listen "/run/gitlab/gitlab.socket", :backlog => 1024
|
||||
listen "127.0.0.1:8080", :tcp_nopush => true
|
||||
|
||||
# nuke workers after 30 seconds instead of 60 seconds (the default)
|
||||
@@ -59,13 +59,13 @@ listen "127.0.0.1:8080", :tcp_nopush => true
|
||||
timeout 60
|
||||
|
||||
# feel free to point this anywhere accessible on the filesystem
|
||||
-pid "/home/git/gitlab/tmp/pids/unicorn.pid"
|
||||
+pid "/run/gitlab/unicorn.pid"
|
||||
|
||||
# By default, the Unicorn logger will write to stderr.
|
||||
# Additionally, some applications/frameworks log to stderr or stdout,
|
||||
# so prevent them from going to /dev/null when daemonized here:
|
||||
-stderr_path "/home/git/gitlab/log/unicorn.stderr.log"
|
||||
-stdout_path "/home/git/gitlab/log/unicorn.stdout.log"
|
||||
+stderr_path "/var/log/gitlab/unicorn.stderr.log"
|
||||
+stdout_path "/var/log/gitlab/unicorn.stdout.log"
|
||||
|
||||
# combine Ruby 2.0.0dev or REE with "preload_app true" for memory savings
|
||||
# http://rubyenterpriseedition.com/faq.html#adapt_apps_for_cow
|
|
@ -1,64 +0,0 @@
|
|||
#!/sbin/openrc-run
|
||||
|
||||
extra_started_commands="check"
|
||||
|
||||
name="GitLab Sidekiq"
|
||||
description="Sidekiq for GitLab"
|
||||
description_check="Runs sanity checks"
|
||||
|
||||
: ${gitlab_user:=@USER@}
|
||||
: ${gitlab_base:="@GITLAB_BASE@"}
|
||||
: ${rails_env:=production}
|
||||
|
||||
: ${sidekiq_pidfile:="/run/gitlab/sidekiq.pid"}
|
||||
: ${sidekiq_logfile:="@LOGS_DIR@/sidekiq.log"}
|
||||
: ${sidekiq_config:="/etc/gitlab/sidekiq_queues.yml"}
|
||||
|
||||
sidekiq_command="/usr/bin/bundle"
|
||||
sidekiq_command_args="exec sidekiq -C ${sidekiq_config} -P ${sidekiq_pidfile} -L ${sidekiq_logfile}"
|
||||
|
||||
check_command="sudo -u ${gitlab_user} -H /usr/bin/bundle"
|
||||
check_command_args1="exec rake gitlab:env:info RAILS_ENV=${rails_env}"
|
||||
check_command_args2="exec rake gitlab:check RAILS_ENV=${rails_env}"
|
||||
|
||||
depend() {
|
||||
need redis gitlab-workhorse
|
||||
use net
|
||||
}
|
||||
|
||||
start() {
|
||||
checkpath -d -o ${gitlab_user} -m755 "$(dirname "${sidekiq_pidfile}")"
|
||||
|
||||
ebegin "Starting ${name} - Sidekiq"
|
||||
|
||||
start-stop-daemon --start \
|
||||
--background --quiet \
|
||||
--chdir "${gitlab_base}" \
|
||||
--user=${gitlab_user} \
|
||||
--pidfile="${sidekiq_pidfile}" \
|
||||
--env RAILS_ENV=${rails_env} \
|
||||
--exec ${sidekiq_command} -- ${sidekiq_command_args}
|
||||
eend $?
|
||||
}
|
||||
|
||||
stop() {
|
||||
ebegin "Stopping ${name} - Sidekiq"
|
||||
start-stop-daemon --stop \
|
||||
--pidfile="${sidekiq_pidfile}" \
|
||||
--exec ${sidekiq_command}
|
||||
eend $?
|
||||
}
|
||||
|
||||
check() {
|
||||
ebegin "Running sanity checks for ${name}"
|
||||
|
||||
cd /opt/gitlab
|
||||
|
||||
${check_command} ${check_command_args1}
|
||||
|
||||
eend $?
|
||||
|
||||
${check_command} ${check_command_args2}
|
||||
|
||||
eend $?
|
||||
}
|
|
@ -1,156 +0,0 @@
|
|||
#!/sbin/openrc-run
|
||||
|
||||
extra_started_commands="restartsidekiq check"
|
||||
extra_stopped_commands="backup"
|
||||
|
||||
name="GitLab"
|
||||
description="GitLab on Unicorns"
|
||||
description_restartsidekiq="Restarts Sidekiq only"
|
||||
description_check="Runs sanity checks"
|
||||
description_backup="Creates a backup of your Gitlab database and files"
|
||||
|
||||
: ${gitlab_user:=@USER@}
|
||||
: ${gitlab_base:="@GITLAB_BASE@"}
|
||||
: ${rails_env:=production}
|
||||
|
||||
: ${server_pidfile:="/run/gitlab/unicorn.pid"}
|
||||
|
||||
: ${sidekiq_pidfile:="/run/gitlab/sidekiq.pid"}
|
||||
: ${sidekiq_logfile:="@LOGS_DIR@/sidekiq.log"}
|
||||
: ${sidekiq_config:="/etc/gitlab/sidekiq_queues.yml"}
|
||||
|
||||
: ${mail_room_pidfile:="/run/gitlab/mail_room.pid"}
|
||||
: ${mail_room_logfile:="@LOGS_DIR@/mail_room.log"}
|
||||
: ${mail_room_config:="/etc/gitlab/mail_room.yml"}
|
||||
|
||||
socket_dir="/run/gitlab"
|
||||
|
||||
server_command="/usr/bin/bundle"
|
||||
server_command_args="exec unicorn_rails -c ${gitlab_base}/config/unicorn.rb -E ${rails_env} -D"
|
||||
|
||||
sidekiq_command="/usr/bin/bundle"
|
||||
sidekiq_command_args="exec sidekiq -C ${sidekiq_config} -P ${sidekiq_pidfile} -L ${sidekiq_logfile}"
|
||||
|
||||
mail_room_command="/usr/bin/bundle"
|
||||
mail_room_command_args="exec mail_room -q -c ${mail_room_config} >> ${mail_room_logfile} 2>&1"
|
||||
|
||||
check_command="sudo -u ${gitlab_user} -H /usr/bin/bundle"
|
||||
check_command_args1="exec rake gitlab:env:info RAILS_ENV=${rails_env}"
|
||||
check_command_args2="exec rake gitlab:check RAILS_ENV=${rails_env}"
|
||||
|
||||
backup_command="sudo -u ${gitlab_user} -H /usr/bin/bundle"
|
||||
backup_args=" exec rake gitlab:backup:create RAILS_ENV=${rails_env}"
|
||||
|
||||
depend() {
|
||||
need redis gitlab-workhorse gitlab-gitaly
|
||||
use net
|
||||
}
|
||||
|
||||
start() {
|
||||
ebegin "Starting ${name} - Unicorn servers"
|
||||
|
||||
checkpath -d -o ${gitlab_user} -m755 "$(dirname "${server_pidfile}")"
|
||||
checkpath -d -o ${gitlab_user} -m755 "$(dirname "${sidekiq_pidfile}")"
|
||||
checkpath -d -o ${gitlab_user} -m755 "$(dirname "${mail_room_pidfile}")"
|
||||
checkpath -d -o ${gitlab_user} -m700 "${socket_dir}"
|
||||
|
||||
start-stop-daemon --start \
|
||||
--chdir "${gitlab_base}" \
|
||||
--user=${gitlab_user} \
|
||||
--pidfile="${server_pidfile}" \
|
||||
--env RAILS_ENV=${rails_env} \
|
||||
--exec ${server_command} -- ${server_command_args}
|
||||
eend $?
|
||||
|
||||
ebegin "Starting ${name} - Sidekiq"
|
||||
|
||||
start-stop-daemon --start \
|
||||
--background --quiet \
|
||||
--chdir "${gitlab_base}" \
|
||||
--user=${gitlab_user} \
|
||||
--pidfile="${sidekiq_pidfile}" \
|
||||
--env RAILS_ENV=${rails_env} \
|
||||
--exec ${sidekiq_command} -- ${sidekiq_command_args}
|
||||
eend $?
|
||||
|
||||
if [ -e /etc/default/gitlab ]; then
|
||||
. /etc/default/gitlab
|
||||
if [ "${mail_room_enabled}" == "true" ]; then
|
||||
ebegin "Starting ${name} - mail_room"
|
||||
|
||||
start-stop-daemon --start \
|
||||
--background --quiet \
|
||||
--chdir "${gitlab_base}" \
|
||||
--user=${gitlab_user} \
|
||||
--pidfile="${mail_room_pidfile}" -m \
|
||||
--env RAILS_ENV=${rails_env} \
|
||||
--exec ${mail_room_command} -- ${mail_room_command_args}
|
||||
eend $?
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
stop() {
|
||||
ebegin "Stopping ${name} - mail_room"
|
||||
start-stop-daemon --stop \
|
||||
--signal QUIT \
|
||||
--pidfile=${mail_room_pidfile} \
|
||||
--exec ${mail_room_command}
|
||||
eend $?
|
||||
|
||||
ebegin "Stopping ${name} - Sidekiq"
|
||||
start-stop-daemon --stop \
|
||||
--pidfile=${sidekiq_pidfile} \
|
||||
--exec ${sidekiq_command}
|
||||
eend $?
|
||||
|
||||
ebegin "Stopping ${name} - Unicorn servers"
|
||||
start-stop-daemon --stop \
|
||||
--signal QUIT \
|
||||
--pidfile=${server_pidfile} \
|
||||
--exec ${server_command}
|
||||
eend $?
|
||||
}
|
||||
|
||||
restartsidekiq() {
|
||||
ebegin "Restarting ${name} - Sidekiq: Stopping"
|
||||
start-stop-daemon --stop \
|
||||
--pidfile=${sidekiq_pidfile} \
|
||||
--exec ${sidekiq_command} \
|
||||
--progress \
|
||||
--retry 180
|
||||
|
||||
eend $?
|
||||
|
||||
ebegin "Starting ${name} - Sidekiq"
|
||||
|
||||
start-stop-daemon --start \
|
||||
--background --quiet \
|
||||
--chdir "${gitlab_base}" \
|
||||
--user=${gitlab_user} \
|
||||
--pidfile="${sidekiq_pidfile}" \
|
||||
--env RAILS_ENV=${rails_env} \
|
||||
--exec ${sidekiq_command} -- ${sidekiq_command_args}
|
||||
eend $?
|
||||
}
|
||||
|
||||
check() {
|
||||
ebegin "Running sanity checks for ${name}"
|
||||
|
||||
cd /opt/gitlab
|
||||
|
||||
${check_command} ${check_command_args1}
|
||||
|
||||
eend $?
|
||||
|
||||
${check_command} ${check_command_args2}
|
||||
|
||||
eend $?
|
||||
}
|
||||
|
||||
backup() {
|
||||
ebegin "Creating backup of ${name}"
|
||||
cd /opt/gitlab
|
||||
${backup_command} ${backup_args}
|
||||
eend $?
|
||||
}
|
|
@ -1,27 +0,0 @@
|
|||
#####################################################
|
||||
#
|
||||
# GitLab version : 8.13.x - 9999
|
||||
# Contributors : davispuh, mtorromeo, axilleas, boeserwolf91, Stefan Tatschner (rumpelsepp)
|
||||
# Downloaded from : https://gitlab.com/gitlab-org/gitlab-recipes/tree/master/init/systemd
|
||||
#
|
||||
####################################################
|
||||
|
||||
[Unit]
|
||||
Description=GitLab Sidekiq Worker
|
||||
Requires=redis.service
|
||||
Wants=mysqld.service postgresql.service
|
||||
After=redis.service mysqld.service postgresql.service
|
||||
|
||||
[Service]
|
||||
Type=forking
|
||||
User=git
|
||||
WorkingDirectory=/opt/gitlab
|
||||
Environment=RAILS_ENV=production
|
||||
SyslogIdentifier=gitlab-sidekiq
|
||||
PIDFile=/run/gitlab/sidekiq.pid
|
||||
|
||||
ExecStart=/usr/bin/bundle exec "sidekiq -d -C /etc/gitlab/sidekiq_queues.yml -e production -P /run/gitlab/sidekiq.pid -d -L /var/log/gitlab/sidekiq.log >> /var/log/gitlab/sidekiq.log 2>&1"
|
||||
ExecStop=/usr/bin/bundle exec "sidekiqctl stop /run/gitlab/sidekiq.pid >> /var/log/gitlab/sidekiq.log 2>&1"
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
|
@ -1,64 +0,0 @@
|
|||
#!/sbin/openrc-run
|
||||
|
||||
extra_started_commands="check"
|
||||
|
||||
name="GitLab Sidekiq"
|
||||
description="Sidekiq for GitLab"
|
||||
description_check="Runs sanity checks"
|
||||
|
||||
: ${gitlab_user:=@USER@}
|
||||
: ${gitlab_base:="@GITLAB_BASE@"}
|
||||
: ${rails_env:=production}
|
||||
|
||||
: ${sidekiq_pidfile:="/run/gitlab/pids/sidekiq.pid"}
|
||||
: ${sidekiq_logfile:="@LOGS_DIR@/sidekiq.log"}
|
||||
: ${sidekiq_config:="/etc/gitlab/sidekiq_queues.yml"}
|
||||
|
||||
sidekiq_command="/usr/bin/bundle"
|
||||
sidekiq_command_args="exec sidekiq -C ${sidekiq_config} -P ${sidekiq_pidfile} -L ${sidekiq_logfile}"
|
||||
|
||||
check_command="sudo -u ${gitlab_user} -H /usr/bin/bundle"
|
||||
check_command_args1="exec rake gitlab:env:info RAILS_ENV=${rails_env}"
|
||||
check_command_args2="exec rake gitlab:check RAILS_ENV=${rails_env}"
|
||||
|
||||
depend() {
|
||||
need redis gitlab-workhorse
|
||||
use net
|
||||
}
|
||||
|
||||
start() {
|
||||
checkpath -d -o ${gitlab_user} -m755 "$(dirname "${sidekiq_pidfile}")"
|
||||
|
||||
ebegin "Starting ${name} - Sidekiq"
|
||||
|
||||
start-stop-daemon --start \
|
||||
--background --quiet \
|
||||
--chdir "${gitlab_base}" \
|
||||
--user=${gitlab_user} \
|
||||
--pidfile="${sidekiq_pidfile}" \
|
||||
--env RAILS_ENV=${rails_env} \
|
||||
--exec ${sidekiq_command} -- ${sidekiq_command_args}
|
||||
eend $?
|
||||
}
|
||||
|
||||
stop() {
|
||||
ebegin "Stopping ${name} - Sidekiq"
|
||||
start-stop-daemon --stop \
|
||||
--pidfile=${sidekiq_pidfile} \
|
||||
--exec ${sidekiq_command}
|
||||
eend $?
|
||||
}
|
||||
|
||||
check() {
|
||||
ebegin "Running sanity checks for ${name}"
|
||||
|
||||
cd /opt/gitlab
|
||||
|
||||
${check_command} ${check_command_args1}
|
||||
|
||||
eend $?
|
||||
|
||||
${check_command} ${check_command_args2}
|
||||
|
||||
eend $?
|
||||
}
|
|
@ -1,145 +0,0 @@
|
|||
#!/sbin/openrc-run
|
||||
|
||||
extra_started_commands="restartsidekiq check"
|
||||
|
||||
name="GitLab"
|
||||
description="GitLab on Unicorns"
|
||||
description_restartsidekiq="Restarts Sidekiq only"
|
||||
description_check="Runs sanity checks"
|
||||
|
||||
: ${gitlab_user:=@USER@}
|
||||
: ${gitlab_base:="@GITLAB_BASE@"}
|
||||
: ${rails_env:=production}
|
||||
|
||||
: ${server_pidfile:="/run/gitlab/pids/unicorn.pid"}
|
||||
|
||||
: ${sidekiq_pidfile:="/run/gitlab/pids/sidekiq.pid"}
|
||||
: ${sidekiq_logfile:="@LOGS_DIR@/sidekiq.log"}
|
||||
: ${sidekiq_config:="/etc/gitlab/sidekiq_queues.yml"}
|
||||
|
||||
: ${mail_room_pidfile:="/run/gitlab/pids/mail_room.pid"}
|
||||
: ${mail_room_logfile:="@LOGS_DIR@/mail_room.log"}
|
||||
: ${mail_room_config:="/etc/gitlab/mail_room.yml"}
|
||||
|
||||
socket_dir="/run/gitlab/sockets"
|
||||
|
||||
server_command="/usr/bin/bundle"
|
||||
server_command_args="exec unicorn_rails -c ${gitlab_base}/config/unicorn.rb -E ${rails_env} -D"
|
||||
|
||||
sidekiq_command="/usr/bin/bundle"
|
||||
sidekiq_command_args="exec sidekiq -C ${sidekiq_config} -P ${sidekiq_pidfile} -L ${sidekiq_logfile}"
|
||||
|
||||
mail_room_command="/usr/bin/bundle"
|
||||
mail_room_command_args="exec mail_room -q -c ${mail_room_config} >> ${mail_room_logfile} 2>&1"
|
||||
|
||||
check_command="sudo -u ${gitlab_user} -H /usr/bin/bundle"
|
||||
check_command_args1="exec rake gitlab:env:info RAILS_ENV=${rails_env}"
|
||||
check_command_args2="exec rake gitlab:check RAILS_ENV=${rails_env}"
|
||||
|
||||
depend() {
|
||||
provide gitlab
|
||||
need redis gitlab-workhorse gitlab-gitaly
|
||||
use net
|
||||
}
|
||||
|
||||
start() {
|
||||
ebegin "Starting ${name} - Unicorn servers"
|
||||
|
||||
checkpath -d -o ${gitlab_user} -m755 "$(dirname "${server_pidfile}")"
|
||||
checkpath -d -o ${gitlab_user} -m755 "$(dirname "${sidekiq_pidfile}")"
|
||||
checkpath -d -o ${gitlab_user} -m755 "$(dirname "${mail_room_pidfile}")"
|
||||
checkpath -d -o ${gitlab_user} -m700 "${socket_dir}"
|
||||
|
||||
start-stop-daemon --start \
|
||||
--chdir "${gitlab_base}" \
|
||||
--user=${gitlab_user} \
|
||||
--pidfile="${server_pidfile}" \
|
||||
--env RAILS_ENV=${rails_env} \
|
||||
--exec ${server_command} -- ${server_command_args}
|
||||
eend $?
|
||||
|
||||
ebegin "Starting ${name} - Sidekiq"
|
||||
|
||||
start-stop-daemon --start \
|
||||
--background --quiet \
|
||||
--chdir "${gitlab_base}" \
|
||||
--user=${gitlab_user} \
|
||||
--pidfile="${sidekiq_pidfile}" \
|
||||
--env RAILS_ENV=${rails_env} \
|
||||
--exec ${sidekiq_command} -- ${sidekiq_command_args}
|
||||
eend $?
|
||||
|
||||
if [ -e /etc/default/gitlab ]; then
|
||||
. /etc/default/gitlab
|
||||
if [ "${mail_room_enabled}" == "true" ]; then
|
||||
ebegin "Starting ${name} - mail_room"
|
||||
|
||||
start-stop-daemon --start \
|
||||
--background --quiet \
|
||||
--chdir "${gitlab_base}" \
|
||||
--user=${gitlab_user} \
|
||||
--pidfile="${mail_room_pidfile}" -m \
|
||||
--env RAILS_ENV=${rails_env} \
|
||||
--exec ${mail_room_command} -- ${mail_room_command_args}
|
||||
eend $?
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
stop() {
|
||||
ebegin "Stopping ${name} - mail_room"
|
||||
start-stop-daemon --stop \
|
||||
--signal QUIT \
|
||||
--pidfile=${mail_room_pidfile} \
|
||||
--exec ${mail_room_command}
|
||||
eend $?
|
||||
|
||||
ebegin "Stopping ${name} - Sidekiq"
|
||||
start-stop-daemon --stop \
|
||||
--pidfile=${sidekiq_pidfile} \
|
||||
--exec ${sidekiq_command}
|
||||
eend $?
|
||||
|
||||
ebegin "Stopping ${name} - Unicorn servers"
|
||||
start-stop-daemon --stop \
|
||||
--signal QUIT \
|
||||
--pidfile=${server_pidfile} \
|
||||
--exec ${server_command}
|
||||
eend $?
|
||||
}
|
||||
|
||||
restartsidekiq() {
|
||||
ebegin "Restarting ${name} - Sidekiq: Stopping"
|
||||
start-stop-daemon --stop \
|
||||
--pidfile=${sidekiq_pidfile} \
|
||||
--exec ${sidekiq_command} \
|
||||
--progress \
|
||||
--retry 180
|
||||
|
||||
eend $?
|
||||
|
||||
ebegin "Starting ${name} - Sidekiq"
|
||||
|
||||
start-stop-daemon --start \
|
||||
--background --quiet \
|
||||
--chdir "${gitlab_base}" \
|
||||
--user=${gitlab_user} \
|
||||
--pidfile="${sidekiq_pidfile}" \
|
||||
--env RAILS_ENV=${rails_env} \
|
||||
--exec ${sidekiq_command} -- ${sidekiq_command_args}
|
||||
eend $?
|
||||
}
|
||||
|
||||
check() {
|
||||
ebegin "Running sanity checks for ${name}"
|
||||
|
||||
cd /opt/gitlab
|
||||
|
||||
${check_command} ${check_command_args1}
|
||||
|
||||
eend $?
|
||||
|
||||
${check_command} ${check_command_args2}
|
||||
|
||||
eend $?
|
||||
}
|
|
@ -1,28 +0,0 @@
|
|||
#####################################################
|
||||
#
|
||||
# GitLab version : 8.x - 8.x
|
||||
# Contributors : davispuh, mtorromeo, axilleas, boeserwolf91, Stefan Tatschner (rumpelsepp)
|
||||
# Downloaded from : https://gitlab.com/gitlab-org/gitlab-recipes/tree/master/init/systemd
|
||||
#
|
||||
####################################################
|
||||
|
||||
[Unit]
|
||||
Description=Gitlab mailroom Worker
|
||||
Requires=gitlab-unicorn.service
|
||||
Wants=gitlab-unicorn.service
|
||||
After=gitlab-unicorn.service
|
||||
|
||||
[Service]
|
||||
User=git
|
||||
Environment=RAILS_ENV=production
|
||||
WorkingDirectory=/opt/gitlab
|
||||
SyslogIdentifier=gitlab-mailroom
|
||||
PIDFile=/run/gitlab/gitlab-mailroom.pid
|
||||
Type=oneshot
|
||||
RemainAfterExit=yes
|
||||
|
||||
ExecStart=/opt/gitlab/bin/mail_room start
|
||||
ExecStop=/opt/gitlab/bin/mail_room stop
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
|
@ -1,25 +0,0 @@
|
|||
#####################################################
|
||||
#
|
||||
# GitLab version : 5.x - 7.x
|
||||
# Contributors : davispuh, mtorromeo, axilleas, boeserwolf91, Stefan Tatschner (rumpelsepp)
|
||||
# Downloaded from : https://gitlab.com/gitlab-org/gitlab-recipes/tree/master/init/systemd
|
||||
#
|
||||
####################################################
|
||||
|
||||
[Unit]
|
||||
Description=GitLab Unicorn Server
|
||||
Requires=redis.service
|
||||
Wants=mysqld.service postgresql.service
|
||||
After=redis.service mysqld.service postgresql.service
|
||||
|
||||
[Service]
|
||||
User=git
|
||||
WorkingDirectory=/opt/gitlab
|
||||
Environment=RAILS_ENV=production
|
||||
SyslogIdentifier=gitlab-unicorn
|
||||
PIDFile=/run/gitlab/unicorn.pid
|
||||
|
||||
ExecStart=/usr/bin/bundle exec "unicorn_rails -D -c /opt/gitlab/config/unicorn.rb -E production"
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
|
@ -1,25 +0,0 @@
|
|||
#####################################################
|
||||
#
|
||||
# GitLab version : 8.2 - 8.x
|
||||
# Contributors : davispuh, mtorromeo, axilleas, boeserwolf91, Stefan Tatschner (rumpelsepp)
|
||||
# Downloaded from : https://gitlab.com/gitlab-org/gitlab-recipes/tree/master/init/systemd
|
||||
#
|
||||
####################################################
|
||||
|
||||
[Unit]
|
||||
Description=Gitlab Workhorse
|
||||
Requires=gitlab-unicorn.service
|
||||
Wants=gitlab-unicorn.service
|
||||
After=gitlab-unicorn.service
|
||||
|
||||
[Service]
|
||||
Type=forking
|
||||
User=git
|
||||
WorkingDirectory=/opt/gitlab
|
||||
SyslogIdentifier=gitlab-workhorse
|
||||
PIDFile=/run/gitlab/gitlab-workhorse.pid
|
||||
|
||||
ExecStart=/opt/gitlab/bin/daemon_with_pidfile /run/gitlab/gitlab-workhorse.pid /usr/bin/gitlab-workhorse -listenUmask 0 -listenNetwork unix -listenAddr /run/gitlab/gitlab-workhorse.socket -authBackend http://127.0.0.1:8080 /var/lib/git/repositories/ >> /var/log/gitlab/gitlab-workhorse.log 2>&1
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
|
@ -1 +0,0 @@
|
|||
d /run/gitlab 0755 git git
|
|
@ -1,430 +0,0 @@
|
|||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="6"
|
||||
|
||||
# Maintainer notes:
|
||||
# - This ebuild uses Bundler to download and install all gems in deployment mode
|
||||
# (i.e. into isolated directory inside application). That's not Gentoo way how
|
||||
# it should be done, but GitLab has too many dependencies that it will be too
|
||||
# difficult to maintain them via ebuilds.
|
||||
#
|
||||
|
||||
USE_RUBY="ruby23"
|
||||
|
||||
inherit eutils ruby-ng user systemd
|
||||
|
||||
MY_PV="v${PV/_/-}"
|
||||
MY_GIT_COMMIT="03a14086924c017c49b49d20b525b90ae2a965f5"
|
||||
|
||||
GITALY_VERSION="0.38.0"
|
||||
GITLAB_PAGES_VERSION="0.5.1"
|
||||
GITLAB_SHELL_VERSION="5.9.0"
|
||||
GITLAB_WORKHORSE_VERSION="3.0.0"
|
||||
|
||||
DESCRIPTION="GitLab is a free project and repository management application"
|
||||
HOMEPAGE="https://about.gitlab.com/"
|
||||
SRC_URI="https://gitlab.com/gitlab-org/${PN}/repository/archive.tar.gz?ref=${MY_PV} -> ${P}.tar.gz"
|
||||
RUBY_S="${PN}-${MY_PV}-${MY_GIT_COMMIT}"
|
||||
|
||||
RESTRICT="mirror"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86 ~arm64"
|
||||
IUSE="kerberos mysql +postgres +unicorn systemd pages rugged_use_system_libraries"
|
||||
|
||||
## Gems dependencies:
|
||||
# charlock_holmes dev-libs/icu
|
||||
# grape, capybara dev-libs/libxml2, dev-libs/libxslt
|
||||
# rugged dev-util/cmake, virtual/pkgconfig
|
||||
# json dev-util/ragel
|
||||
# pygments.rb python 2.7+
|
||||
# execjs net-libs/nodejs, or any other JS runtime
|
||||
# pg dev-db/postgresql
|
||||
# mysql virtual/mysql
|
||||
#
|
||||
GEMS_DEPEND="
|
||||
dev-libs/icu
|
||||
dev-libs/libxml2
|
||||
dev-libs/libxslt
|
||||
dev-libs/re2
|
||||
dev-util/ragel
|
||||
>=net-libs/nodejs-4.3.0
|
||||
>=sys-apps/yarn-0.17.0
|
||||
postgres? ( >=dev-db/postgresql-9.6:* )
|
||||
mysql? ( virtual/mysql )
|
||||
kerberos? ( virtual/krb5 )"
|
||||
CDEPEND="
|
||||
dev-util/cmake
|
||||
virtual/pkgconfig"
|
||||
COMMON_DEPEND="
|
||||
${GEMS_DEPEND}
|
||||
~dev-vcs/gitlab-shell-${GITLAB_SHELL_VERSION}
|
||||
>=dev-vcs/git-2.8.4
|
||||
~www-servers/gitlab-workhorse-${GITLAB_WORKHORSE_VERSION}
|
||||
kerberos? ( !app-crypt/heimdal )
|
||||
rugged_use_system_libraries? ( net-libs/http-parser dev-libs/libgit2:0/26 )
|
||||
pages? ( ~www-servers/gitlab-pages-${GITLAB_PAGES_VERSION} )
|
||||
~www-servers/gitlab-gitaly-${GITALY_VERSION}"
|
||||
DEPEND="
|
||||
${CDEPEND}
|
||||
${COMMON_DEPEND}"
|
||||
RDEPEND="
|
||||
${COMMON_DEPEND}
|
||||
>=dev-db/redis-2.8
|
||||
virtual/mta
|
||||
systemd? ( sys-apps/systemd:0= )"
|
||||
# required bundler >= 1.15.3
|
||||
ruby_add_bdepend "
|
||||
virtual/rubygems
|
||||
>=dev-ruby/bundler-1.14.6"
|
||||
|
||||
#
|
||||
# fix-sendmail-config:
|
||||
# Fix default settings to work with ssmtp that doesn't know '-t' argument.
|
||||
# fix-redis-config-path:
|
||||
# Point to the absolute location of redis_config.rb
|
||||
#
|
||||
PATCHES=(
|
||||
"${FILESDIR}/01-${PN}-8.7.5-fix-sendmail-config.patch"
|
||||
"${FILESDIR}/02-${PN}-9.0.0-fix-redis-config-path.patch"
|
||||
"${FILESDIR}/03-${PN}-9.4.0-database.yml.patch"
|
||||
"${FILESDIR}/04-${PN}-9.3.0-fix-check-task.patch"
|
||||
"${FILESDIR}/05-${PN}-9.0.0-replace-sys-filesystem.patch"
|
||||
"${FILESDIR}/06-${PN}-8.17.0-fix-webpack-config.patch"
|
||||
"${FILESDIR}/07-${PN}-10.0.7-yarn.patch"
|
||||
)
|
||||
|
||||
MY_NAME="gitlab"
|
||||
MY_USER="git" # should be same as in gitlab-shell
|
||||
|
||||
DEST_DIR="/opt/${MY_NAME}"
|
||||
CONF_DIR="/etc/${MY_NAME}"
|
||||
LOGS_DIR="/var/log/${MY_NAME}"
|
||||
TEMP_DIR="/var/tmp/${MY_NAME}"
|
||||
|
||||
all_ruby_prepare() {
|
||||
# fix paths
|
||||
local satellites_path="${TEMP_DIR}/repo_satellites"
|
||||
local repos_path=/var/lib/git/repositories
|
||||
local shell_path=/usr/share/gitlab-shell
|
||||
local run_path=/run/${MY_NAME}
|
||||
|
||||
sed -i -E \
|
||||
-e "/satellites:$/,/\w:$/ s|(\s*path:\s).*|\1${satellites_path}/|" \
|
||||
-e "/gitlab_shell:$/,/\w:$/ s|(\s*path:\s).*|\1${shell_path}/|" \
|
||||
-e "/gitlab_shell:$/,/\w:$/ s|(\s*repos_path:\s).*|\1${repos_path}/|" \
|
||||
-e "/gitlab_shell:$/,/\w:$/ s|(\s*hooks_path:\s).*|\1${shell_path}/hooks/|" \
|
||||
-e "/path: \\/home\\/git\\/repositories\\/$/ s|/home/git/repositories/|/var/lib/git/repositories/|" \
|
||||
-e "/gitaly_address:/ s|/home/git/gitlab/tmp/sockets/private/|${run_path}/sockets/|" \
|
||||
config/gitlab.yml.example || die "failed to filter gitlab.yml.example"
|
||||
|
||||
sed -i -E \
|
||||
-e "s|/home/git/gitlab/tmp|${run_path}|g" \
|
||||
-e "s|/home/git/gitlab/log|${LOGS_DIR}|g" \
|
||||
-e "s|/home/git/gitlab|${DEST_DIR}|g" \
|
||||
config/unicorn.rb.example || die "failed to filter unicorn.rb.example"
|
||||
|
||||
sed -i \
|
||||
-e "s|/home/git/gitlab/tmp|${run_path}|g" \
|
||||
lib/support/nginx/gitlab || die "failed to filter nginx/gitlab"
|
||||
|
||||
# modify default database settings for PostgreSQL
|
||||
sed -i -E \
|
||||
-e 's|(username:).*|\1 gitlab|' \
|
||||
-e 's|(password:).*|\1 gitlab|' \
|
||||
-e 's|(socket:).*|\1 /run/postgresql/.s.PGSQL.5432|' \
|
||||
config/database.yml.postgresql \
|
||||
|| die "failed to filter database.yml.postgresql"
|
||||
|
||||
# rename config files
|
||||
mv config/gitlab.yml.example config/gitlab.yml
|
||||
mv config/unicorn.rb.example config/unicorn.rb
|
||||
|
||||
local dbconf=config/database.yml
|
||||
if use postgres && ! use mysql; then
|
||||
mv ${dbconf}.postgresql ${dbconf}
|
||||
rm ${dbconf}.mysql
|
||||
elif use mysql && ! use postgres; then
|
||||
mv ${dbconf}.mysql ${dbconf}
|
||||
rm ${dbconf}.postgresql
|
||||
fi
|
||||
|
||||
# remove useless files
|
||||
rm -r lib/support/{deploy,init.d}
|
||||
use unicorn || rm config/unicorn.rb
|
||||
}
|
||||
|
||||
all_ruby_install() {
|
||||
local dest=${DEST_DIR}
|
||||
local conf=${CONF_DIR}
|
||||
local logs=${LOGS_DIR}
|
||||
local temp=${TEMP_DIR}
|
||||
|
||||
# prepare directories
|
||||
diropts -m750
|
||||
dodir ${logs} ${temp}
|
||||
|
||||
diropts -m755
|
||||
dodir ${conf} ${dest}/public/uploads
|
||||
|
||||
dosym ${temp} ${dest}/tmp
|
||||
dosym ${logs} ${dest}/log
|
||||
|
||||
# install configs
|
||||
insinto ${conf}
|
||||
doins -r config/*
|
||||
dosym ${conf} ${dest}/config
|
||||
|
||||
echo 'export RAILS_ENV=production' > "${D}/${dest}/.profile"
|
||||
|
||||
# remove needless dirs
|
||||
rm -Rf config tmp log
|
||||
|
||||
# install the rest files
|
||||
# using cp 'cause doins is slow
|
||||
cp -Rl * "${D}/${dest}"/
|
||||
cp -Rl .??* "${D}/${dest}"/
|
||||
|
||||
# install logrotate config
|
||||
dodir /etc/logrotate.d
|
||||
cat > "${D}/etc/logrotate.d/${MY_NAME}" <<-EOF
|
||||
${logs}/*.log {
|
||||
missingok
|
||||
delaycompress
|
||||
compress
|
||||
copytruncate
|
||||
}
|
||||
EOF
|
||||
|
||||
## Install gems via bundler ##
|
||||
|
||||
cd "${D}/${dest}"
|
||||
|
||||
local without="development test aws"
|
||||
local flag; for flag in mysql postgres unicorn kerberos; do
|
||||
without+="$(use $flag || echo ' '$flag)"
|
||||
done
|
||||
local bundle_args="--deployment ${without:+--without ${without}}"
|
||||
|
||||
use "rugged_use_system_libraries" && export RUGGED_USE_SYSTEM_LIBRARIES="YES"
|
||||
|
||||
einfo "Running bundle install ${bundle_args} ..."
|
||||
${RUBY} /usr/bin/bundle install ${bundle_args} || die "bundler failed"
|
||||
|
||||
einfo "Cleaning old gems ..."
|
||||
${RUBY} /usr/bin/bundle clean
|
||||
|
||||
# clean gems cache
|
||||
rm -Rf vendor/bundle/ruby/*/cache
|
||||
rm -Rf vendor/bundle/ruby/*/bundler/gems/charlock_holmes-dde194609b35/.git
|
||||
|
||||
## RC script ##
|
||||
|
||||
if use systemd ; then
|
||||
ewarn "Beware: systemd support has not been tested, use at your own risk!"
|
||||
systemd_newunit "${FILESDIR}/gitlab-8.13.0-sidekiq.service" "gitlab-sidekiq.service"
|
||||
systemd_dounit "${FILESDIR}/gitlab-unicorn.service"
|
||||
systemd_dounit "${FILESDIR}/gitlab-workhorse.service"
|
||||
systemd_dounit "${FILESDIR}/gitlab-mailroom.service"
|
||||
systemd_dotmpfilesd "${FILESDIR}/gitlab.conf"
|
||||
else
|
||||
local rcscript=gitlab-9.3.5-sidekiq.init
|
||||
use unicorn && rcscript=gitlab-9.3.5-unicorn.init
|
||||
|
||||
cp "${FILESDIR}/${rcscript}" "${T}" || die
|
||||
sed -i \
|
||||
-e "s|@USER@|${MY_USER}|g" \
|
||||
-e "s|@GITLAB_BASE@|${dest}|g" \
|
||||
-e "s|@LOGS_DIR@|${logs}|g" \
|
||||
"${T}/${rcscript}" \
|
||||
|| die "failed to filter ${rcscript}"
|
||||
|
||||
newinitd "${T}/${rcscript}" "${MY_NAME}"
|
||||
fi
|
||||
|
||||
# fix permissions
|
||||
fowners -R ${MY_USER}:${MY_USER} ${dest} ${temp} ${logs}
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
elog "If this is an update from a previous version, stop your GitLab"
|
||||
elog "instance and issue the following command to perform all required"
|
||||
elog "migrations:"
|
||||
elog " emerge --config \"=${CATEGORY}/${PF}\""
|
||||
elog "PLEASE NOTE: It's HIGHLY recommended to backup your database"
|
||||
elog "before running the config phase. Run these commands (as root):"
|
||||
elog
|
||||
elog " cd /opt/gitlab"
|
||||
elog " sudo -u git -H bundle exec rake gitlab:backup:create RAILS_ENV=production"
|
||||
elog
|
||||
elog "If this was a fresh install, follow these steps:"
|
||||
elog
|
||||
elog "1. Configure your GitLab's settings in ${CONF_DIR}/gitlab.yml."
|
||||
elog
|
||||
elog "2. Configure your database settings in ${CONF_DIR}/database.yml"
|
||||
elog " for \"production\" environment."
|
||||
elog
|
||||
elog "3. Then you should create a database for your GitLab instance, if you"
|
||||
elog " haven't done so already."
|
||||
elog
|
||||
if use postgres; then
|
||||
elog "If you have local PostgreSQL running, just copy&run:"
|
||||
elog " su postgres"
|
||||
elog " psql -c \"CREATE ROLE gitlab PASSWORD 'gitlab' \\"
|
||||
elog " NOSUPERUSER NOCREATEDB NOCREATEROLE INHERIT LOGIN;\""
|
||||
elog " createdb -E UTF-8 -O gitlab gitlabhq_production"
|
||||
elog " Note: You should change your password to something more random..."
|
||||
elog
|
||||
fi
|
||||
elog "4. Finally execute the following command to initialize the environment:"
|
||||
elog " emerge --config \"=${CATEGORY}/${PF}\""
|
||||
elog " Note: Do not forget to start Redis server first!"
|
||||
elog
|
||||
elog "If you're running GitLab behind an SSL proxy such as nginx or Apache and"
|
||||
elog "you can't login after the upgrade, be sure to read the section about the"
|
||||
elog "verification of the CSRF token in GitLab's trouble-shooting guide at"
|
||||
elog "http://goo.gl/5XGRGv."
|
||||
if use postgres; then
|
||||
elog "Please note: As of GitLab 8.6, users of PostgreSQL need to enable the"
|
||||
elog "`pg_trgm` extension by running the following command as a PostgreSQL"
|
||||
elog "super user for *every* GitLab database:"
|
||||
elog " CREATE EXTENSION IF NOT EXISTS pg_trgm;"
|
||||
elog "For details, see the documentation at the GitLab website."
|
||||
fi
|
||||
if use mysql ; then
|
||||
ewarn "You must grant the GitLab user permissions the following on the database:"
|
||||
ewarn " mysql -u root -p -e \\"
|
||||
ewarn " \"GRANT TRIGGER ON \`gitlab\`.* TO 'gitlab'@'localhost';\""
|
||||
ewarn "PLEASE also read this document about needed migrations on MySQL:"
|
||||
ewarn
|
||||
ewarn "https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/install/database_mysql.md"
|
||||
ewarn
|
||||
ewarn "Failing to follow those instructions may make the config phase fail!"
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_config() {
|
||||
einfo "Checking configuration files"
|
||||
|
||||
if [ ! -r "${CONF_DIR}/database.yml" ]; then
|
||||
eerror "Copy ${CONF_DIR}/database.yml.* to"
|
||||
eerror "${CONF_DIR}/database.yml and edit this file in order to configure your"
|
||||
eerror "database settings for \"production\" environment."
|
||||
die
|
||||
fi
|
||||
|
||||
local email_from="$(ryaml ${CONF_DIR}/gitlab.yml production gitlab email_from)"
|
||||
local git_home="$(egethome ${MY_USER})"
|
||||
|
||||
# configure Git global settings
|
||||
if [ ! -e "${git_home}/.gitconfig" ]; then
|
||||
einfo "Setting git user"
|
||||
su -l ${MY_USER} -c "
|
||||
git config --global user.email '${email_from}';
|
||||
git config --global user.name 'GitLab'" \
|
||||
|| die "failed to setup git name and email"
|
||||
fi
|
||||
|
||||
su -l ${MY_USER} -c "git config --global repack.writeBitmaps true"
|
||||
|
||||
# determine whether this is an update or a fresh install. we do this by
|
||||
# checking whether the ${DEST_DIR}/.git directory exists or not
|
||||
#
|
||||
if [ -d "${DEST_DIR}/.git" ]; then
|
||||
local update=true
|
||||
else
|
||||
local update=false
|
||||
fi
|
||||
|
||||
if use mysql ; then
|
||||
ewarn "Please only proceed if you've read and understood the following page:"
|
||||
ewarn "https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/install/database_mysql.md"
|
||||
if [ "${update}" = 'true' ]; then
|
||||
ewarn "Failing to follow those instructions may cause the upgrade to fail"
|
||||
fi
|
||||
ewarn
|
||||
ewarn "Press any key to continue, or abort with Ctrl+C"
|
||||
read
|
||||
fi
|
||||
|
||||
## Initialize app ##
|
||||
|
||||
local RAILS_ENV="production"
|
||||
local RUBY=${RUBY:-/usr/bin/ruby}
|
||||
local BUNDLE="${RUBY} /usr/bin/bundle"
|
||||
|
||||
if [ "${update}" = 'true' ]; then
|
||||
einfo "Migrating database ..."
|
||||
exec_rake db:migrate
|
||||
|
||||
# https://github.com/gitlabhq/gitlabhq/issues/5311#issuecomment-31656496
|
||||
einfo "Migrating iids ..."
|
||||
exec_rake migrate_iids
|
||||
|
||||
einfo "Installing npm modules ..."
|
||||
exec_rake yarn:install
|
||||
|
||||
einfo "Cleaning old precompiled assets ..."
|
||||
exec_rake gitlab:assets:clean
|
||||
|
||||
einfo "Cleaning cache ..."
|
||||
exec_rake cache:clear
|
||||
else
|
||||
# create dummy git repo as workaround for
|
||||
# https://github.com/bundler/bundler/issues/2039
|
||||
einfo "Initializing dummy git repository to avoid false errors from bundler"
|
||||
su -l ${MY_USER} -c "
|
||||
cd ${DEST_DIR}
|
||||
git init
|
||||
git add README.md
|
||||
git commit -m 'Dummy repository'" >/dev/null
|
||||
|
||||
einfo "Initializing database ..."
|
||||
exec_rake gitlab:setup
|
||||
|
||||
einfo "Installing npm modules ..."
|
||||
exec_rake yarn:install
|
||||
fi
|
||||
|
||||
einfo "Precompiling assests ..."
|
||||
exec_rake gitlab:assets:compile
|
||||
|
||||
if [ "${update}" = 'true' ]; then
|
||||
ewarn
|
||||
ewarn "This configuration script runs only common migration tasks."
|
||||
ewarn "Please read guides on"
|
||||
ewarn " https://github.com/gitlabhq/gitlabhq/blob/master/doc/update/"
|
||||
ewarn "for any additional migration tasks specific to your previous GitLab"
|
||||
ewarn "version."
|
||||
fi
|
||||
elog
|
||||
elog "If you want to make sure that the install/upgrade was successful, start"
|
||||
elog "Gitlab now and then run these commands (as root):"
|
||||
elog
|
||||
elog " cd /opt/gitlab"
|
||||
elog " sudo -u git -H bundle exec rake gitlab:env:info RAILS_ENV=production"
|
||||
elog " sudo -u git -H bundle exec rake gitlab:check RAILS_ENV=production"
|
||||
elog
|
||||
if ! use systemd ; then
|
||||
elog "You may also run"
|
||||
elog " /etc/init.d/gitlab check"
|
||||
elog " for convenience."
|
||||
fi
|
||||
}
|
||||
|
||||
ryaml() {
|
||||
ruby -ryaml -e 'puts ARGV[1..-1].inject(YAML.load(File.read(ARGV[0]))) {|acc, key| acc[key] }' "$@"
|
||||
}
|
||||
|
||||
exec_rake() {
|
||||
local command="${BUNDLE} exec rake $@ RAILS_ENV=${RAILS_ENV} NODE_ENV=${RAILS_ENV}"
|
||||
|
||||
echo " ${command}"
|
||||
su -l ${MY_USER} -c "
|
||||
export LANG=en_US.UTF-8; export LC_ALL=en_US.UTF-8; export NODE_PATH=${DEST_DIR}/node_modules
|
||||
cd ${DEST_DIR}
|
||||
${command}" \
|
||||
|| die "failed to run rake $@"
|
||||
}
|
|
@ -1,435 +0,0 @@
|
|||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="6"
|
||||
|
||||
# Maintainer notes:
|
||||
# - This ebuild uses Bundler to download and install all gems in deployment mode
|
||||
# (i.e. into isolated directory inside application). That's not Gentoo way how
|
||||
# it should be done, but GitLab has too many dependencies that it will be too
|
||||
# difficult to maintain them via ebuilds.
|
||||
#
|
||||
|
||||
USE_RUBY="ruby23"
|
||||
|
||||
inherit eutils ruby-ng user systemd
|
||||
|
||||
MY_PV="v${PV/_/-}"
|
||||
MY_GIT_COMMIT="d3016d86a9c0855d94e2da53b9512974a7795b8f"
|
||||
|
||||
GITLAB_GITALY_VERSION="0.43.1"
|
||||
GITLAB_PAGES_VERSION="0.6.0"
|
||||
GITLAB_SHELL_VERSION="5.9.3"
|
||||
GITLAB_WORKHORSE_VERSION="3.2.0"
|
||||
|
||||
DESCRIPTION="GitLab is a free project and repository management application"
|
||||
HOMEPAGE="https://about.gitlab.com/"
|
||||
SRC_URI="https://gitlab.com/gitlab-org/${PN}/repository/archive.tar.gz?ref=${MY_PV} -> ${P}.tar.gz"
|
||||
RUBY_S="${PN}-${MY_PV}-${MY_GIT_COMMIT}"
|
||||
|
||||
RESTRICT="mirror"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86 ~arm64"
|
||||
IUSE="kerberos mysql +postgres +unicorn systemd pages rugged_use_system_libraries"
|
||||
|
||||
## Gems dependencies:
|
||||
# charlock_holmes dev-libs/icu
|
||||
# grape, capybara dev-libs/libxml2, dev-libs/libxslt
|
||||
# rugged dev-util/cmake, virtual/pkgconfig
|
||||
# json dev-util/ragel
|
||||
# pygments.rb python 2.7+
|
||||
# execjs net-libs/nodejs, or any other JS runtime
|
||||
# pg dev-db/postgresql
|
||||
# mysql virtual/mysql
|
||||
#
|
||||
GEMS_DEPEND="
|
||||
dev-libs/icu
|
||||
dev-libs/libxml2
|
||||
dev-libs/libxslt
|
||||
dev-libs/re2
|
||||
dev-util/ragel
|
||||
>=net-libs/nodejs-4.3.0
|
||||
>=sys-apps/yarn-0.17.0
|
||||
postgres? ( >=dev-db/postgresql-9.6:* )
|
||||
mysql? ( virtual/mysql )
|
||||
kerberos? ( virtual/krb5 )"
|
||||
CDEPEND="
|
||||
dev-util/cmake
|
||||
virtual/pkgconfig"
|
||||
COMMON_DEPEND="
|
||||
${GEMS_DEPEND}
|
||||
~dev-vcs/gitlab-shell-${GITLAB_SHELL_VERSION}
|
||||
>=dev-vcs/git-2.8.4
|
||||
~www-servers/gitlab-workhorse-${GITLAB_WORKHORSE_VERSION}
|
||||
kerberos? ( !app-crypt/heimdal )
|
||||
rugged_use_system_libraries? ( net-libs/http-parser dev-libs/libgit2:0/26 )
|
||||
pages? ( ~www-servers/gitlab-pages-${GITLAB_PAGES_VERSION} )
|
||||
~www-servers/gitlab-gitaly-${GITLAB_GITALY_VERSION}"
|
||||
DEPEND="
|
||||
${CDEPEND}
|
||||
${COMMON_DEPEND}"
|
||||
RDEPEND="
|
||||
${COMMON_DEPEND}
|
||||
>=dev-db/redis-2.8
|
||||
virtual/mta
|
||||
systemd? ( sys-apps/systemd:0= )"
|
||||
ruby_add_bdepend "
|
||||
virtual/rubygems
|
||||
>=dev-ruby/bundler-1.15.4"
|
||||
|
||||
#
|
||||
# fix-sendmail-config:
|
||||
# Fix default settings to work with ssmtp that doesn't know '-t' argument.
|
||||
# fix-redis-config-path:
|
||||
# Point to the absolute location of redis_config.rb
|
||||
#
|
||||
PATCHES=(
|
||||
"${FILESDIR}/01-${PN}-8.7.5-fix-sendmail-config.patch"
|
||||
"${FILESDIR}/02-${PN}-9.0.0-fix-redis-config-path.patch"
|
||||
"${FILESDIR}/03-${PN}-9.4.0-database.yml.patch"
|
||||
"${FILESDIR}/04-${PN}-9.3.0-fix-check-task.patch"
|
||||
"${FILESDIR}/05-${PN}-9.0.0-replace-sys-filesystem.patch"
|
||||
"${FILESDIR}/06-${PN}-8.17.0-fix-webpack-config.patch"
|
||||
)
|
||||
|
||||
MY_NAME="gitlab"
|
||||
MY_USER="git" # should be same as in gitlab-shell
|
||||
|
||||
DEST_DIR="/opt/${MY_NAME}"
|
||||
CONF_DIR="/etc/${MY_NAME}"
|
||||
LOGS_DIR="/var/log/${MY_NAME}"
|
||||
TEMP_DIR="/var/tmp/${MY_NAME}"
|
||||
|
||||
all_ruby_prepare() {
|
||||
# fix paths
|
||||
local satellites_path="${TEMP_DIR}/repo_satellites"
|
||||
local repos_path=/var/lib/git/repositories
|
||||
local shell_path=/usr/share/gitlab-shell
|
||||
local run_path=/run/${MY_NAME}
|
||||
|
||||
sed -i -E \
|
||||
-e "/satellites:$/,/\w:$/ s|(\s*path:\s).*|\1${satellites_path}/|" \
|
||||
-e "/gitlab_shell:$/,/\w:$/ s|(\s*path:\s).*|\1${shell_path}/|" \
|
||||
-e "/gitlab_shell:$/,/\w:$/ s|(\s*repos_path:\s).*|\1${repos_path}/|" \
|
||||
-e "/gitlab_shell:$/,/\w:$/ s|(\s*hooks_path:\s).*|\1${shell_path}/hooks/|" \
|
||||
-e "/path: \\/home\\/git\\/repositories\\/$/ s|/home/git/repositories/|/var/lib/git/repositories/|" \
|
||||
-e "/gitaly_address:/ s|/home/git/gitlab/tmp/sockets/private/|${run_path}/sockets/|" \
|
||||
config/gitlab.yml.example || die "failed to filter gitlab.yml.example"
|
||||
|
||||
sed -i -E \
|
||||
-e "s|/home/git/gitlab/tmp|${run_path}|g" \
|
||||
-e "s|/home/git/gitlab/log|${LOGS_DIR}|g" \
|
||||
-e "s|/home/git/gitlab|${DEST_DIR}|g" \
|
||||
config/unicorn.rb.example || die "failed to filter unicorn.rb.example"
|
||||
|
||||
sed -i \
|
||||
-e "s|/home/git/gitlab/tmp|${run_path}|g" \
|
||||
lib/support/nginx/gitlab || die "failed to filter nginx/gitlab"
|
||||
|
||||
# modify default database settings for PostgreSQL
|
||||
sed -i -E \
|
||||
-e 's|(username:).*|\1 gitlab|' \
|
||||
-e 's|(password:).*|\1 gitlab|' \
|
||||
-e 's|(socket:).*|\1 /run/postgresql/.s.PGSQL.5432|' \
|
||||
config/database.yml.postgresql \
|
||||
|| die "failed to filter database.yml.postgresql"
|
||||
|
||||
# rename config files
|
||||
mv config/gitlab.yml.example config/gitlab.yml
|
||||
mv config/unicorn.rb.example config/unicorn.rb
|
||||
|
||||
local dbconf=config/database.yml
|
||||
if use postgres && ! use mysql; then
|
||||
mv ${dbconf}.postgresql ${dbconf}
|
||||
rm ${dbconf}.mysql
|
||||
elif use mysql && ! use postgres; then
|
||||
mv ${dbconf}.mysql ${dbconf}
|
||||
rm ${dbconf}.postgresql
|
||||
fi
|
||||
|
||||
# remove useless files
|
||||
rm -r lib/support/{deploy,init.d}
|
||||
use unicorn || rm config/unicorn.rb
|
||||
}
|
||||
|
||||
all_ruby_install() {
|
||||
local dest=${DEST_DIR}
|
||||
local conf=${CONF_DIR}
|
||||
local logs=${LOGS_DIR}
|
||||
local temp=${TEMP_DIR}
|
||||
|
||||
# prepare directories
|
||||
diropts -m750
|
||||
dodir ${logs} ${temp}
|
||||
|
||||
diropts -m755
|
||||
dodir ${conf} ${dest}/public/uploads
|
||||
|
||||
dosym ${temp} ${dest}/tmp
|
||||
dosym ${logs} ${dest}/log
|
||||
|
||||
# install configs
|
||||
insinto ${conf}
|
||||
doins -r config/*
|
||||
dosym ${conf} ${dest}/config
|
||||
|
||||
echo 'export RAILS_ENV=production' > "${D}/${dest}/.profile"
|
||||
|
||||
# remove needless dirs
|
||||
rm -Rf config tmp log
|
||||
|
||||
# install the rest files
|
||||
# using cp 'cause doins is slow
|
||||
cp -Rl * "${D}/${dest}"/
|
||||
cp -Rl .??* "${D}/${dest}"/
|
||||
|
||||
# install logrotate config
|
||||
dodir /etc/logrotate.d
|
||||
cat > "${D}/etc/logrotate.d/${MY_NAME}" <<-EOF
|
||||
${logs}/*.log {
|
||||
missingok
|
||||
delaycompress
|
||||
compress
|
||||
copytruncate
|
||||
}
|
||||
EOF
|
||||
|
||||
## Install gems via bundler ##
|
||||
|
||||
cd "${D}/${dest}"
|
||||
|
||||
local without="development test aws"
|
||||
local flag; for flag in mysql postgres unicorn kerberos; do
|
||||
without+="$(use $flag || echo ' '$flag)"
|
||||
done
|
||||
local bundle_args="--deployment ${without:+--without ${without}}"
|
||||
|
||||
use "rugged_use_system_libraries" && export RUGGED_USE_SYSTEM_LIBRARIES="YES"
|
||||
|
||||
einfo "Running bundle install ${bundle_args} ..."
|
||||
${RUBY} /usr/bin/bundle install ${bundle_args} || die "bundler failed"
|
||||
|
||||
einfo "Cleaning old gems ..."
|
||||
${RUBY} /usr/bin/bundle clean
|
||||
|
||||
# clean gems cache
|
||||
rm -Rf vendor/bundle/ruby/*/cache
|
||||
rm -Rf vendor/bundle/ruby/*/bundler/gems/charlock_holmes-dde194609b35/.git
|
||||
|
||||
## RC script ##
|
||||
|
||||
if use systemd ; then
|
||||
ewarn "Beware: systemd support has not been tested, use at your own risk!"
|
||||
systemd_newunit "${FILESDIR}/gitlab-8.13.0-sidekiq.service" "gitlab-sidekiq.service"
|
||||
systemd_dounit "${FILESDIR}/gitlab-unicorn.service"
|
||||
systemd_dounit "${FILESDIR}/gitlab-workhorse.service"
|
||||
systemd_dounit "${FILESDIR}/gitlab-mailroom.service"
|
||||
systemd_dotmpfilesd "${FILESDIR}/gitlab.conf"
|
||||
else
|
||||
local rcscript=gitlab-9.3.5-sidekiq.init
|
||||
use unicorn && rcscript=gitlab-9.3.5-unicorn.init
|
||||
|
||||
cp "${FILESDIR}/${rcscript}" "${T}" || die
|
||||
sed -i \
|
||||
-e "s|@USER@|${MY_USER}|g" \
|
||||
-e "s|@GITLAB_BASE@|${dest}|g" \
|
||||
-e "s|@LOGS_DIR@|${logs}|g" \
|
||||
"${T}/${rcscript}" \
|
||||
|| die "failed to filter ${rcscript}"
|
||||
|
||||
newinitd "${T}/${rcscript}" "${MY_NAME}"
|
||||
fi
|
||||
|
||||
# fix permissions
|
||||
fowners -R ${MY_USER}:${MY_USER} ${dest} ${temp} ${logs}
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
elog "If this is an update from a previous version, stop your GitLab"
|
||||
elog "instance and issue the following command to perform all required"
|
||||
elog "migrations:"
|
||||
elog " emerge --config \"=${CATEGORY}/${PF}\""
|
||||
elog "PLEASE NOTE: It's HIGHLY recommended to backup your database"
|
||||
elog "before running the config phase. Run these commands (as root):"
|
||||
elog
|
||||
elog " cd /opt/gitlab"
|
||||
elog " sudo -u git -H bundle exec rake gitlab:backup:create RAILS_ENV=production"
|
||||
elog
|
||||
elog "If this was a fresh install, follow these steps:"
|
||||
elog
|
||||
elog "1. Configure your GitLab's settings in ${CONF_DIR}/gitlab.yml."
|
||||
elog
|
||||
elog "2. Configure your database settings in ${CONF_DIR}/database.yml"
|
||||
elog " for \"production\" environment."
|
||||
elog
|
||||
elog "3. Then you should create a database for your GitLab instance, if you"
|
||||
elog " haven't done so already."
|
||||
elog
|
||||
if use postgres; then
|
||||
elog "If you have local PostgreSQL running, just copy&run:"
|
||||
elog " su postgres"
|
||||
elog " psql -c \"CREATE ROLE gitlab PASSWORD 'gitlab' \\"
|
||||
elog " NOSUPERUSER NOCREATEDB NOCREATEROLE INHERIT LOGIN;\""
|
||||
elog " createdb -E UTF-8 -O gitlab gitlabhq_production"
|
||||
elog " Note: You should change your password to something more random..."
|
||||
elog
|
||||
fi
|
||||
elog "4. Finally execute the following command to initialize the environment:"
|
||||
elog " emerge --config \"=${CATEGORY}/${PF}\""
|
||||
elog " Note: Do not forget to start Redis server first!"
|
||||
elog
|
||||
elog "If you're running GitLab behind an SSL proxy such as nginx or Apache and"
|
||||
elog "you can't login after the upgrade, be sure to read the section about the"
|
||||
elog "verification of the CSRF token in GitLab's trouble-shooting guide at"
|
||||
elog "http://goo.gl/5XGRGv."
|
||||
if use postgres; then
|
||||
elog "Please note: As of GitLab 8.6, users of PostgreSQL need to enable the"
|
||||
elog "`pg_trgm` extension by running the following command as a PostgreSQL"
|
||||
elog "super user for *every* GitLab database:"
|
||||
elog " CREATE EXTENSION IF NOT EXISTS pg_trgm;"
|
||||
elog "For details, see the documentation at the GitLab website."
|
||||
fi
|
||||
if use mysql ; then
|
||||
ewarn "You must grant the GitLab user permissions the following on the database:"
|
||||
ewarn " mysql -u root -p -e \\"
|
||||
ewarn " \"GRANT TRIGGER ON \`gitlab\`.* TO 'gitlab'@'localhost';\""
|
||||
ewarn "PLEASE also read this document about needed migrations on MySQL:"
|
||||
ewarn
|
||||
ewarn "https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/install/database_mysql.md"
|
||||
ewarn
|
||||
ewarn "Failing to follow those instructions may make the config phase fail!"
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_config() {
|
||||
einfo "Checking configuration files"
|
||||
|
||||
if [ ! -r "${CONF_DIR}/database.yml" ]; then
|
||||
eerror "Copy ${CONF_DIR}/database.yml.* to"
|
||||
eerror "${CONF_DIR}/database.yml and edit this file in order to configure your"
|
||||
eerror "database settings for \"production\" environment."
|
||||
die
|
||||
fi
|
||||
|
||||
local email_from="$(ryaml ${CONF_DIR}/gitlab.yml production gitlab email_from)"
|
||||
local git_home="$(egethome ${MY_USER})"
|
||||
|
||||
# configure Git global settings
|
||||
if [ ! -e "${git_home}/.gitconfig" ]; then
|
||||
einfo "Setting git user"
|
||||
su -l ${MY_USER} -c "
|
||||
git config --global user.email '${email_from}';
|
||||
git config --global user.name 'GitLab'" \
|
||||
|| die "failed to setup git name and email"
|
||||
fi
|
||||
|
||||
su -l ${MY_USER} -c "git config --global repack.writeBitmaps true"
|
||||
|
||||
# determine whether this is an update or a fresh install. we do this by
|
||||
# checking whether the ${DEST_DIR}/.git directory exists or not
|
||||
#
|
||||
if [ -d "${DEST_DIR}/.git" ]; then
|
||||
local update=true
|
||||
else
|
||||
local update=false
|
||||
fi
|
||||
|
||||
if use mysql ; then
|
||||
ewarn "Please only proceed if you've read and understood the following page:"
|
||||
ewarn "https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/install/database_mysql.md"
|
||||
if [ "${update}" = 'true' ]; then
|
||||
ewarn "Failing to follow those instructions may cause the upgrade to fail"
|
||||
fi
|
||||
ewarn
|
||||
ewarn "Press any key to continue, or abort with Ctrl+C"
|
||||
read
|
||||
fi
|
||||
|
||||
## Initialize app ##
|
||||
|
||||
local RAILS_ENV="production"
|
||||
local RUBY=${RUBY:-/usr/bin/ruby}
|
||||
local BUNDLE="${RUBY} /usr/bin/bundle"
|
||||
|
||||
if [ "${update}" = 'true' ]; then
|
||||
einfo "Migrating database ..."
|
||||
exec_rake db:migrate
|
||||
|
||||
einfo "Compiling GetText PO files ..."
|
||||
exec_rake gettext:compile
|
||||
|
||||
# https://github.com/gitlabhq/gitlabhq/issues/5311#issuecomment-31656496
|
||||
einfo "Migrating iids ..."
|
||||
exec_rake migrate_iids
|
||||
|
||||
einfo "Installing npm modules ..."
|
||||
exec_rake yarn:install
|
||||
|
||||
einfo "Cleaning old precompiled assets ..."
|
||||
exec_rake gitlab:assets:clean
|
||||
|
||||
einfo "Cleaning cache ..."
|
||||
exec_rake cache:clear
|
||||
else
|
||||
# create dummy git repo as workaround for
|
||||
# https://github.com/bundler/bundler/issues/2039
|
||||
einfo "Initializing dummy git repository to avoid false errors from bundler"
|
||||
su -l ${MY_USER} -c "
|
||||
cd ${DEST_DIR}
|
||||
git init
|
||||
git add README.md
|
||||
git commit -m 'Dummy repository'" >/dev/null
|
||||
|
||||
einfo "Initializing database ..."
|
||||
exec_rake gitlab:setup
|
||||
|
||||
einfo "Compiling GetText PO files ..."
|
||||
exec_rake gettext:pack
|
||||
exec_rake gettext:po_to_json
|
||||
|
||||
einfo "Installing npm modules ..."
|
||||
exec_rake yarn:install
|
||||
fi
|
||||
|
||||
einfo "Precompiling assests ..."
|
||||
exec_rake gitlab:assets:compile
|
||||
|
||||
if [ "${update}" = 'true' ]; then
|
||||
ewarn
|
||||
ewarn "This configuration script runs only common migration tasks."
|
||||
ewarn "Please read guides on"
|
||||
ewarn " https://github.com/gitlabhq/gitlabhq/blob/master/doc/update/"
|
||||
ewarn "for any additional migration tasks specific to your previous GitLab"
|
||||
ewarn "version."
|
||||
fi
|
||||
elog
|
||||
elog "If you want to make sure that the install/upgrade was successful, start"
|
||||
elog "Gitlab now and then run these commands (as root):"
|
||||
elog
|
||||
elog " cd /opt/gitlab"
|
||||
elog " sudo -u git -H bundle exec rake gitlab:env:info RAILS_ENV=production"
|
||||
elog " sudo -u git -H bundle exec rake gitlab:check RAILS_ENV=production"
|
||||
elog
|
||||
if ! use systemd ; then
|
||||
elog "You may also run"
|
||||
elog " /etc/init.d/gitlab check"
|
||||
elog " for convenience."
|
||||
fi
|
||||
}
|
||||
|
||||
ryaml() {
|
||||
ruby -ryaml -e 'puts ARGV[1..-1].inject(YAML.load(File.read(ARGV[0]))) {|acc, key| acc[key] }' "$@"
|
||||
}
|
||||
|
||||
exec_rake() {
|
||||
local command="${BUNDLE} exec rake $@ RAILS_ENV=${RAILS_ENV} NODE_ENV=${RAILS_ENV}"
|
||||
|
||||
echo " ${command}"
|
||||
su -l ${MY_USER} -c "
|
||||
export LANG=en_US.UTF-8; export LC_ALL=en_US.UTF-8; export NODE_PATH=${DEST_DIR}/node_modules
|
||||
cd ${DEST_DIR}
|
||||
${command}" \
|
||||
|| die "failed to run rake $@"
|
||||
}
|
|
@ -1,435 +0,0 @@
|
|||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="6"
|
||||
|
||||
# Maintainer notes:
|
||||
# - This ebuild uses Bundler to download and install all gems in deployment mode
|
||||
# (i.e. into isolated directory inside application). That's not Gentoo way how
|
||||
# it should be done, but GitLab has too many dependencies that it will be too
|
||||
# difficult to maintain them via ebuilds.
|
||||
#
|
||||
|
||||
USE_RUBY="ruby23"
|
||||
|
||||
inherit eutils ruby-ng user systemd
|
||||
|
||||
MY_PV="v${PV/_/-}"
|
||||
MY_GIT_COMMIT="94bb13bf583ee6b7ae859afdea9ed7f021161c23"
|
||||
|
||||
GITLAB_GITALY_VERSION="0.52.1"
|
||||
GITLAB_PAGES_VERSION="0.6.0"
|
||||
GITLAB_SHELL_VERSION="5.10.0"
|
||||
GITLAB_WORKHORSE_VERSION="3.3.1"
|
||||
|
||||
DESCRIPTION="GitLab is a free project and repository management application"
|
||||
HOMEPAGE="https://about.gitlab.com/"
|
||||
SRC_URI="https://gitlab.com/gitlab-org/${PN}/repository/archive.tar.gz?ref=${MY_PV} -> ${P}.tar.gz"
|
||||
RUBY_S="${PN}-${MY_PV}-${MY_GIT_COMMIT}"
|
||||
|
||||
RESTRICT="mirror"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86 ~arm64"
|
||||
IUSE="kerberos mysql +postgres +unicorn systemd pages rugged_use_system_libraries"
|
||||
|
||||
## Gems dependencies:
|
||||
# charlock_holmes dev-libs/icu
|
||||
# grape, capybara dev-libs/libxml2, dev-libs/libxslt
|
||||
# rugged dev-util/cmake, virtual/pkgconfig
|
||||
# json dev-util/ragel
|
||||
# pygments.rb python 2.7+
|
||||
# execjs net-libs/nodejs, or any other JS runtime
|
||||
# pg dev-db/postgresql
|
||||
# mysql virtual/mysql
|
||||
#
|
||||
GEMS_DEPEND="
|
||||
dev-libs/icu
|
||||
dev-libs/libxml2
|
||||
dev-libs/libxslt
|
||||
dev-libs/re2
|
||||
dev-util/ragel
|
||||
>=net-libs/nodejs-4.3.0
|
||||
>=sys-apps/yarn-0.17.0
|
||||
postgres? ( >=dev-db/postgresql-9.6:* )
|
||||
mysql? ( virtual/mysql )
|
||||
kerberos? ( virtual/krb5 )"
|
||||
CDEPEND="
|
||||
dev-util/cmake
|
||||
virtual/pkgconfig"
|
||||
COMMON_DEPEND="
|
||||
${GEMS_DEPEND}
|
||||
~dev-vcs/gitlab-shell-${GITLAB_SHELL_VERSION}
|
||||
>=dev-vcs/git-2.8.4
|
||||
~www-servers/gitlab-workhorse-${GITLAB_WORKHORSE_VERSION}
|
||||
kerberos? ( !app-crypt/heimdal )
|
||||
rugged_use_system_libraries? ( net-libs/http-parser dev-libs/libgit2:0/26 )
|
||||
pages? ( ~www-servers/gitlab-pages-${GITLAB_PAGES_VERSION} )
|
||||
~www-servers/gitlab-gitaly-${GITLAB_GITALY_VERSION}"
|
||||
DEPEND="
|
||||
${CDEPEND}
|
||||
${COMMON_DEPEND}"
|
||||
RDEPEND="
|
||||
${COMMON_DEPEND}
|
||||
>=dev-db/redis-2.8
|
||||
virtual/mta
|
||||
systemd? ( sys-apps/systemd:0= )"
|
||||
ruby_add_bdepend "
|
||||
virtual/rubygems
|
||||
>=dev-ruby/bundler-1.15.4"
|
||||
|
||||
#
|
||||
# fix-sendmail-config:
|
||||
# Fix default settings to work with ssmtp that doesn't know '-t' argument.
|
||||
# fix-redis-config-path:
|
||||
# Point to the absolute location of redis_config.rb
|
||||
#
|
||||
PATCHES=(
|
||||
"${FILESDIR}/01-${PN}-8.7.5-fix-sendmail-config.patch"
|
||||
"${FILESDIR}/02-${PN}-9.0.0-fix-redis-config-path.patch"
|
||||
"${FILESDIR}/03-${PN}-10.2.8-database.yml.patch"
|
||||
"${FILESDIR}/04-${PN}-9.3.0-fix-check-task.patch"
|
||||
"${FILESDIR}/05-${PN}-9.0.0-replace-sys-filesystem.patch"
|
||||
"${FILESDIR}/06-${PN}-8.17.0-fix-webpack-config.patch"
|
||||
)
|
||||
|
||||
MY_NAME="gitlab"
|
||||
MY_USER="git" # should be same as in gitlab-shell
|
||||
|
||||
DEST_DIR="/opt/${MY_NAME}"
|
||||
CONF_DIR="/etc/${MY_NAME}"
|
||||
LOGS_DIR="/var/log/${MY_NAME}"
|
||||
TEMP_DIR="/var/tmp/${MY_NAME}"
|
||||
|
||||
all_ruby_prepare() {
|
||||
# fix paths
|
||||
local satellites_path="${TEMP_DIR}/repo_satellites"
|
||||
local repos_path=/var/lib/git/repositories
|
||||
local shell_path=/usr/share/gitlab-shell
|
||||
local run_path=/run/${MY_NAME}
|
||||
|
||||
sed -i -E \
|
||||
-e "/satellites:$/,/\w:$/ s|(\s*path:\s).*|\1${satellites_path}/|" \
|
||||
-e "/gitlab_shell:$/,/\w:$/ s|(\s*path:\s).*|\1${shell_path}/|" \
|
||||
-e "/gitlab_shell:$/,/\w:$/ s|(\s*repos_path:\s).*|\1${repos_path}/|" \
|
||||
-e "/gitlab_shell:$/,/\w:$/ s|(\s*hooks_path:\s).*|\1${shell_path}/hooks/|" \
|
||||
-e "/path: \\/home\\/git\\/repositories\\/$/ s|/home/git/repositories/|/var/lib/git/repositories/|" \
|
||||
-e "/gitaly_address:/ s|/home/git/gitlab/tmp/sockets/private/|${run_path}/sockets/|" \
|
||||
config/gitlab.yml.example || die "failed to filter gitlab.yml.example"
|
||||
|
||||
sed -i -E \
|
||||
-e "s|/home/git/gitlab/tmp|${run_path}|g" \
|
||||
-e "s|/home/git/gitlab/log|${LOGS_DIR}|g" \
|
||||
-e "s|/home/git/gitlab|${DEST_DIR}|g" \
|
||||
config/unicorn.rb.example || die "failed to filter unicorn.rb.example"
|
||||
|
||||
sed -i \
|
||||
-e "s|/home/git/gitlab/tmp|${run_path}|g" \
|
||||
lib/support/nginx/gitlab || die "failed to filter nginx/gitlab"
|
||||
|
||||
# modify default database settings for PostgreSQL
|
||||
sed -i -E \
|
||||
-e 's|(username:).*|\1 gitlab|' \
|
||||
-e 's|(password:).*|\1 gitlab|' \
|
||||
-e 's|(socket:).*|\1 /run/postgresql/.s.PGSQL.5432|' \
|
||||
config/database.yml.postgresql \
|
||||
|| die "failed to filter database.yml.postgresql"
|
||||
|
||||
# rename config files
|
||||
mv config/gitlab.yml.example config/gitlab.yml
|
||||
mv config/unicorn.rb.example config/unicorn.rb
|
||||
|
||||
local dbconf=config/database.yml
|
||||
if use postgres && ! use mysql; then
|
||||
mv ${dbconf}.postgresql ${dbconf}
|
||||
rm ${dbconf}.mysql
|
||||
elif use mysql && ! use postgres; then
|
||||
mv ${dbconf}.mysql ${dbconf}
|
||||
rm ${dbconf}.postgresql
|
||||
fi
|
||||
|
||||
# remove useless files
|
||||
rm -r lib/support/{deploy,init.d}
|
||||
use unicorn || rm config/unicorn.rb
|
||||
}
|
||||
|
||||
all_ruby_install() {
|
||||
local dest=${DEST_DIR}
|
||||
local conf=${CONF_DIR}
|
||||
local logs=${LOGS_DIR}
|
||||
local temp=${TEMP_DIR}
|
||||
|
||||
# prepare directories
|
||||
diropts -m750
|
||||
dodir ${logs} ${temp}
|
||||
|
||||
diropts -m755
|
||||
dodir ${conf} ${dest}/public/uploads
|
||||
|
||||
dosym ${temp} ${dest}/tmp
|
||||
dosym ${logs} ${dest}/log
|
||||
|
||||
# install configs
|
||||
insinto ${conf}
|
||||
doins -r config/*
|
||||
dosym ${conf} ${dest}/config
|
||||
|
||||
echo 'export RAILS_ENV=production' > "${D}/${dest}/.profile"
|
||||
|
||||
# remove needless dirs
|
||||
rm -Rf config tmp log
|
||||
|
||||
# install the rest files
|
||||
# using cp 'cause doins is slow
|
||||
cp -Rl * "${D}/${dest}"/
|
||||
cp -Rl .??* "${D}/${dest}"/
|
||||
|
||||
# install logrotate config
|
||||
dodir /etc/logrotate.d
|
||||
cat > "${D}/etc/logrotate.d/${MY_NAME}" <<-EOF
|
||||
${logs}/*.log {
|
||||
missingok
|
||||
delaycompress
|
||||
compress
|
||||
copytruncate
|
||||
}
|
||||
EOF
|
||||
|
||||
## Install gems via bundler ##
|
||||
|
||||
cd "${D}/${dest}"
|
||||
|
||||
local without="development test aws"
|
||||
local flag; for flag in mysql postgres unicorn kerberos; do
|
||||
without+="$(use $flag || echo ' '$flag)"
|
||||
done
|
||||
local bundle_args="--deployment ${without:+--without ${without}}"
|
||||
|
||||
use "rugged_use_system_libraries" && export RUGGED_USE_SYSTEM_LIBRARIES="YES"
|
||||
|
||||
einfo "Running bundle install ${bundle_args} ..."
|
||||
${RUBY} /usr/bin/bundle install ${bundle_args} || die "bundler failed"
|
||||
|
||||
einfo "Cleaning old gems ..."
|
||||
${RUBY} /usr/bin/bundle clean
|
||||
|
||||
# clean gems cache
|
||||
rm -Rf vendor/bundle/ruby/*/cache
|
||||
rm -Rf vendor/bundle/ruby/*/bundler/gems/charlock_holmes-dde194609b35/.git
|
||||
|
||||
## RC script ##
|
||||
|
||||
if use systemd ; then
|
||||
ewarn "Beware: systemd support has not been tested, use at your own risk!"
|
||||
systemd_newunit "${FILESDIR}/gitlab-8.13.0-sidekiq.service" "gitlab-sidekiq.service"
|
||||
systemd_dounit "${FILESDIR}/gitlab-unicorn.service"
|
||||
systemd_dounit "${FILESDIR}/gitlab-workhorse.service"
|
||||
systemd_dounit "${FILESDIR}/gitlab-mailroom.service"
|
||||
systemd_dotmpfilesd "${FILESDIR}/gitlab.conf"
|
||||
else
|
||||
local rcscript=gitlab-9.3.5-sidekiq.init
|
||||
use unicorn && rcscript=gitlab-9.3.5-unicorn.init
|
||||
|
||||
cp "${FILESDIR}/${rcscript}" "${T}" || die
|
||||
sed -i \
|
||||
-e "s|@USER@|${MY_USER}|g" \
|
||||
-e "s|@GITLAB_BASE@|${dest}|g" \
|
||||
-e "s|@LOGS_DIR@|${logs}|g" \
|
||||
"${T}/${rcscript}" \
|
||||
|| die "failed to filter ${rcscript}"
|
||||
|
||||
newinitd "${T}/${rcscript}" "${MY_NAME}"
|
||||
fi
|
||||
|
||||
# fix permissions
|
||||
fowners -R ${MY_USER}:${MY_USER} ${dest} ${temp} ${logs}
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
elog "If this is an update from a previous version, stop your GitLab"
|
||||
elog "instance and issue the following command to perform all required"
|
||||
elog "migrations:"
|
||||
elog " emerge --config \"=${CATEGORY}/${PF}\""
|
||||
elog "PLEASE NOTE: It's HIGHLY recommended to backup your database"
|
||||
elog "before running the config phase. Run these commands (as root):"
|
||||
elog
|
||||
elog " cd /opt/gitlab"
|
||||
elog " sudo -u git -H bundle exec rake gitlab:backup:create RAILS_ENV=production"
|
||||
elog
|
||||
elog "If this was a fresh install, follow these steps:"
|
||||
elog
|
||||
elog "1. Configure your GitLab's settings in ${CONF_DIR}/gitlab.yml."
|
||||
elog
|
||||
elog "2. Configure your database settings in ${CONF_DIR}/database.yml"
|
||||
elog " for \"production\" environment."
|
||||
elog
|
||||
elog "3. Then you should create a database for your GitLab instance, if you"
|
||||
elog " haven't done so already."
|
||||
elog
|
||||
if use postgres; then
|
||||
elog "If you have local PostgreSQL running, just copy&run:"
|
||||
elog " su postgres"
|
||||
elog " psql -c \"CREATE ROLE gitlab PASSWORD 'gitlab' \\"
|
||||
elog " NOSUPERUSER NOCREATEDB NOCREATEROLE INHERIT LOGIN;\""
|
||||
elog " createdb -E UTF-8 -O gitlab gitlabhq_production"
|
||||
elog " Note: You should change your password to something more random..."
|
||||
elog
|
||||
fi
|
||||
elog "4. Finally execute the following command to initialize the environment:"
|
||||
elog " emerge --config \"=${CATEGORY}/${PF}\""
|
||||
elog " Note: Do not forget to start Redis server first!"
|
||||
elog
|
||||
elog "If you're running GitLab behind an SSL proxy such as nginx or Apache and"
|
||||
elog "you can't login after the upgrade, be sure to read the section about the"
|
||||
elog "verification of the CSRF token in GitLab's trouble-shooting guide at"
|
||||
elog "http://goo.gl/5XGRGv."
|
||||
if use postgres; then
|
||||
elog "Please note: As of GitLab 8.6, users of PostgreSQL need to enable the"
|
||||
elog "`pg_trgm` extension by running the following command as a PostgreSQL"
|
||||
elog "super user for *every* GitLab database:"
|
||||
elog " CREATE EXTENSION IF NOT EXISTS pg_trgm;"
|
||||
elog "For details, see the documentation at the GitLab website."
|
||||
fi
|
||||
if use mysql ; then
|
||||
ewarn "You must grant the GitLab user permissions the following on the database:"
|
||||
ewarn " mysql -u root -p -e \\"
|
||||
ewarn " \"GRANT TRIGGER ON \`gitlab\`.* TO 'gitlab'@'localhost';\""
|
||||
ewarn "PLEASE also read this document about needed migrations on MySQL:"
|
||||
ewarn
|
||||
ewarn "https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/install/database_mysql.md"
|
||||
ewarn
|
||||
ewarn "Failing to follow those instructions may make the config phase fail!"
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_config() {
|
||||
einfo "Checking configuration files"
|
||||
|
||||
if [ ! -r "${CONF_DIR}/database.yml" ]; then
|
||||
eerror "Copy ${CONF_DIR}/database.yml.* to"
|
||||
eerror "${CONF_DIR}/database.yml and edit this file in order to configure your"
|
||||
eerror "database settings for \"production\" environment."
|
||||
die
|
||||
fi
|
||||
|
||||
local email_from="$(ryaml ${CONF_DIR}/gitlab.yml production gitlab email_from)"
|
||||
local git_home="$(egethome ${MY_USER})"
|
||||
|
||||
# configure Git global settings
|
||||
if [ ! -e "${git_home}/.gitconfig" ]; then
|
||||
einfo "Setting git user"
|
||||
su -l ${MY_USER} -c "
|
||||
git config --global user.email '${email_from}';
|
||||
git config --global user.name 'GitLab'" \
|
||||
|| die "failed to setup git name and email"
|
||||
fi
|
||||
|
||||
su -l ${MY_USER} -c "git config --global repack.writeBitmaps true"
|
||||
|
||||
# determine whether this is an update or a fresh install. we do this by
|
||||
# checking whether the ${DEST_DIR}/.git directory exists or not
|
||||
#
|
||||
if [ -d "${DEST_DIR}/.git" ]; then
|
||||
local update=true
|
||||
else
|
||||
local update=false
|
||||
fi
|
||||
|
||||
if use mysql ; then
|
||||
ewarn "Please only proceed if you've read and understood the following page:"
|
||||
ewarn "https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/install/database_mysql.md"
|
||||
if [ "${update}" = 'true' ]; then
|
||||
ewarn "Failing to follow those instructions may cause the upgrade to fail"
|
||||
fi
|
||||
ewarn
|
||||
ewarn "Press any key to continue, or abort with Ctrl+C"
|
||||
read
|
||||
fi
|
||||
|
||||
## Initialize app ##
|
||||
|
||||
local RAILS_ENV="production"
|
||||
local RUBY=${RUBY:-/usr/bin/ruby}
|
||||
local BUNDLE="${RUBY} /usr/bin/bundle"
|
||||
|
||||
if [ "${update}" = 'true' ]; then
|
||||
einfo "Migrating database ..."
|
||||
exec_rake db:migrate
|
||||
|
||||
einfo "Compiling GetText PO files ..."
|
||||
exec_rake gettext:compile
|
||||
|
||||
# https://github.com/gitlabhq/gitlabhq/issues/5311#issuecomment-31656496
|
||||
einfo "Migrating iids ..."
|
||||
exec_rake migrate_iids
|
||||
|
||||
einfo "Installing npm modules ..."
|
||||
exec_rake yarn:install
|
||||
|
||||
einfo "Cleaning old precompiled assets ..."
|
||||
exec_rake gitlab:assets:clean
|
||||
|
||||
einfo "Cleaning cache ..."
|
||||
exec_rake cache:clear
|
||||
else
|
||||
# create dummy git repo as workaround for
|
||||
# https://github.com/bundler/bundler/issues/2039
|
||||
einfo "Initializing dummy git repository to avoid false errors from bundler"
|
||||
su -l ${MY_USER} -c "
|
||||
cd ${DEST_DIR}
|
||||
git init
|
||||
git add README.md
|
||||
git commit -m 'Dummy repository'" >/dev/null
|
||||
|
||||
einfo "Initializing database ..."
|
||||
exec_rake gitlab:setup
|
||||
|
||||
einfo "Compiling GetText PO files ..."
|
||||
exec_rake gettext:pack
|
||||
exec_rake gettext:po_to_json
|
||||
|
||||
einfo "Installing npm modules ..."
|
||||
exec_rake yarn:install
|
||||
fi
|
||||
|
||||
einfo "Precompiling assests ..."
|
||||
exec_rake gitlab:assets:compile
|
||||
|
||||
if [ "${update}" = 'true' ]; then
|
||||
ewarn
|
||||
ewarn "This configuration script runs only common migration tasks."
|
||||
ewarn "Please read guides on"
|
||||
ewarn " https://github.com/gitlabhq/gitlabhq/blob/master/doc/update/"
|
||||
ewarn "for any additional migration tasks specific to your previous GitLab"
|
||||
ewarn "version."
|
||||
fi
|
||||
elog
|
||||
elog "If you want to make sure that the install/upgrade was successful, start"
|
||||
elog "Gitlab now and then run these commands (as root):"
|
||||
elog
|
||||
elog " cd /opt/gitlab"
|
||||
elog " sudo -u git -H bundle exec rake gitlab:env:info RAILS_ENV=production"
|
||||
elog " sudo -u git -H bundle exec rake gitlab:check RAILS_ENV=production"
|
||||
elog
|
||||
if ! use systemd ; then
|
||||
elog "You may also run"
|
||||
elog " /etc/init.d/gitlab check"
|
||||
elog " for convenience."
|
||||
fi
|
||||
}
|
||||
|
||||
ryaml() {
|
||||
ruby -ryaml -e 'puts ARGV[1..-1].inject(YAML.load(File.read(ARGV[0]))) {|acc, key| acc[key] }' "$@"
|
||||
}
|
||||
|
||||
exec_rake() {
|
||||
local command="${BUNDLE} exec rake $@ RAILS_ENV=${RAILS_ENV} NODE_ENV=${RAILS_ENV}"
|
||||
|
||||
echo " ${command}"
|
||||
su -l ${MY_USER} -c "
|
||||
export LANG=en_US.UTF-8; export LC_ALL=en_US.UTF-8; export NODE_PATH=${DEST_DIR}/node_modules
|
||||
cd ${DEST_DIR}
|
||||
${command}" \
|
||||
|| die "failed to run rake $@"
|
||||
}
|
|
@ -1,442 +0,0 @@
|
|||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="6"
|
||||
|
||||
# Maintainer notes:
|
||||
# - This ebuild uses Bundler to download and install all gems in deployment mode
|
||||
# (i.e. into isolated directory inside application). That's not Gentoo way how
|
||||
# it should be done, but GitLab has too many dependencies that it will be too
|
||||
# difficult to maintain them via ebuilds.
|
||||
#
|
||||
|
||||
USE_RUBY="ruby23"
|
||||
|
||||
inherit eutils ruby-ng user systemd
|
||||
|
||||
MY_PV="v${PV/_/-}"
|
||||
MY_GIT_COMMIT="586669a02ee7a18635d8e590117ac9e2bd9b62f4"
|
||||
|
||||
GITLAB_GITALY_VERSION="0.59.2"
|
||||
GITLAB_PAGES_VERSION="0.6.0"
|
||||
GITLAB_SHELL_VERSION="5.10.2"
|
||||
GITLAB_WORKHORSE_VERSION="3.3.1"
|
||||
|
||||
DESCRIPTION="GitLab is a free project and repository management application"
|
||||
HOMEPAGE="https://about.gitlab.com/"
|
||||
SRC_URI="https://gitlab.com/gitlab-org/${PN}/repository/archive.tar.gz?ref=${MY_PV} -> ${P}.tar.gz"
|
||||
RUBY_S="${PN}-${MY_PV}-${MY_GIT_COMMIT}"
|
||||
|
||||
RESTRICT="mirror"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86 ~arm64"
|
||||
IUSE="kerberos mysql +postgres +unicorn systemd pages rugged_use_system_libraries"
|
||||
|
||||
## Gems dependencies:
|
||||
# charlock_holmes dev-libs/icu
|
||||
# grape, capybara dev-libs/libxml2, dev-libs/libxslt
|
||||
# rugged dev-util/cmake, virtual/pkgconfig
|
||||
# json dev-util/ragel
|
||||
# pygments.rb python 2.7+
|
||||
# execjs net-libs/nodejs, or any other JS runtime
|
||||
# pg dev-db/postgresql
|
||||
# mysql virtual/mysql
|
||||
#
|
||||
GEMS_DEPEND="
|
||||
dev-libs/icu
|
||||
dev-libs/libxml2
|
||||
dev-libs/libxslt
|
||||
dev-libs/re2
|
||||
dev-util/ragel
|
||||
>=net-libs/nodejs-4.3.0
|
||||
>=sys-apps/yarn-0.17.0
|
||||
postgres? ( >=dev-db/postgresql-9.6:* )
|
||||
mysql? ( virtual/mysql )
|
||||
kerberos? ( virtual/krb5 )"
|
||||
CDEPEND="
|
||||
dev-util/cmake
|
||||
virtual/pkgconfig"
|
||||
COMMON_DEPEND="
|
||||
${GEMS_DEPEND}
|
||||
~dev-vcs/gitlab-shell-${GITLAB_SHELL_VERSION}
|
||||
>=dev-vcs/git-2.8.4
|
||||
~www-servers/gitlab-workhorse-${GITLAB_WORKHORSE_VERSION}
|
||||
kerberos? ( !app-crypt/heimdal )
|
||||
rugged_use_system_libraries? ( net-libs/http-parser dev-libs/libgit2:0/26 )
|
||||
pages? ( ~www-servers/gitlab-pages-${GITLAB_PAGES_VERSION} )
|
||||
~www-servers/gitlab-gitaly-${GITLAB_GITALY_VERSION}"
|
||||
DEPEND="
|
||||
${CDEPEND}
|
||||
${COMMON_DEPEND}"
|
||||
RDEPEND="
|
||||
${COMMON_DEPEND}
|
||||
>=dev-db/redis-2.8
|
||||
virtual/mta
|
||||
systemd? ( sys-apps/systemd:0= )"
|
||||
ruby_add_bdepend "
|
||||
virtual/rubygems
|
||||
>=dev-ruby/bundler-1.15.4"
|
||||
|
||||
#
|
||||
# fix-sendmail-config:
|
||||
# Fix default settings to work with ssmtp that doesn't know '-t' argument.
|
||||
# fix-redis-config-path:
|
||||
# Point to the absolute location of redis_config.rb
|
||||
#
|
||||
PATCHES=(
|
||||
"${FILESDIR}/01-${PN}-8.7.5-fix-sendmail-config.patch"
|
||||
"${FILESDIR}/02-${PN}-9.0.0-fix-redis-config-path.patch"
|
||||
"${FILESDIR}/03-${PN}-10.2.8-database.yml.patch"
|
||||
"${FILESDIR}/04-${PN}-9.3.0-fix-check-task.patch"
|
||||
"${FILESDIR}/05-${PN}-9.0.0-replace-sys-filesystem.patch"
|
||||
"${FILESDIR}/06-${PN}-8.17.0-fix-webpack-config.patch"
|
||||
)
|
||||
|
||||
MY_NAME="gitlab"
|
||||
MY_USER="git" # should be same as in gitlab-shell
|
||||
|
||||
DEST_DIR="/opt/${MY_NAME}"
|
||||
CONF_DIR="/etc/${MY_NAME}"
|
||||
LOGS_DIR="/var/log/${MY_NAME}"
|
||||
TEMP_DIR="/var/tmp/${MY_NAME}"
|
||||
|
||||
all_ruby_prepare() {
|
||||
# fix paths
|
||||
local satellites_path="${TEMP_DIR}/repo_satellites"
|
||||
local repos_path=/var/lib/git/repositories
|
||||
local shell_path=/usr/share/gitlab-shell
|
||||
local run_path=/run/${MY_NAME}
|
||||
|
||||
sed -i -E \
|
||||
-e "/satellites:$/,/\w:$/ s|(\s*path:\s).*|\1${satellites_path}/|" \
|
||||
-e "/gitlab_shell:$/,/\w:$/ s|(\s*path:\s).*|\1${shell_path}/|" \
|
||||
-e "/gitlab_shell:$/,/\w:$/ s|(\s*repos_path:\s).*|\1${repos_path}/|" \
|
||||
-e "/gitlab_shell:$/,/\w:$/ s|(\s*hooks_path:\s).*|\1${shell_path}/hooks/|" \
|
||||
-e "/path: \\/home\\/git\\/repositories\\/$/ s|/home/git/repositories/|/var/lib/git/repositories/|" \
|
||||
-e "/gitaly_address:/ s|/home/git/gitlab/tmp/sockets/private/|${run_path}/sockets/|" \
|
||||
config/gitlab.yml.example || die "failed to filter gitlab.yml.example"
|
||||
|
||||
sed -i -E \
|
||||
-e "s|/home/git/gitlab/tmp|${run_path}|g" \
|
||||
-e "s|/home/git/gitlab/log|${LOGS_DIR}|g" \
|
||||
-e "s|/home/git/gitlab|${DEST_DIR}|g" \
|
||||
config/unicorn.rb.example || die "failed to filter unicorn.rb.example"
|
||||
|
||||
sed -i \
|
||||
-e "s|/home/git/gitlab/tmp|${run_path}|g" \
|
||||
lib/support/nginx/gitlab || die "failed to filter nginx/gitlab"
|
||||
|
||||
# modify default database settings for PostgreSQL
|
||||
sed -i -E \
|
||||
-e 's|(username:).*|\1 gitlab|' \
|
||||
-e 's|(password:).*|\1 gitlab|' \
|
||||
-e 's|(socket:).*|\1 /run/postgresql/.s.PGSQL.5432|' \
|
||||
config/database.yml.postgresql \
|
||||
|| die "failed to filter database.yml.postgresql"
|
||||
|
||||
# rename config files
|
||||
mv config/gitlab.yml.example config/gitlab.yml
|
||||
mv config/unicorn.rb.example config/unicorn.rb
|
||||
|
||||
local dbconf=config/database.yml
|
||||
if use postgres && ! use mysql; then
|
||||
mv ${dbconf}.postgresql ${dbconf}
|
||||
rm ${dbconf}.mysql
|
||||
elif use mysql && ! use postgres; then
|
||||
mv ${dbconf}.mysql ${dbconf}
|
||||
rm ${dbconf}.postgresql
|
||||
fi
|
||||
|
||||
# remove useless files
|
||||
rm -r lib/support/{deploy,init.d}
|
||||
use unicorn || rm config/unicorn.rb
|
||||
}
|
||||
|
||||
all_ruby_install() {
|
||||
local dest=${DEST_DIR}
|
||||
local conf=${CONF_DIR}
|
||||
local logs=${LOGS_DIR}
|
||||
local temp=${TEMP_DIR}
|
||||
|
||||
# prepare directories
|
||||
diropts -m750
|
||||
dodir ${logs} ${temp}
|
||||
|
||||
diropts -m755
|
||||
dodir ${conf} ${dest}/public/uploads
|
||||
|
||||
dosym ${temp} ${dest}/tmp
|
||||
dosym ${logs} ${dest}/log
|
||||
|
||||
# install configs
|
||||
insinto ${conf}
|
||||
doins -r config/*
|
||||
dosym ${conf} ${dest}/config
|
||||
|
||||
echo 'export RAILS_ENV=production' > "${D}/${dest}/.profile"
|
||||
|
||||
# remove needless dirs
|
||||
rm -Rf config tmp log
|
||||
|
||||
# install the rest files
|
||||
# using cp 'cause doins is slow
|
||||
cp -Rl * "${D}/${dest}"/
|
||||
cp -Rl .??* "${D}/${dest}"/
|
||||
|
||||
# install logrotate config
|
||||
dodir /etc/logrotate.d
|
||||
cat > "${D}/etc/logrotate.d/${MY_NAME}" <<-EOF
|
||||
${logs}/*.log {
|
||||
missingok
|
||||
delaycompress
|
||||
compress
|
||||
copytruncate
|
||||
}
|
||||
EOF
|
||||
|
||||
## Install gems via bundler ##
|
||||
|
||||
cd "${D}/${dest}"
|
||||
|
||||
local without="development test aws"
|
||||
local flag; for flag in mysql postgres unicorn kerberos; do
|
||||
without+="$(use $flag || echo ' '$flag)"
|
||||
done
|
||||
local bundle_args="--deployment ${without:+--without ${without}}"
|
||||
|
||||
use "rugged_use_system_libraries" && export RUGGED_USE_SYSTEM_LIBRARIES="YES"
|
||||
|
||||
einfo "Running bundle install ${bundle_args} ..."
|
||||
${RUBY} /usr/bin/bundle install ${bundle_args} || die "bundler failed"
|
||||
|
||||
einfo "Cleaning old gems ..."
|
||||
${RUBY} /usr/bin/bundle clean
|
||||
|
||||
# clean gems cache
|
||||
rm -Rf vendor/bundle/ruby/*/cache
|
||||
rm -Rf vendor/bundle/ruby/*/bundler/gems/charlock_holmes-dde194609b35/.git
|
||||
|
||||
## RC script ##
|
||||
|
||||
if use systemd ; then
|
||||
ewarn "Beware: systemd support has not been tested, use at your own risk!"
|
||||
systemd_newunit "${FILESDIR}/gitlab-8.13.0-sidekiq.service" "gitlab-sidekiq.service"
|
||||
systemd_dounit "${FILESDIR}/gitlab-unicorn.service"
|
||||
systemd_dounit "${FILESDIR}/gitlab-workhorse.service"
|
||||
systemd_dounit "${FILESDIR}/gitlab-mailroom.service"
|
||||
systemd_dotmpfilesd "${FILESDIR}/gitlab.conf"
|
||||
else
|
||||
local rcscript=gitlab-9.3.5-sidekiq.init
|
||||
use unicorn && rcscript=gitlab-9.3.5-unicorn.init
|
||||
|
||||
cp "${FILESDIR}/${rcscript}" "${T}" || die
|
||||
sed -i \
|
||||
-e "s|@USER@|${MY_USER}|g" \
|
||||
-e "s|@GITLAB_BASE@|${dest}|g" \
|
||||
-e "s|@LOGS_DIR@|${logs}|g" \
|
||||
"${T}/${rcscript}" \
|
||||
|| die "failed to filter ${rcscript}"
|
||||
|
||||
newinitd "${T}/${rcscript}" "${MY_NAME}"
|
||||
fi
|
||||
|
||||
# fix permissions
|
||||
fowners -R ${MY_USER}:${MY_USER} ${dest} ${temp} ${logs}
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
elog "If this is an update from a previous version, stop your GitLab"
|
||||
elog "instance and issue the following command to perform all required"
|
||||
elog "migrations:"
|
||||
elog " emerge --config \"=${CATEGORY}/${PF}\""
|
||||
elog "PLEASE NOTE: It's HIGHLY recommended to backup your database"
|
||||
elog "before running the config phase. Run these commands (as root):"
|
||||
elog
|
||||
elog " cd /opt/gitlab"
|
||||
elog " sudo -u git -H bundle exec rake gitlab:backup:create RAILS_ENV=production"
|
||||
elog
|
||||
elog "If this was a fresh install, follow these steps:"
|
||||
elog
|
||||
elog "1. Configure your GitLab's settings in ${CONF_DIR}/gitlab.yml."
|
||||
elog
|
||||
elog "2. Configure your database settings in ${CONF_DIR}/database.yml"
|
||||
elog " for \"production\" environment."
|
||||
elog
|
||||
elog "3. Then you should create a database for your GitLab instance, if you"
|
||||
elog " haven't done so already."
|
||||
elog
|
||||
if use postgres; then
|
||||
elog "If you have local PostgreSQL running, just copy&run:"
|
||||
elog " su postgres"
|
||||
elog " psql -c \"CREATE ROLE gitlab PASSWORD 'gitlab' \\"
|
||||
elog " NOSUPERUSER NOCREATEDB NOCREATEROLE INHERIT LOGIN;\""
|
||||
elog " createdb -E UTF-8 -O gitlab gitlabhq_production"
|
||||
elog " Note: You should change your password to something more random..."
|
||||
elog
|
||||
fi
|
||||
elog "4. Finally execute the following command to initialize the environment:"
|
||||
elog " emerge --config \"=${CATEGORY}/${PF}\""
|
||||
elog " Note: Do not forget to start Redis server first!"
|
||||
elog
|
||||
elog "If you're running GitLab behind an SSL proxy such as nginx or Apache and"
|
||||
elog "you can't login after the upgrade, be sure to read the section about the"
|
||||
elog "verification of the CSRF token in GitLab's trouble-shooting guide at"
|
||||
elog "http://goo.gl/5XGRGv."
|
||||
if use postgres; then
|
||||
elog "Please note: As of GitLab 8.6, users of PostgreSQL need to enable the"
|
||||
elog "`pg_trgm` extension by running the following command as a PostgreSQL"
|
||||
elog "super user for *every* GitLab database:"
|
||||
elog " CREATE EXTENSION IF NOT EXISTS pg_trgm;"
|
||||
elog "For details, see the documentation at the GitLab website."
|
||||
fi
|
||||
if use mysql ; then
|
||||
ewarn "You must grant the GitLab user permissions the following on the database:"
|
||||
ewarn " mysql -u root -p -e \\"
|
||||
ewarn " \"GRANT TRIGGER ON \`gitlab\`.* TO 'gitlab'@'localhost';\""
|
||||
ewarn "PLEASE also read this document about needed migrations on MySQL:"
|
||||
ewarn
|
||||
ewarn "https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/install/database_mysql.md"
|
||||
ewarn
|
||||
ewarn "Failing to follow those instructions may make the config phase fail!"
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_config() {
|
||||
einfo "Checking configuration files"
|
||||
|
||||
if [ ! -r "${CONF_DIR}/database.yml" ]; then
|
||||
eerror "Copy ${CONF_DIR}/database.yml.* to"
|
||||
eerror "${CONF_DIR}/database.yml and edit this file in order to configure your"
|
||||
eerror "database settings for \"production\" environment."
|
||||
die
|
||||
fi
|
||||
|
||||
local email_from="$(ryaml ${CONF_DIR}/gitlab.yml production gitlab email_from)"
|
||||
local git_home="$(egethome ${MY_USER})"
|
||||
|
||||
# configure Git global settings
|
||||
if [ ! -e "${git_home}/.gitconfig" ]; then
|
||||
einfo "Setting git user"
|
||||
su -l ${MY_USER} -c "
|
||||
git config --global user.email '${email_from}';
|
||||
git config --global user.name 'GitLab'" \
|
||||
|| die "failed to setup git name and email"
|
||||
fi
|
||||
|
||||
su -l ${MY_USER} -c "git config --global repack.writeBitmaps true"
|
||||
|
||||
# determine whether this is an update or a fresh install. we do this by
|
||||
# checking whether the ${DEST_DIR}/.git directory exists or not
|
||||
#
|
||||
if [ -d "${DEST_DIR}/.git" ]; then
|
||||
local update=true
|
||||
else
|
||||
local update=false
|
||||
fi
|
||||
|
||||
if use mysql ; then
|
||||
ewarn "Please only proceed if you've read and understood the following page:"
|
||||
ewarn "https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/install/database_mysql.md"
|
||||
if [ "${update}" = 'true' ]; then
|
||||
ewarn "Failing to follow those instructions may cause the upgrade to fail"
|
||||
fi
|
||||
ewarn
|
||||
ewarn "Press any key to continue, or abort with Ctrl+C"
|
||||
read
|
||||
fi
|
||||
|
||||
ewarn "Now is a good time to create a backup of your Gitlab installation, just in case."
|
||||
ewarn "To do so, abort this configuration with Ctrl+C and type the following commands:"
|
||||
ewarn " cd /opt/gitlab"
|
||||
ewarn " sudo -u git -H bundle exec rake gitlab:backup:create RAILS_ENV=production"
|
||||
ewarn "Then, re-run the configuration step. If you want to skip the backup, press any key now."
|
||||
read
|
||||
|
||||
## Initialize app ##
|
||||
|
||||
local RAILS_ENV="production"
|
||||
local RUBY=${RUBY:-/usr/bin/ruby}
|
||||
local BUNDLE="${RUBY} /usr/bin/bundle"
|
||||
|
||||
if [ "${update}" = 'true' ]; then
|
||||
einfo "Migrating database ..."
|
||||
exec_rake db:migrate
|
||||
|
||||
einfo "Compiling GetText PO files ..."
|
||||
exec_rake gettext:compile
|
||||
|
||||
# https://github.com/gitlabhq/gitlabhq/issues/5311#issuecomment-31656496
|
||||
einfo "Migrating iids ..."
|
||||
exec_rake migrate_iids
|
||||
|
||||
einfo "Installing npm modules ..."
|
||||
exec_rake yarn:install
|
||||
|
||||
einfo "Cleaning old precompiled assets ..."
|
||||
exec_rake gitlab:assets:clean
|
||||
|
||||
einfo "Cleaning cache ..."
|
||||
exec_rake cache:clear
|
||||
else
|
||||
# create dummy git repo as workaround for
|
||||
# https://github.com/bundler/bundler/issues/2039
|
||||
einfo "Initializing dummy git repository to avoid false errors from bundler"
|
||||
su -l ${MY_USER} -c "
|
||||
cd ${DEST_DIR}
|
||||
git init
|
||||
git add README.md
|
||||
git commit -m 'Dummy repository'" >/dev/null
|
||||
|
||||
einfo "Initializing database ..."
|
||||
exec_rake gitlab:setup
|
||||
|
||||
einfo "Compiling GetText PO files ..."
|
||||
exec_rake gettext:pack
|
||||
exec_rake gettext:po_to_json
|
||||
|
||||
einfo "Installing npm modules ..."
|
||||
exec_rake yarn:install
|
||||
fi
|
||||
|
||||
einfo "Precompiling assests ..."
|
||||
exec_rake gitlab:assets:compile
|
||||
|
||||
if [ "${update}" = 'true' ]; then
|
||||
ewarn
|
||||
ewarn "This configuration script runs only common migration tasks."
|
||||
ewarn "Please read guides on"
|
||||
ewarn " https://github.com/gitlabhq/gitlabhq/blob/master/doc/update/"
|
||||
ewarn "for any additional migration tasks specific to your previous GitLab"
|
||||
ewarn "version."
|
||||
fi
|
||||
elog
|
||||
elog "If you want to make sure that the install/upgrade was successful, start"
|
||||
elog "Gitlab now and then run these commands (as root):"
|
||||
elog
|
||||
elog " cd /opt/gitlab"
|
||||
elog " sudo -u git -H bundle exec rake gitlab:env:info RAILS_ENV=production"
|
||||
elog " sudo -u git -H bundle exec rake gitlab:check RAILS_ENV=production"
|
||||
elog
|
||||
if ! use systemd ; then
|
||||
elog "You may also run"
|
||||
elog " /etc/init.d/gitlab check"
|
||||
elog " for convenience."
|
||||
fi
|
||||
}
|
||||
|
||||
ryaml() {
|
||||
ruby -ryaml -e 'puts ARGV[1..-1].inject(YAML.load(File.read(ARGV[0]))) {|acc, key| acc[key] }' "$@"
|
||||
}
|
||||
|
||||
exec_rake() {
|
||||
local command="${BUNDLE} exec rake $@ RAILS_ENV=${RAILS_ENV} NODE_ENV=${RAILS_ENV}"
|
||||
|
||||
echo " ${command}"
|
||||
su -l ${MY_USER} -c "
|
||||
export LANG=en_US.UTF-8; export LC_ALL=en_US.UTF-8; export NODE_PATH=${DEST_DIR}/node_modules
|
||||
cd ${DEST_DIR}
|
||||
${command}" \
|
||||
|| die "failed to run rake $@"
|
||||
}
|
|
@ -1,430 +0,0 @@
|
|||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="6"
|
||||
|
||||
# Maintainer notes:
|
||||
# - This ebuild uses Bundler to download and install all gems in deployment mode
|
||||
# (i.e. into isolated directory inside application). That's not Gentoo way how
|
||||
# it should be done, but GitLab has too many dependencies that it will be too
|
||||
# difficult to maintain them via ebuilds.
|
||||
#
|
||||
|
||||
USE_RUBY="ruby23"
|
||||
|
||||
EGIT_REPO_URI="https://gitlab.com/gitlab-org/${PN}.git"
|
||||
EGIT_COMMIT="v${PV}"
|
||||
EGIT_CHECKOUT_DIR="${WORKDIR}/all"
|
||||
|
||||
inherit eutils git-r3 ruby-ng user systemd
|
||||
|
||||
GITLAB_GITALY_VERSION="0.66.0"
|
||||
GITLAB_PAGES_VERSION="0.6.1"
|
||||
GITLAB_SHELL_VERSION="5.11.0"
|
||||
GITLAB_WORKHORSE_VERSION="3.3.1"
|
||||
|
||||
DESCRIPTION="GitLab is a free project and repository management application"
|
||||
HOMEPAGE="https://about.gitlab.com/"
|
||||
|
||||
RESTRICT="mirror"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86 ~arm64"
|
||||
IUSE="kerberos mysql +postgres +unicorn systemd pages rugged_use_system_libraries"
|
||||
|
||||
## Gems dependencies:
|
||||
# charlock_holmes dev-libs/icu
|
||||
# grape, capybara dev-libs/libxml2, dev-libs/libxslt
|
||||
# rugged dev-util/cmake, virtual/pkgconfig
|
||||
# json dev-util/ragel
|
||||
# pygments.rb python 2.7+
|
||||
# execjs net-libs/nodejs, or any other JS runtime
|
||||
# pg dev-db/postgresql
|
||||
# mysql virtual/mysql
|
||||
#
|
||||
GEMS_DEPEND="
|
||||
dev-libs/icu
|
||||
dev-libs/libxml2
|
||||
dev-libs/libxslt
|
||||
dev-libs/re2
|
||||
dev-util/ragel
|
||||
>=net-libs/nodejs-6.0.0
|
||||
>=sys-apps/yarn-0.17.0
|
||||
postgres? ( >=dev-db/postgresql-9.6:* )
|
||||
mysql? ( virtual/mysql )
|
||||
kerberos? ( virtual/krb5 )"
|
||||
CDEPEND="
|
||||
dev-util/cmake
|
||||
virtual/pkgconfig"
|
||||
COMMON_DEPEND="
|
||||
${GEMS_DEPEND}
|
||||
~dev-vcs/gitlab-shell-${GITLAB_SHELL_VERSION}
|
||||
>=dev-vcs/git-2.8.4
|
||||
~www-servers/gitlab-workhorse-${GITLAB_WORKHORSE_VERSION}
|
||||
kerberos? ( !app-crypt/heimdal )
|
||||
rugged_use_system_libraries? ( net-libs/http-parser dev-libs/libgit2:0/26 )
|
||||
pages? ( ~www-servers/gitlab-pages-${GITLAB_PAGES_VERSION} )
|
||||
~www-servers/gitlab-gitaly-${GITLAB_GITALY_VERSION}"
|
||||
DEPEND="
|
||||
${CDEPEND}
|
||||
${COMMON_DEPEND}"
|
||||
RDEPEND="
|
||||
${COMMON_DEPEND}
|
||||
>=dev-db/redis-2.8
|
||||
virtual/mta
|
||||
systemd? ( sys-apps/systemd:0= )"
|
||||
ruby_add_bdepend "
|
||||
virtual/rubygems
|
||||
>=dev-ruby/bundler-1.15.4"
|
||||
|
||||
#
|
||||
# fix-sendmail-config:
|
||||
# Fix default settings to work with ssmtp that doesn't know '-t' argument.
|
||||
# fix-redis-config-path:
|
||||
# Point to the absolute location of redis_config.rb
|
||||
#
|
||||
PATCHES=(
|
||||
"${FILESDIR}/01-${PN}-8.7.5-fix-sendmail-config.patch"
|
||||
"${FILESDIR}/02-${PN}-9.0.0-fix-redis-config-path.patch"
|
||||
"${FILESDIR}/03-${PN}-10.2.8-database.yml.patch"
|
||||
"${FILESDIR}/04-${PN}-9.3.0-fix-check-task.patch"
|
||||
"${FILESDIR}/05-${PN}-9.0.0-replace-sys-filesystem.patch"
|
||||
"${FILESDIR}/06-${PN}-8.17.0-fix-webpack-config.patch"
|
||||
"${FILESDIR}/08-${PN}-10.4.4-general-config.patch"
|
||||
)
|
||||
|
||||
MY_NAME="gitlab"
|
||||
MY_USER="git" # should be same as in gitlab-shell
|
||||
|
||||
DEST_DIR="/opt/${MY_NAME}"
|
||||
CONF_DIR="/etc/${MY_NAME}"
|
||||
LOGS_DIR="/var/log/${MY_NAME}"
|
||||
TEMP_DIR="/var/tmp/${MY_NAME}"
|
||||
|
||||
all_ruby_unpack() {
|
||||
git-r3_fetch
|
||||
git-r3_checkout
|
||||
}
|
||||
|
||||
all_ruby_prepare() {
|
||||
# fix paths
|
||||
sed -i \
|
||||
-e "s|/home/git/gitlab/tmp|/run/${MY_NAME}|g" \
|
||||
lib/support/nginx/gitlab || die "failed to filter nginx/gitlab"
|
||||
|
||||
# modify default database settings for PostgreSQL
|
||||
sed -i -E \
|
||||
-e 's|(username:).*|\1 gitlab|' \
|
||||
-e 's|(password:).*|\1 gitlab|' \
|
||||
-e 's|(socket:).*|\1 /run/postgresql/.s.PGSQL.5432|' \
|
||||
config/database.yml.postgresql \
|
||||
|| die "failed to filter database.yml.postgresql"
|
||||
|
||||
# rename config files
|
||||
mv config/gitlab.yml.example config/gitlab.yml
|
||||
mv config/unicorn.rb.example config/unicorn.rb
|
||||
|
||||
local dbconf=config/database.yml
|
||||
if use postgres && ! use mysql; then
|
||||
mv ${dbconf}.postgresql ${dbconf}
|
||||
rm ${dbconf}.mysql
|
||||
elif use mysql && ! use postgres; then
|
||||
mv ${dbconf}.mysql ${dbconf}
|
||||
rm ${dbconf}.postgresql
|
||||
fi
|
||||
|
||||
# remove useless files
|
||||
rm -r lib/support/{deploy,init.d}
|
||||
use unicorn || rm config/unicorn.rb
|
||||
}
|
||||
|
||||
all_ruby_install() {
|
||||
local dest=${DEST_DIR}
|
||||
local conf=${CONF_DIR}
|
||||
local logs=${LOGS_DIR}
|
||||
local temp=${TEMP_DIR}
|
||||
|
||||
# prepare directories
|
||||
diropts -m750
|
||||
dodir ${logs} ${temp}
|
||||
|
||||
diropts -m755
|
||||
dodir ${conf} ${dest}/public/uploads
|
||||
|
||||
dosym ${temp} ${dest}/tmp
|
||||
dosym ${logs} ${dest}/log
|
||||
|
||||
# install configs
|
||||
insinto ${conf}
|
||||
doins -r config/*
|
||||
dosym ${conf} ${dest}/config
|
||||
|
||||
echo 'export RAILS_ENV=production' > "${D}/${dest}/.profile"
|
||||
|
||||
# remove needless dirs
|
||||
rm -Rf config tmp log
|
||||
|
||||
# install the rest files
|
||||
# using cp 'cause doins is slow
|
||||
cp -Rl * "${D}/${dest}"/
|
||||
cp -Rl .??* "${D}/${dest}"/
|
||||
|
||||
# install logrotate config
|
||||
dodir /etc/logrotate.d
|
||||
cat > "${D}/etc/logrotate.d/${MY_NAME}" <<-EOF
|
||||
${logs}/*.log {
|
||||
missingok
|
||||
delaycompress
|
||||
compress
|
||||
copytruncate
|
||||
}
|
||||
EOF
|
||||
|
||||
## Install gems via bundler ##
|
||||
|
||||
cd "${D}/${dest}"
|
||||
|
||||
local without="development test aws"
|
||||
local flag; for flag in mysql postgres unicorn kerberos; do
|
||||
without+="$(use $flag || echo ' '$flag)"
|
||||
done
|
||||
local bundle_args="--deployment ${without:+--without ${without}}"
|
||||
|
||||
use "rugged_use_system_libraries" && export RUGGED_USE_SYSTEM_LIBRARIES="YES"
|
||||
|
||||
einfo "Running bundle install ${bundle_args} ..."
|
||||
${RUBY} /usr/bin/bundle install ${bundle_args} || die "bundler failed"
|
||||
|
||||
einfo "Cleaning old gems ..."
|
||||
${RUBY} /usr/bin/bundle clean
|
||||
|
||||
# clean gems cache
|
||||
rm -Rf vendor/bundle/ruby/*/cache
|
||||
rm -Rf vendor/bundle/ruby/*/bundler/gems/charlock_holmes-dde194609b35/.git
|
||||
|
||||
## RC script ##
|
||||
|
||||
if use systemd ; then
|
||||
ewarn "Beware: systemd support has not been tested, use at your own risk!"
|
||||
systemd_newunit "${FILESDIR}/gitlab-8.13.0-sidekiq.service" "gitlab-sidekiq.service"
|
||||
systemd_dounit "${FILESDIR}/gitlab-unicorn.service"
|
||||
systemd_dounit "${FILESDIR}/gitlab-workhorse.service"
|
||||
systemd_dounit "${FILESDIR}/gitlab-mailroom.service"
|
||||
systemd_dotmpfilesd "${FILESDIR}/gitlab.conf"
|
||||
else
|
||||
local rcscript=gitlab-10.4.4-sidekiq.init
|
||||
use unicorn && rcscript=gitlab-10.4.4-unicorn.init
|
||||
|
||||
cp "${FILESDIR}/${rcscript}" "${T}" || die
|
||||
sed -i \
|
||||
-e "s|@USER@|${MY_USER}|g" \
|
||||
-e "s|@GITLAB_BASE@|${dest}|g" \
|
||||
-e "s|@LOGS_DIR@|${logs}|g" \
|
||||
"${T}/${rcscript}" \
|
||||
|| die "failed to filter ${rcscript}"
|
||||
|
||||
newinitd "${T}/${rcscript}" "${MY_NAME}"
|
||||
fi
|
||||
|
||||
# fix permissions
|
||||
fowners -R ${MY_USER}:${MY_USER} ${dest} ${temp} ${logs}
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
elog "If this is an update from a previous version, stop your GitLab"
|
||||
elog "instance and issue the following command to perform all required"
|
||||
elog "migrations:"
|
||||
elog " emerge --config \"=${CATEGORY}/${PF}\""
|
||||
elog "PLEASE NOTE: It's HIGHLY recommended to backup your database"
|
||||
elog "before running the config phase. Run these commands (as root):"
|
||||
elog
|
||||
elog " cd /opt/gitlab"
|
||||
elog " sudo -u git -H bundle exec rake gitlab:backup:create RAILS_ENV=production"
|
||||
elog
|
||||
elog "If you're using OpenRC, you can use the following command:"
|
||||
elog
|
||||
elog " /etc/init.d/gitlab backup"
|
||||
elog
|
||||
elog "If this was a fresh install, follow these steps:"
|
||||
elog
|
||||
elog "1. Configure your GitLab's settings in ${CONF_DIR}/gitlab.yml."
|
||||
elog
|
||||
elog "2. Configure your database settings in ${CONF_DIR}/database.yml"
|
||||
elog " for \"production\" environment."
|
||||
elog
|
||||
elog "3. Then you should create a database for your GitLab instance, if you"
|
||||
elog " haven't done so already."
|
||||
elog
|
||||
if use postgres; then
|
||||
elog "If you have local PostgreSQL running, just copy&run:"
|
||||
elog " su postgres"
|
||||
elog " psql -c \"CREATE ROLE gitlab PASSWORD 'gitlab' \\"
|
||||
elog " NOSUPERUSER NOCREATEDB NOCREATEROLE INHERIT LOGIN;\""
|
||||
elog " createdb -E UTF-8 -O gitlab gitlabhq_production"
|
||||
elog " Note: You should change your password to something more random..."
|
||||
elog
|
||||
fi
|
||||
elog "4. Finally execute the following command to initialize the environment:"
|
||||
elog " emerge --config \"=${CATEGORY}/${PF}\""
|
||||
elog " Note: Do not forget to start Redis server first!"
|
||||
elog
|
||||
elog "If you're running GitLab behind an SSL proxy such as nginx or Apache and"
|
||||
elog "you can't login after the upgrade, be sure to read the section about the"
|
||||
elog "verification of the CSRF token in GitLab's trouble-shooting guide at"
|
||||
elog "http://goo.gl/5XGRGv."
|
||||
if use postgres; then
|
||||
elog "Please note: As of GitLab 8.6, users of PostgreSQL need to enable the"
|
||||
elog "`pg_trgm` extension by running the following command as a PostgreSQL"
|
||||
elog "super user for *every* GitLab database:"
|
||||
elog " CREATE EXTENSION IF NOT EXISTS pg_trgm;"
|
||||
elog "For details, see the documentation at the GitLab website."
|
||||
fi
|
||||
if use mysql ; then
|
||||
ewarn "You must grant the GitLab user permissions the following on the database:"
|
||||
ewarn " mysql -u root -p -e \\"
|
||||
ewarn " \"GRANT TRIGGER ON \`gitlab\`.* TO 'gitlab'@'localhost';\""
|
||||
ewarn "PLEASE also read this document about needed migrations on MySQL:"
|
||||
ewarn
|
||||
ewarn "https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/install/database_mysql.md"
|
||||
ewarn
|
||||
ewarn "Failing to follow those instructions may make the config phase fail!"
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_config() {
|
||||
einfo "Checking configuration files"
|
||||
|
||||
if [ ! -r "${CONF_DIR}/database.yml" ]; then
|
||||
eerror "Copy ${CONF_DIR}/database.yml.* to"
|
||||
eerror "${CONF_DIR}/database.yml and edit this file in order to configure your"
|
||||
eerror "database settings for \"production\" environment."
|
||||
die
|
||||
fi
|
||||
|
||||
local email_from="$(ryaml ${CONF_DIR}/gitlab.yml production gitlab email_from)"
|
||||
local git_home="$(egethome ${MY_USER})"
|
||||
|
||||
# configure Git global settings
|
||||
if [ ! -e "${git_home}/.gitconfig" ]; then
|
||||
einfo "Setting git user"
|
||||
su -l ${MY_USER} -c "
|
||||
git config --global user.email '${email_from}';
|
||||
git config --global user.name 'GitLab'" \
|
||||
|| die "failed to setup git name and email"
|
||||
fi
|
||||
|
||||
su -l ${MY_USER} -c "git config --global repack.writeBitmaps true"
|
||||
|
||||
# determine whether this is an update or a fresh install. we do this by
|
||||
# checking whether the ${DEST_DIR}/.git directory exists or not
|
||||
#
|
||||
if [ -d "${DEST_DIR}/.git" ]; then
|
||||
local update=true
|
||||
else
|
||||
local update=false
|
||||
fi
|
||||
|
||||
if use mysql ; then
|
||||
ewarn "Please only proceed if you've read and understood the following page:"
|
||||
ewarn "https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/install/database_mysql.md"
|
||||
if [ "${update}" = 'true' ]; then
|
||||
ewarn "Failing to follow those instructions may cause the upgrade to fail"
|
||||
fi
|
||||
ewarn
|
||||
fi
|
||||
|
||||
ewarn "Now is a good time to create a backup of your Gitlab installation, just in case."
|
||||
ewarn "To do so, abort this configuration with Ctrl+C and type the following commands:"
|
||||
ewarn " cd /opt/gitlab"
|
||||
ewarn " sudo -u git -H bundle exec rake gitlab:backup:create RAILS_ENV=production"
|
||||
ewarn
|
||||
ewarn "Press Ctrl+C to abort now or any key to continue."
|
||||
read
|
||||
|
||||
## Initialize app ##
|
||||
|
||||
local RAILS_ENV="production"
|
||||
local RUBY=${RUBY:-/usr/bin/ruby}
|
||||
local BUNDLE="${RUBY} /usr/bin/bundle"
|
||||
|
||||
if [ "${update}" = 'true' ]; then
|
||||
einfo "Migrating database ..."
|
||||
exec_rake db:migrate
|
||||
|
||||
einfo "Compiling GetText PO files ..."
|
||||
exec_rake gettext:compile
|
||||
|
||||
# https://github.com/gitlabhq/gitlabhq/issues/5311#issuecomment-31656496
|
||||
einfo "Migrating iids ..."
|
||||
exec_rake migrate_iids
|
||||
|
||||
einfo "Installing npm modules ..."
|
||||
exec_rake yarn:install
|
||||
|
||||
einfo "Cleaning old precompiled assets ..."
|
||||
exec_rake gitlab:assets:clean
|
||||
|
||||
einfo "Cleaning cache ..."
|
||||
exec_rake cache:clear
|
||||
else
|
||||
# create dummy git repo as workaround for
|
||||
# https://github.com/bundler/bundler/issues/2039
|
||||
einfo "Initializing dummy git repository to avoid false errors from bundler"
|
||||
su -l ${MY_USER} -c "
|
||||
cd ${DEST_DIR}
|
||||
git init
|
||||
git add README.md
|
||||
git commit -m 'Dummy repository'" >/dev/null
|
||||
|
||||
einfo "Initializing database ..."
|
||||
exec_rake gitlab:setup
|
||||
|
||||
einfo "Compiling GetText PO files ..."
|
||||
exec_rake gettext:pack
|
||||
exec_rake gettext:po_to_json
|
||||
|
||||
einfo "Installing npm modules ..."
|
||||
exec_rake yarn:install
|
||||
fi
|
||||
|
||||
einfo "Precompiling assests ..."
|
||||
exec_rake gitlab:assets:compile
|
||||
|
||||
if [ "${update}" = 'true' ]; then
|
||||
ewarn
|
||||
ewarn "This configuration script runs only common migration tasks."
|
||||
ewarn "Please read guides on"
|
||||
ewarn " https://github.com/gitlabhq/gitlabhq/blob/master/doc/update/"
|
||||
ewarn "for any additional migration tasks specific to your previous GitLab"
|
||||
ewarn "version."
|
||||
fi
|
||||
elog
|
||||
elog "If you want to make sure that the install/upgrade was successful, start"
|
||||
elog "Gitlab now and then run these commands (as root):"
|
||||
elog
|
||||
elog " cd /opt/gitlab"
|
||||
elog " sudo -u git -H bundle exec rake gitlab:env:info RAILS_ENV=production"
|
||||
elog " sudo -u git -H bundle exec rake gitlab:check RAILS_ENV=production"
|
||||
elog
|
||||
if ! use systemd ; then
|
||||
elog "You may also run"
|
||||
elog " /etc/init.d/gitlab check"
|
||||
elog " for convenience."
|
||||
fi
|
||||
}
|
||||
|
||||
ryaml() {
|
||||
ruby -ryaml -e 'puts ARGV[1..-1].inject(YAML.load(File.read(ARGV[0]))) {|acc, key| acc[key] }' "$@"
|
||||
}
|
||||
|
||||
exec_rake() {
|
||||
local command="${BUNDLE} exec rake $@ RAILS_ENV=${RAILS_ENV} NODE_ENV=${RAILS_ENV}"
|
||||
|
||||
echo " ${command}"
|
||||
su -l ${MY_USER} -c "
|
||||
export LANG=en_US.UTF-8; export LC_ALL=en_US.UTF-8; export NODE_PATH=${DEST_DIR}/node_modules
|
||||
cd ${DEST_DIR}
|
||||
${command}" \
|
||||
|| die "failed to run rake $@"
|
||||
}
|
|
@ -1,430 +0,0 @@
|
|||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="6"
|
||||
|
||||
# Maintainer notes:
|
||||
# - This ebuild uses Bundler to download and install all gems in deployment mode
|
||||
# (i.e. into isolated directory inside application). That's not Gentoo way how
|
||||
# it should be done, but GitLab has too many dependencies that it will be too
|
||||
# difficult to maintain them via ebuilds.
|
||||
#
|
||||
|
||||
USE_RUBY="ruby23"
|
||||
|
||||
EGIT_REPO_URI="https://gitlab.com/gitlab-org/${PN}.git"
|
||||
EGIT_COMMIT="v${PV}"
|
||||
EGIT_CHECKOUT_DIR="${WORKDIR}/all"
|
||||
|
||||
inherit eutils git-r3 ruby-ng user systemd
|
||||
|
||||
GITLAB_GITALY_VERSION="0.66.0"
|
||||
GITLAB_PAGES_VERSION="0.6.1"
|
||||
GITLAB_SHELL_VERSION="5.11.0"
|
||||
GITLAB_WORKHORSE_VERSION="3.3.1"
|
||||
|
||||
DESCRIPTION="GitLab is a free project and repository management application"
|
||||
HOMEPAGE="https://about.gitlab.com/"
|
||||
|
||||
RESTRICT="mirror"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86 ~arm64"
|
||||
IUSE="kerberos mysql +postgres +unicorn systemd pages rugged_use_system_libraries"
|
||||
|
||||
## Gems dependencies:
|
||||
# charlock_holmes dev-libs/icu
|
||||
# grape, capybara dev-libs/libxml2, dev-libs/libxslt
|
||||
# rugged dev-util/cmake, virtual/pkgconfig
|
||||
# json dev-util/ragel
|
||||
# pygments.rb python 2.7+
|
||||
# execjs net-libs/nodejs, or any other JS runtime
|
||||
# pg dev-db/postgresql
|
||||
# mysql virtual/mysql
|
||||
#
|
||||
GEMS_DEPEND="
|
||||
dev-libs/icu
|
||||
dev-libs/libxml2
|
||||
dev-libs/libxslt
|
||||
dev-libs/re2
|
||||
dev-util/ragel
|
||||
>=net-libs/nodejs-6.0.0
|
||||
>=sys-apps/yarn-0.17.0
|
||||
postgres? ( >=dev-db/postgresql-9.6:* )
|
||||
mysql? ( virtual/mysql )
|
||||
kerberos? ( virtual/krb5 )"
|
||||
CDEPEND="
|
||||
dev-util/cmake
|
||||
virtual/pkgconfig"
|
||||
COMMON_DEPEND="
|
||||
${GEMS_DEPEND}
|
||||
~dev-vcs/gitlab-shell-${GITLAB_SHELL_VERSION}
|
||||
>=dev-vcs/git-2.8.4
|
||||
~www-servers/gitlab-workhorse-${GITLAB_WORKHORSE_VERSION}
|
||||
kerberos? ( !app-crypt/heimdal )
|
||||
rugged_use_system_libraries? ( net-libs/http-parser dev-libs/libgit2:0/26 )
|
||||
pages? ( ~www-servers/gitlab-pages-${GITLAB_PAGES_VERSION} )
|
||||
~www-servers/gitlab-gitaly-${GITLAB_GITALY_VERSION}"
|
||||
DEPEND="
|
||||
${CDEPEND}
|
||||
${COMMON_DEPEND}"
|
||||
RDEPEND="
|
||||
${COMMON_DEPEND}
|
||||
>=dev-db/redis-2.8
|
||||
virtual/mta
|
||||
systemd? ( sys-apps/systemd:0= )"
|
||||
ruby_add_bdepend "
|
||||
virtual/rubygems
|
||||
>=dev-ruby/bundler-1.15.4"
|
||||
|
||||
#
|
||||
# fix-sendmail-config:
|
||||
# Fix default settings to work with ssmtp that doesn't know '-t' argument.
|
||||
# fix-redis-config-path:
|
||||
# Point to the absolute location of redis_config.rb
|
||||
#
|
||||
PATCHES=(
|
||||
"${FILESDIR}/01-${PN}-8.7.5-fix-sendmail-config.patch"
|
||||
"${FILESDIR}/02-${PN}-9.0.0-fix-redis-config-path.patch"
|
||||
"${FILESDIR}/03-${PN}-10.2.8-database.yml.patch"
|
||||
"${FILESDIR}/04-${PN}-9.3.0-fix-check-task.patch"
|
||||
"${FILESDIR}/05-${PN}-9.0.0-replace-sys-filesystem.patch"
|
||||
"${FILESDIR}/06-${PN}-8.17.0-fix-webpack-config.patch"
|
||||
"${FILESDIR}/08-${PN}-10.4.4-general-config.patch"
|
||||
)
|
||||
|
||||
MY_NAME="gitlab"
|
||||
MY_USER="git" # should be same as in gitlab-shell
|
||||
|
||||
DEST_DIR="/opt/${MY_NAME}"
|
||||
CONF_DIR="/etc/${MY_NAME}"
|
||||
LOGS_DIR="/var/log/${MY_NAME}"
|
||||
TEMP_DIR="/var/tmp/${MY_NAME}"
|
||||
|
||||
all_ruby_unpack() {
|
||||
git-r3_fetch
|
||||
git-r3_checkout
|
||||
}
|
||||
|
||||
all_ruby_prepare() {
|
||||
# fix paths
|
||||
sed -i \
|
||||
-e "s|/home/git/gitlab/tmp|/run/${MY_NAME}|g" \
|
||||
lib/support/nginx/gitlab || die "failed to filter nginx/gitlab"
|
||||
|
||||
# modify default database settings for PostgreSQL
|
||||
sed -i -E \
|
||||
-e 's|(username:).*|\1 gitlab|' \
|
||||
-e 's|(password:).*|\1 gitlab|' \
|
||||
-e 's|(socket:).*|\1 /run/postgresql/.s.PGSQL.5432|' \
|
||||
config/database.yml.postgresql \
|
||||
|| die "failed to filter database.yml.postgresql"
|
||||
|
||||
# rename config files
|
||||
mv config/gitlab.yml.example config/gitlab.yml
|
||||
mv config/unicorn.rb.example config/unicorn.rb
|
||||
|
||||
local dbconf=config/database.yml
|
||||
if use postgres && ! use mysql; then
|
||||
mv ${dbconf}.postgresql ${dbconf}
|
||||
rm ${dbconf}.mysql
|
||||
elif use mysql && ! use postgres; then
|
||||
mv ${dbconf}.mysql ${dbconf}
|
||||
rm ${dbconf}.postgresql
|
||||
fi
|
||||
|
||||
# remove useless files
|
||||
rm -r lib/support/{deploy,init.d}
|
||||
use unicorn || rm config/unicorn.rb
|
||||
}
|
||||
|
||||
all_ruby_install() {
|
||||
local dest=${DEST_DIR}
|
||||
local conf=${CONF_DIR}
|
||||
local logs=${LOGS_DIR}
|
||||
local temp=${TEMP_DIR}
|
||||
|
||||
# prepare directories
|
||||
diropts -m750
|
||||
dodir ${logs} ${temp}
|
||||
|
||||
diropts -m755
|
||||
dodir ${conf} ${dest}/public/uploads
|
||||
|
||||
dosym ${temp} ${dest}/tmp
|
||||
dosym ${logs} ${dest}/log
|
||||
|
||||
# install configs
|
||||
insinto ${conf}
|
||||
doins -r config/*
|
||||
dosym ${conf} ${dest}/config
|
||||
|
||||
echo 'export RAILS_ENV=production' > "${D}/${dest}/.profile"
|
||||
|
||||
# remove needless dirs
|
||||
rm -Rf config tmp log
|
||||
|
||||
# install the rest files
|
||||
# using cp 'cause doins is slow
|
||||
cp -Rl * "${D}/${dest}"/
|
||||
cp -Rl .??* "${D}/${dest}"/
|
||||
|
||||
# install logrotate config
|
||||
dodir /etc/logrotate.d
|
||||
cat > "${D}/etc/logrotate.d/${MY_NAME}" <<-EOF
|
||||
${logs}/*.log {
|
||||
missingok
|
||||
delaycompress
|
||||
compress
|
||||
copytruncate
|
||||
}
|
||||
EOF
|
||||
|
||||
## Install gems via bundler ##
|
||||
|
||||
cd "${D}/${dest}"
|
||||
|
||||
local without="development test aws"
|
||||
local flag; for flag in mysql postgres unicorn kerberos; do
|
||||
without+="$(use $flag || echo ' '$flag)"
|
||||
done
|
||||
local bundle_args="--deployment ${without:+--without ${without}}"
|
||||
|
||||
use "rugged_use_system_libraries" && export RUGGED_USE_SYSTEM_LIBRARIES="YES"
|
||||
|
||||
einfo "Running bundle install ${bundle_args} ..."
|
||||
${RUBY} /usr/bin/bundle install ${bundle_args} || die "bundler failed"
|
||||
|
||||
einfo "Cleaning old gems ..."
|
||||
${RUBY} /usr/bin/bundle clean
|
||||
|
||||
# clean gems cache
|
||||
rm -Rf vendor/bundle/ruby/*/cache
|
||||
rm -Rf vendor/bundle/ruby/*/bundler/gems/charlock_holmes-dde194609b35/.git
|
||||
|
||||
## RC script ##
|
||||
|
||||
if use systemd ; then
|
||||
ewarn "Beware: systemd support has not been tested, use at your own risk!"
|
||||
systemd_newunit "${FILESDIR}/gitlab-8.13.0-sidekiq.service" "gitlab-sidekiq.service"
|
||||
systemd_dounit "${FILESDIR}/gitlab-unicorn.service"
|
||||
systemd_dounit "${FILESDIR}/gitlab-workhorse.service"
|
||||
systemd_dounit "${FILESDIR}/gitlab-mailroom.service"
|
||||
systemd_dotmpfilesd "${FILESDIR}/gitlab.conf"
|
||||
else
|
||||
local rcscript=gitlab-10.4.4-sidekiq.init
|
||||
use unicorn && rcscript=gitlab-10.4.4-unicorn.init
|
||||
|
||||
cp "${FILESDIR}/${rcscript}" "${T}" || die
|
||||
sed -i \
|
||||
-e "s|@USER@|${MY_USER}|g" \
|
||||
-e "s|@GITLAB_BASE@|${dest}|g" \
|
||||
-e "s|@LOGS_DIR@|${logs}|g" \
|
||||
"${T}/${rcscript}" \
|
||||
|| die "failed to filter ${rcscript}"
|
||||
|
||||
newinitd "${T}/${rcscript}" "${MY_NAME}"
|
||||
fi
|
||||
|
||||
# fix permissions
|
||||
fowners -R ${MY_USER}:${MY_USER} ${dest} ${temp} ${logs}
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
elog "If this is an update from a previous version, stop your GitLab"
|
||||
elog "instance and issue the following command to perform all required"
|
||||
elog "migrations:"
|
||||
elog " emerge --config \"=${CATEGORY}/${PF}\""
|
||||
elog "PLEASE NOTE: It's HIGHLY recommended to backup your database"
|
||||
elog "before running the config phase. Run these commands (as root):"
|
||||
elog
|
||||
elog " cd /opt/gitlab"
|
||||
elog " sudo -u git -H bundle exec rake gitlab:backup:create RAILS_ENV=production"
|
||||
elog
|
||||
elog "If you're using OpenRC, you can use the following command:"
|
||||
elog
|
||||
elog " /etc/init.d/gitlab backup"
|
||||
elog
|
||||
elog "If this was a fresh install, follow these steps:"
|
||||
elog
|
||||
elog "1. Configure your GitLab's settings in ${CONF_DIR}/gitlab.yml."
|
||||
elog
|
||||
elog "2. Configure your database settings in ${CONF_DIR}/database.yml"
|
||||
elog " for \"production\" environment."
|
||||
elog
|
||||
elog "3. Then you should create a database for your GitLab instance, if you"
|
||||
elog " haven't done so already."
|
||||
elog
|
||||
if use postgres; then
|
||||
elog "If you have local PostgreSQL running, just copy&run:"
|
||||
elog " su postgres"
|
||||
elog " psql -c \"CREATE ROLE gitlab PASSWORD 'gitlab' \\"
|
||||
elog " NOSUPERUSER NOCREATEDB NOCREATEROLE INHERIT LOGIN;\""
|
||||
elog " createdb -E UTF-8 -O gitlab gitlabhq_production"
|
||||
elog " Note: You should change your password to something more random..."
|
||||
elog
|
||||
fi
|
||||
elog "4. Finally execute the following command to initialize the environment:"
|
||||
elog " emerge --config \"=${CATEGORY}/${PF}\""
|
||||
elog " Note: Do not forget to start Redis server first!"
|
||||
elog
|
||||
elog "If you're running GitLab behind an SSL proxy such as nginx or Apache and"
|
||||
elog "you can't login after the upgrade, be sure to read the section about the"
|
||||
elog "verification of the CSRF token in GitLab's trouble-shooting guide at"
|
||||
elog "http://goo.gl/5XGRGv."
|
||||
if use postgres; then
|
||||
elog "Please note: As of GitLab 8.6, users of PostgreSQL need to enable the"
|
||||
elog "`pg_trgm` extension by running the following command as a PostgreSQL"
|
||||
elog "super user for *every* GitLab database:"
|
||||
elog " CREATE EXTENSION IF NOT EXISTS pg_trgm;"
|
||||
elog "For details, see the documentation at the GitLab website."
|
||||
fi
|
||||
if use mysql ; then
|
||||
ewarn "You must grant the GitLab user permissions the following on the database:"
|
||||
ewarn " mysql -u root -p -e \\"
|
||||
ewarn " \"GRANT TRIGGER ON \`gitlab\`.* TO 'gitlab'@'localhost';\""
|
||||
ewarn "PLEASE also read this document about needed migrations on MySQL:"
|
||||
ewarn
|
||||
ewarn "https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/install/database_mysql.md"
|
||||
ewarn
|
||||
ewarn "Failing to follow those instructions may make the config phase fail!"
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_config() {
|
||||
einfo "Checking configuration files"
|
||||
|
||||
if [ ! -r "${CONF_DIR}/database.yml" ]; then
|
||||
eerror "Copy ${CONF_DIR}/database.yml.* to"
|
||||
eerror "${CONF_DIR}/database.yml and edit this file in order to configure your"
|
||||
eerror "database settings for \"production\" environment."
|
||||
die
|
||||
fi
|
||||
|
||||
local email_from="$(ryaml ${CONF_DIR}/gitlab.yml production gitlab email_from)"
|
||||
local git_home="$(egethome ${MY_USER})"
|
||||
|
||||
# configure Git global settings
|
||||
if [ ! -e "${git_home}/.gitconfig" ]; then
|
||||
einfo "Setting git user"
|
||||
su -l ${MY_USER} -c "
|
||||
git config --global user.email '${email_from}';
|
||||
git config --global user.name 'GitLab'" \
|
||||
|| die "failed to setup git name and email"
|
||||
fi
|
||||
|
||||
su -l ${MY_USER} -c "git config --global repack.writeBitmaps true"
|
||||
|
||||
# determine whether this is an update or a fresh install. we do this by
|
||||
# checking whether the ${DEST_DIR}/.git directory exists or not
|
||||
#
|
||||
if [ -d "${DEST_DIR}/.git" ]; then
|
||||
local update=true
|
||||
else
|
||||
local update=false
|
||||
fi
|
||||
|
||||
if use mysql ; then
|
||||
ewarn "Please only proceed if you've read and understood the following page:"
|
||||
ewarn "https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/install/database_mysql.md"
|
||||
if [ "${update}" = 'true' ]; then
|
||||
ewarn "Failing to follow those instructions may cause the upgrade to fail"
|
||||
fi
|
||||
ewarn
|
||||
fi
|
||||
|
||||
ewarn "Now is a good time to create a backup of your Gitlab installation, just in case."
|
||||
ewarn "To do so, abort this configuration with Ctrl+C and type the following commands:"
|
||||
ewarn " cd /opt/gitlab"
|
||||
ewarn " sudo -u git -H bundle exec rake gitlab:backup:create RAILS_ENV=production"
|
||||
ewarn
|
||||
ewarn "Press Ctrl+C to abort now or any key to continue."
|
||||
read
|
||||
|
||||
## Initialize app ##
|
||||
|
||||
local RAILS_ENV="production"
|
||||
local RUBY=${RUBY:-/usr/bin/ruby}
|
||||
local BUNDLE="${RUBY} /usr/bin/bundle"
|
||||
|
||||
if [ "${update}" = 'true' ]; then
|
||||
einfo "Migrating database ..."
|
||||
exec_rake db:migrate
|
||||
|
||||
einfo "Compiling GetText PO files ..."
|
||||
exec_rake gettext:compile
|
||||
|
||||
# https://github.com/gitlabhq/gitlabhq/issues/5311#issuecomment-31656496
|
||||
einfo "Migrating iids ..."
|
||||
exec_rake migrate_iids
|
||||
|
||||
einfo "Installing npm modules ..."
|
||||
exec_rake yarn:install
|
||||
|
||||
einfo "Cleaning old precompiled assets ..."
|
||||
exec_rake gitlab:assets:clean
|
||||
|
||||
einfo "Cleaning cache ..."
|
||||
exec_rake cache:clear
|
||||
else
|
||||
# create dummy git repo as workaround for
|
||||
# https://github.com/bundler/bundler/issues/2039
|
||||
einfo "Initializing dummy git repository to avoid false errors from bundler"
|
||||
su -l ${MY_USER} -c "
|
||||
cd ${DEST_DIR}
|
||||
git init
|
||||
git add README.md
|
||||
git commit -m 'Dummy repository'" >/dev/null
|
||||
|
||||
einfo "Initializing database ..."
|
||||
exec_rake gitlab:setup
|
||||
|
||||
einfo "Compiling GetText PO files ..."
|
||||
exec_rake gettext:pack
|
||||
exec_rake gettext:po_to_json
|
||||
|
||||
einfo "Installing npm modules ..."
|
||||
exec_rake yarn:install
|
||||
fi
|
||||
|
||||
einfo "Precompiling assests ..."
|
||||
exec_rake gitlab:assets:compile
|
||||
|
||||
if [ "${update}" = 'true' ]; then
|
||||
ewarn
|
||||
ewarn "This configuration script runs only common migration tasks."
|
||||
ewarn "Please read guides on"
|
||||
ewarn " https://github.com/gitlabhq/gitlabhq/blob/master/doc/update/"
|
||||
ewarn "for any additional migration tasks specific to your previous GitLab"
|
||||
ewarn "version."
|
||||
fi
|
||||
elog
|
||||
elog "If you want to make sure that the install/upgrade was successful, start"
|
||||
elog "Gitlab now and then run these commands (as root):"
|
||||
elog
|
||||
elog " cd /opt/gitlab"
|
||||
elog " sudo -u git -H bundle exec rake gitlab:env:info RAILS_ENV=production"
|
||||
elog " sudo -u git -H bundle exec rake gitlab:check RAILS_ENV=production"
|
||||
elog
|
||||
if ! use systemd ; then
|
||||
elog "You may also run"
|
||||
elog " /etc/init.d/gitlab check"
|
||||
elog " for convenience."
|
||||
fi
|
||||
}
|
||||
|
||||
ryaml() {
|
||||
ruby -ryaml -e 'puts ARGV[1..-1].inject(YAML.load(File.read(ARGV[0]))) {|acc, key| acc[key] }' "$@"
|
||||
}
|
||||
|
||||
exec_rake() {
|
||||
local command="${BUNDLE} exec rake $@ RAILS_ENV=${RAILS_ENV} NODE_ENV=${RAILS_ENV}"
|
||||
|
||||
echo " ${command}"
|
||||
su -l ${MY_USER} -c "
|
||||
export LANG=en_US.UTF-8; export LC_ALL=en_US.UTF-8; export NODE_PATH=${DEST_DIR}/node_modules
|
||||
cd ${DEST_DIR}
|
||||
${command}" \
|
||||
|| die "failed to run rake $@"
|
||||
}
|
|
@ -1,430 +0,0 @@
|
|||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="6"
|
||||
|
||||
# Maintainer notes:
|
||||
# - This ebuild uses Bundler to download and install all gems in deployment mode
|
||||
# (i.e. into isolated directory inside application). That's not Gentoo way how
|
||||
# it should be done, but GitLab has too many dependencies that it will be too
|
||||
# difficult to maintain them via ebuilds.
|
||||
#
|
||||
|
||||
USE_RUBY="ruby23"
|
||||
|
||||
EGIT_REPO_URI="https://gitlab.com/gitlab-org/${PN}.git"
|
||||
EGIT_COMMIT="v${PV}"
|
||||
EGIT_CHECKOUT_DIR="${WORKDIR}/all"
|
||||
|
||||
inherit eutils git-r3 ruby-ng user systemd
|
||||
|
||||
GITLAB_GITALY_VERSION="0.81.0"
|
||||
GITLAB_PAGES_VERSION="0.6.1"
|
||||
GITLAB_SHELL_VERSION="6.0.3"
|
||||
GITLAB_WORKHORSE_VERSION="3.6.0"
|
||||
|
||||
DESCRIPTION="GitLab is a free project and repository management application"
|
||||
HOMEPAGE="https://about.gitlab.com/"
|
||||
|
||||
RESTRICT="mirror"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86 ~arm64"
|
||||
IUSE="kerberos mysql +postgres +unicorn systemd pages rugged_use_system_libraries"
|
||||
|
||||
## Gems dependencies:
|
||||
# charlock_holmes dev-libs/icu
|
||||
# grape, capybara dev-libs/libxml2, dev-libs/libxslt
|
||||
# rugged dev-util/cmake, virtual/pkgconfig
|
||||
# json dev-util/ragel
|
||||
# pygments.rb python 2.7+
|
||||
# execjs net-libs/nodejs, or any other JS runtime
|
||||
# pg dev-db/postgresql
|
||||
# mysql virtual/mysql
|
||||
#
|
||||
GEMS_DEPEND="
|
||||
dev-libs/icu
|
||||
dev-libs/libxml2
|
||||
dev-libs/libxslt
|
||||
dev-libs/re2
|
||||
dev-util/ragel
|
||||
>=net-libs/nodejs-6.0.0
|
||||
>=sys-apps/yarn-0.17.0
|
||||
postgres? ( >=dev-db/postgresql-9.6:* )
|
||||
mysql? ( virtual/mysql )
|
||||
kerberos? ( virtual/krb5 )"
|
||||
CDEPEND="
|
||||
dev-util/cmake
|
||||
virtual/pkgconfig"
|
||||
COMMON_DEPEND="
|
||||
${GEMS_DEPEND}
|
||||
~dev-vcs/gitlab-shell-${GITLAB_SHELL_VERSION}
|
||||
>=dev-vcs/git-2.8.4
|
||||
~www-servers/gitlab-workhorse-${GITLAB_WORKHORSE_VERSION}
|
||||
kerberos? ( !app-crypt/heimdal )
|
||||
rugged_use_system_libraries? ( net-libs/http-parser dev-libs/libgit2:0/26 )
|
||||
pages? ( ~www-servers/gitlab-pages-${GITLAB_PAGES_VERSION} )
|
||||
~www-servers/gitlab-gitaly-${GITLAB_GITALY_VERSION}"
|
||||
DEPEND="
|
||||
${CDEPEND}
|
||||
${COMMON_DEPEND}"
|
||||
RDEPEND="
|
||||
${COMMON_DEPEND}
|
||||
>=dev-db/redis-2.8
|
||||
virtual/mta
|
||||
systemd? ( sys-apps/systemd:0= )"
|
||||
ruby_add_bdepend "
|
||||
virtual/rubygems
|
||||
>=dev-ruby/bundler-1.15.4"
|
||||
|
||||
#
|
||||
# fix-sendmail-config:
|
||||
# Fix default settings to work with ssmtp that doesn't know '-t' argument.
|
||||
# fix-redis-config-path:
|
||||
# Point to the absolute location of redis_config.rb
|
||||
#
|
||||
PATCHES=(
|
||||
"${FILESDIR}/01-${PN}-8.7.5-fix-sendmail-config.patch"
|
||||
"${FILESDIR}/02-${PN}-9.0.0-fix-redis-config-path.patch"
|
||||
"${FILESDIR}/03-${PN}-10.2.8-database.yml.patch"
|
||||
"${FILESDIR}/04-${PN}-9.3.0-fix-check-task.patch"
|
||||
"${FILESDIR}/05-${PN}-9.0.0-replace-sys-filesystem.patch"
|
||||
"${FILESDIR}/06-${PN}-8.17.0-fix-webpack-config.patch"
|
||||
"${FILESDIR}/08-${PN}-10.4.4-general-config.patch"
|
||||
)
|
||||
|
||||
MY_NAME="gitlab"
|
||||
MY_USER="git" # should be same as in gitlab-shell
|
||||
|
||||
DEST_DIR="/opt/${MY_NAME}"
|
||||
CONF_DIR="/etc/${MY_NAME}"
|
||||
LOGS_DIR="/var/log/${MY_NAME}"
|
||||
TEMP_DIR="/var/tmp/${MY_NAME}"
|
||||
|
||||
all_ruby_unpack() {
|
||||
git-r3_fetch
|
||||
git-r3_checkout
|
||||
}
|
||||
|
||||
all_ruby_prepare() {
|
||||
# fix paths
|
||||
sed -i \
|
||||
-e "s|/home/git/gitlab/tmp|/run/${MY_NAME}|g" \
|
||||
lib/support/nginx/gitlab || die "failed to filter nginx/gitlab"
|
||||
|
||||
# modify default database settings for PostgreSQL
|
||||
sed -i -E \
|
||||
-e 's|(username:).*|\1 gitlab|' \
|
||||
-e 's|(password:).*|\1 gitlab|' \
|
||||
-e 's|(socket:).*|\1 /run/postgresql/.s.PGSQL.5432|' \
|
||||
config/database.yml.postgresql \
|
||||
|| die "failed to filter database.yml.postgresql"
|
||||
|
||||
# rename config files
|
||||
mv config/gitlab.yml.example config/gitlab.yml
|
||||
mv config/unicorn.rb.example config/unicorn.rb
|
||||
|
||||
local dbconf=config/database.yml
|
||||
if use postgres && ! use mysql; then
|
||||
mv ${dbconf}.postgresql ${dbconf}
|
||||
rm ${dbconf}.mysql
|
||||
elif use mysql && ! use postgres; then
|
||||
mv ${dbconf}.mysql ${dbconf}
|
||||
rm ${dbconf}.postgresql
|
||||
fi
|
||||
|
||||
# remove useless files
|
||||
rm -r lib/support/{deploy,init.d}
|
||||
use unicorn || rm config/unicorn.rb
|
||||
}
|
||||
|
||||
all_ruby_install() {
|
||||
local dest=${DEST_DIR}
|
||||
local conf=${CONF_DIR}
|
||||
local logs=${LOGS_DIR}
|
||||
local temp=${TEMP_DIR}
|
||||
|
||||
# prepare directories
|
||||
diropts -m750
|
||||
dodir ${logs} ${temp}
|
||||
|
||||
diropts -m755
|
||||
dodir ${conf} ${dest}/public/uploads
|
||||
|
||||
dosym ${temp} ${dest}/tmp
|
||||
dosym ${logs} ${dest}/log
|
||||
|
||||
# install configs
|
||||
insinto ${conf}
|
||||
doins -r config/*
|
||||
dosym ${conf} ${dest}/config
|
||||
|
||||
echo 'export RAILS_ENV=production' > "${D}/${dest}/.profile"
|
||||
|
||||
# remove needless dirs
|
||||
rm -Rf config tmp log
|
||||
|
||||
# install the rest files
|
||||
# using cp 'cause doins is slow
|
||||
cp -Rl * "${D}/${dest}"/
|
||||
cp -Rl .??* "${D}/${dest}"/
|
||||
|
||||
# install logrotate config
|
||||
dodir /etc/logrotate.d
|
||||
cat > "${D}/etc/logrotate.d/${MY_NAME}" <<-EOF
|
||||
${logs}/*.log {
|
||||
missingok
|
||||
delaycompress
|
||||
compress
|
||||
copytruncate
|
||||
}
|
||||
EOF
|
||||
|
||||
## Install gems via bundler ##
|
||||
|
||||
cd "${D}/${dest}"
|
||||
|
||||
local without="development test aws"
|
||||
local flag; for flag in mysql postgres unicorn kerberos; do
|
||||
without+="$(use $flag || echo ' '$flag)"
|
||||
done
|
||||
local bundle_args="--deployment ${without:+--without ${without}}"
|
||||
|
||||
use "rugged_use_system_libraries" && export RUGGED_USE_SYSTEM_LIBRARIES="YES"
|
||||
|
||||
einfo "Running bundle install ${bundle_args} ..."
|
||||
${RUBY} /usr/bin/bundle install ${bundle_args} || die "bundler failed"
|
||||
|
||||
einfo "Cleaning old gems ..."
|
||||
${RUBY} /usr/bin/bundle clean
|
||||
|
||||
# clean gems cache
|
||||
rm -Rf vendor/bundle/ruby/*/cache
|
||||
rm -Rf vendor/bundle/ruby/*/bundler/gems/charlock_holmes-dde194609b35/.git
|
||||
|
||||
## RC script ##
|
||||
|
||||
if use systemd ; then
|
||||
ewarn "Beware: systemd support has not been tested, use at your own risk!"
|
||||
systemd_newunit "${FILESDIR}/gitlab-8.13.0-sidekiq.service" "gitlab-sidekiq.service"
|
||||
systemd_dounit "${FILESDIR}/gitlab-unicorn.service"
|
||||
systemd_dounit "${FILESDIR}/gitlab-workhorse.service"
|
||||
systemd_dounit "${FILESDIR}/gitlab-mailroom.service"
|
||||
systemd_dotmpfilesd "${FILESDIR}/gitlab.conf"
|
||||
else
|
||||
local rcscript=gitlab-10.4.4-sidekiq.init
|
||||
use unicorn && rcscript=gitlab-10.4.4-unicorn.init
|
||||
|
||||
cp "${FILESDIR}/${rcscript}" "${T}" || die
|
||||
sed -i \
|
||||
-e "s|@USER@|${MY_USER}|g" \
|
||||
-e "s|@GITLAB_BASE@|${dest}|g" \
|
||||
-e "s|@LOGS_DIR@|${logs}|g" \
|
||||
"${T}/${rcscript}" \
|
||||
|| die "failed to filter ${rcscript}"
|
||||
|
||||
newinitd "${T}/${rcscript}" "${MY_NAME}"
|
||||
fi
|
||||
|
||||
# fix permissions
|
||||
fowners -R ${MY_USER}:${MY_USER} ${dest} ${temp} ${logs}
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
elog "If this is an update from a previous version, stop your GitLab"
|
||||
elog "instance and issue the following command to perform all required"
|
||||
elog "migrations:"
|
||||
elog " emerge --config \"=${CATEGORY}/${PF}\""
|
||||
elog "PLEASE NOTE: It's HIGHLY recommended to backup your database"
|
||||
elog "before running the config phase. Run these commands (as root):"
|
||||
elog
|
||||
elog " cd /opt/gitlab"
|
||||
elog " sudo -u git -H bundle exec rake gitlab:backup:create RAILS_ENV=production"
|
||||
elog
|
||||
elog "If you're using OpenRC, you can use the following command:"
|
||||
elog
|
||||
elog " /etc/init.d/gitlab backup"
|
||||
elog
|
||||
elog "If this was a fresh install, follow these steps:"
|
||||
elog
|
||||
elog "1. Configure your GitLab's settings in ${CONF_DIR}/gitlab.yml."
|
||||
elog
|
||||
elog "2. Configure your database settings in ${CONF_DIR}/database.yml"
|
||||
elog " for \"production\" environment."
|
||||
elog
|
||||
elog "3. Then you should create a database for your GitLab instance, if you"
|
||||
elog " haven't done so already."
|
||||
elog
|
||||
if use postgres; then
|
||||
elog "If you have local PostgreSQL running, just copy&run:"
|
||||
elog " su postgres"
|
||||
elog " psql -c \"CREATE ROLE gitlab PASSWORD 'gitlab' \\"
|
||||
elog " NOSUPERUSER NOCREATEDB NOCREATEROLE INHERIT LOGIN;\""
|
||||
elog " createdb -E UTF-8 -O gitlab gitlabhq_production"
|
||||
elog " Note: You should change your password to something more random..."
|
||||
elog
|
||||
fi
|
||||
elog "4. Finally execute the following command to initialize the environment:"
|
||||
elog " emerge --config \"=${CATEGORY}/${PF}\""
|
||||
elog " Note: Do not forget to start Redis server first!"
|
||||
elog
|
||||
elog "If you're running GitLab behind an SSL proxy such as nginx or Apache and"
|
||||
elog "you can't login after the upgrade, be sure to read the section about the"
|
||||
elog "verification of the CSRF token in GitLab's trouble-shooting guide at"
|
||||
elog "http://goo.gl/5XGRGv."
|
||||
if use postgres; then
|
||||
elog "Please note: As of GitLab 8.6, users of PostgreSQL need to enable the"
|
||||
elog "`pg_trgm` extension by running the following command as a PostgreSQL"
|
||||
elog "super user for *every* GitLab database:"
|
||||
elog " CREATE EXTENSION IF NOT EXISTS pg_trgm;"
|
||||
elog "For details, see the documentation at the GitLab website."
|
||||
fi
|
||||
if use mysql ; then
|
||||
ewarn "You must grant the GitLab user permissions the following on the database:"
|
||||
ewarn " mysql -u root -p -e \\"
|
||||
ewarn " \"GRANT TRIGGER ON \`gitlab\`.* TO 'gitlab'@'localhost';\""
|
||||
ewarn "PLEASE also read this document about needed migrations on MySQL:"
|
||||
ewarn
|
||||
ewarn "https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/install/database_mysql.md"
|
||||
ewarn
|
||||
ewarn "Failing to follow those instructions may make the config phase fail!"
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_config() {
|
||||
einfo "Checking configuration files"
|
||||
|
||||
if [ ! -r "${CONF_DIR}/database.yml" ]; then
|
||||
eerror "Copy ${CONF_DIR}/database.yml.* to"
|
||||
eerror "${CONF_DIR}/database.yml and edit this file in order to configure your"
|
||||
eerror "database settings for \"production\" environment."
|
||||
die
|
||||
fi
|
||||
|
||||
local email_from="$(ryaml ${CONF_DIR}/gitlab.yml production gitlab email_from)"
|
||||
local git_home="$(egethome ${MY_USER})"
|
||||
|
||||
# configure Git global settings
|
||||
if [ ! -e "${git_home}/.gitconfig" ]; then
|
||||
einfo "Setting git user"
|
||||
su -l ${MY_USER} -c "
|
||||
git config --global user.email '${email_from}';
|
||||
git config --global user.name 'GitLab'" \
|
||||
|| die "failed to setup git name and email"
|
||||
fi
|
||||
|
||||
su -l ${MY_USER} -c "git config --global repack.writeBitmaps true"
|
||||
|
||||
# determine whether this is an update or a fresh install. we do this by
|
||||
# checking whether the ${DEST_DIR}/.git directory exists or not
|
||||
#
|
||||
if [ -d "${DEST_DIR}/.git" ]; then
|
||||
local update=true
|
||||
else
|
||||
local update=false
|
||||
fi
|
||||
|
||||
if use mysql ; then
|
||||
ewarn "Please only proceed if you've read and understood the following page:"
|
||||
ewarn "https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/install/database_mysql.md"
|
||||
if [ "${update}" = 'true' ]; then
|
||||
ewarn "Failing to follow those instructions may cause the upgrade to fail"
|
||||
fi
|
||||
ewarn
|
||||
fi
|
||||
|
||||
ewarn "Now is a good time to create a backup of your Gitlab installation, just in case."
|
||||
ewarn "To do so, abort this configuration with Ctrl+C and type the following commands:"
|
||||
ewarn " cd /opt/gitlab"
|
||||
ewarn " sudo -u git -H bundle exec rake gitlab:backup:create RAILS_ENV=production"
|
||||
ewarn
|
||||
ewarn "Press Ctrl+C to abort now or any key to continue."
|
||||
read
|
||||
|
||||
## Initialize app ##
|
||||
|
||||
local RAILS_ENV="production"
|
||||
local RUBY=${RUBY:-/usr/bin/ruby}
|
||||
local BUNDLE="${RUBY} /usr/bin/bundle"
|
||||
|
||||
if [ "${update}" = 'true' ]; then
|
||||
einfo "Migrating database ..."
|
||||
exec_rake db:migrate
|
||||
|
||||
einfo "Compiling GetText PO files ..."
|
||||
exec_rake gettext:compile
|
||||
|
||||
# https://github.com/gitlabhq/gitlabhq/issues/5311#issuecomment-31656496
|
||||
einfo "Migrating iids ..."
|
||||
exec_rake migrate_iids
|
||||
|
||||
einfo "Installing npm modules ..."
|
||||
exec_rake yarn:install
|
||||
|
||||
einfo "Cleaning old precompiled assets ..."
|
||||
exec_rake gitlab:assets:clean
|
||||
|
||||
einfo "Cleaning cache ..."
|
||||
exec_rake cache:clear
|
||||
else
|
||||
# create dummy git repo as workaround for
|
||||
# https://github.com/bundler/bundler/issues/2039
|
||||
einfo "Initializing dummy git repository to avoid false errors from bundler"
|
||||
su -l ${MY_USER} -c "
|
||||
cd ${DEST_DIR}
|
||||
git init
|
||||
git add README.md
|
||||
git commit -m 'Dummy repository'" >/dev/null
|
||||
|
||||
einfo "Initializing database ..."
|
||||
exec_rake gitlab:setup
|
||||
|
||||
einfo "Compiling GetText PO files ..."
|
||||
exec_rake gettext:pack
|
||||
exec_rake gettext:po_to_json
|
||||
|
||||
einfo "Installing npm modules ..."
|
||||
exec_rake yarn:install
|
||||
fi
|
||||
|
||||
einfo "Precompiling assests ..."
|
||||
exec_rake gitlab:assets:compile
|
||||
|
||||
if [ "${update}" = 'true' ]; then
|
||||
ewarn
|
||||
ewarn "This configuration script runs only common migration tasks."
|
||||
ewarn "Please read guides on"
|
||||
ewarn " https://github.com/gitlabhq/gitlabhq/blob/master/doc/update/"
|
||||
ewarn "for any additional migration tasks specific to your previous GitLab"
|
||||
ewarn "version."
|
||||
fi
|
||||
elog
|
||||
elog "If you want to make sure that the install/upgrade was successful, start"
|
||||
elog "Gitlab now and then run these commands (as root):"
|
||||
elog
|
||||
elog " cd /opt/gitlab"
|
||||
elog " sudo -u git -H bundle exec rake gitlab:env:info RAILS_ENV=production"
|
||||
elog " sudo -u git -H bundle exec rake gitlab:check RAILS_ENV=production"
|
||||
elog
|
||||
if ! use systemd ; then
|
||||
elog "You may also run"
|
||||
elog " /etc/init.d/gitlab check"
|
||||
elog " for convenience."
|
||||
fi
|
||||
}
|
||||
|
||||
ryaml() {
|
||||
ruby -ryaml -e 'puts ARGV[1..-1].inject(YAML.load(File.read(ARGV[0]))) {|acc, key| acc[key] }' "$@"
|
||||
}
|
||||
|
||||
exec_rake() {
|
||||
local command="${BUNDLE} exec rake $@ RAILS_ENV=${RAILS_ENV} NODE_ENV=${RAILS_ENV}"
|
||||
|
||||
echo " ${command}"
|
||||
su -l ${MY_USER} -c "
|
||||
export LANG=en_US.UTF-8; export LC_ALL=en_US.UTF-8; export NODE_PATH=${DEST_DIR}/node_modules
|
||||
cd ${DEST_DIR}
|
||||
${command}" \
|
||||
|| die "failed to run rake $@"
|
||||
}
|
|
@ -1,429 +0,0 @@
|
|||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="6"
|
||||
|
||||
# Maintainer notes:
|
||||
# - This ebuild uses Bundler to download and install all gems in deployment mode
|
||||
# (i.e. into isolated directory inside application). That's not Gentoo way how
|
||||
# it should be done, but GitLab has too many dependencies that it will be too
|
||||
# difficult to maintain them via ebuilds.
|
||||
#
|
||||
|
||||
USE_RUBY="ruby23"
|
||||
|
||||
inherit eutils ruby-ng user systemd
|
||||
|
||||
MY_PV="v${PV/_/-}"
|
||||
MY_GIT_COMMIT="76c4568daa809c85a8de6e2df8546ef46e6470a4"
|
||||
|
||||
GITALY_VERSION="0.35.0"
|
||||
GITLAB_PAGES_VERSION="0.5.1"
|
||||
GITLAB_SHELL_VERSION="5.8.0"
|
||||
GITLAB_WORKHORSE_VERSION="3.0.0"
|
||||
|
||||
DESCRIPTION="GitLab is a free project and repository management application"
|
||||
HOMEPAGE="https://about.gitlab.com/"
|
||||
SRC_URI="https://gitlab.com/gitlab-org/${PN}/repository/archive.tar.gz?ref=${MY_PV} -> ${P}.tar.gz"
|
||||
RUBY_S="${PN}-${MY_PV}-${MY_GIT_COMMIT}"
|
||||
|
||||
RESTRICT="mirror"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86 ~arm64"
|
||||
IUSE="kerberos mysql +postgres +unicorn systemd pages rugged_use_system_libraries"
|
||||
|
||||
## Gems dependencies:
|
||||
# charlock_holmes dev-libs/icu
|
||||
# grape, capybara dev-libs/libxml2, dev-libs/libxslt
|
||||
# rugged dev-util/cmake, virtual/pkgconfig
|
||||
# json dev-util/ragel
|
||||
# pygments.rb python 2.7+
|
||||
# execjs net-libs/nodejs, or any other JS runtime
|
||||
# pg dev-db/postgresql
|
||||
# mysql virtual/mysql
|
||||
#
|
||||
GEMS_DEPEND="
|
||||
dev-libs/icu
|
||||
dev-libs/libxml2
|
||||
dev-libs/libxslt
|
||||
dev-libs/re2
|
||||
dev-util/ragel
|
||||
>=net-libs/nodejs-4.3.0
|
||||
>=sys-apps/yarn-0.17.0
|
||||
postgres? ( >=dev-db/postgresql-9.1:* )
|
||||
mysql? ( virtual/mysql )
|
||||
kerberos? ( virtual/krb5 )"
|
||||
CDEPEND="
|
||||
dev-util/cmake
|
||||
virtual/pkgconfig"
|
||||
COMMON_DEPEND="
|
||||
${GEMS_DEPEND}
|
||||
~dev-vcs/gitlab-shell-${GITLAB_SHELL_VERSION}
|
||||
>=dev-vcs/git-2.8.4
|
||||
~www-servers/gitlab-workhorse-${GITLAB_WORKHORSE_VERSION}
|
||||
kerberos? ( !app-crypt/heimdal )
|
||||
rugged_use_system_libraries? ( net-libs/http-parser dev-libs/libgit2:0/26 )
|
||||
pages? ( ~www-servers/gitlab-pages-${GITLAB_PAGES_VERSION} )
|
||||
~www-servers/gitlab-gitaly-${GITALY_VERSION}"
|
||||
DEPEND="
|
||||
${CDEPEND}
|
||||
${COMMON_DEPEND}"
|
||||
RDEPEND="
|
||||
${COMMON_DEPEND}
|
||||
>=dev-db/redis-2.8
|
||||
virtual/mta
|
||||
systemd? ( sys-apps/systemd:0= )"
|
||||
# required bundler >= 1.15.3
|
||||
ruby_add_bdepend "
|
||||
virtual/rubygems
|
||||
>=dev-ruby/bundler-1.14.6"
|
||||
|
||||
#
|
||||
# fix-sendmail-config:
|
||||
# Fix default settings to work with ssmtp that doesn't know '-t' argument.
|
||||
# fix-redis-config-path:
|
||||
# Point to the absolute location of redis_config.rb
|
||||
#
|
||||
PATCHES=(
|
||||
"${FILESDIR}/01-${PN}-8.7.5-fix-sendmail-config.patch"
|
||||
"${FILESDIR}/02-${PN}-9.0.0-fix-redis-config-path.patch"
|
||||
"${FILESDIR}/03-${PN}-9.4.0-database.yml.patch"
|
||||
"${FILESDIR}/04-${PN}-9.3.0-fix-check-task.patch"
|
||||
"${FILESDIR}/05-${PN}-9.0.0-replace-sys-filesystem.patch"
|
||||
"${FILESDIR}/06-${PN}-8.17.0-fix-webpack-config.patch"
|
||||
)
|
||||
|
||||
MY_NAME="gitlab"
|
||||
MY_USER="git" # should be same as in gitlab-shell
|
||||
|
||||
DEST_DIR="/opt/${MY_NAME}"
|
||||
CONF_DIR="/etc/${MY_NAME}"
|
||||
LOGS_DIR="/var/log/${MY_NAME}"
|
||||
TEMP_DIR="/var/tmp/${MY_NAME}"
|
||||
|
||||
all_ruby_prepare() {
|
||||
# fix paths
|
||||
local satellites_path="${TEMP_DIR}/repo_satellites"
|
||||
local repos_path=/var/lib/git/repositories
|
||||
local shell_path=/usr/share/gitlab-shell
|
||||
local run_path=/run/${MY_NAME}
|
||||
|
||||
sed -i -E \
|
||||
-e "/satellites:$/,/\w:$/ s|(\s*path:\s).*|\1${satellites_path}/|" \
|
||||
-e "/gitlab_shell:$/,/\w:$/ s|(\s*path:\s).*|\1${shell_path}/|" \
|
||||
-e "/gitlab_shell:$/,/\w:$/ s|(\s*repos_path:\s).*|\1${repos_path}/|" \
|
||||
-e "/gitlab_shell:$/,/\w:$/ s|(\s*hooks_path:\s).*|\1${shell_path}/hooks/|" \
|
||||
-e "/path: \\/home\\/git\\/repositories\\/$/ s|/home/git/repositories/|/var/lib/git/repositories/|" \
|
||||
-e "/gitaly_address:/ s|/home/git/gitlab/tmp/sockets/private/|${run_path}/sockets/|" \
|
||||
config/gitlab.yml.example || die "failed to filter gitlab.yml.example"
|
||||
|
||||
sed -i -E \
|
||||
-e "s|/home/git/gitlab/tmp|${run_path}|g" \
|
||||
-e "s|/home/git/gitlab/log|${LOGS_DIR}|g" \
|
||||
-e "s|/home/git/gitlab|${DEST_DIR}|g" \
|
||||
config/unicorn.rb.example || die "failed to filter unicorn.rb.example"
|
||||
|
||||
sed -i \
|
||||
-e "s|/home/git/gitlab/tmp|${run_path}|g" \
|
||||
lib/support/nginx/gitlab || die "failed to filter nginx/gitlab"
|
||||
|
||||
# modify default database settings for PostgreSQL
|
||||
sed -i -E \
|
||||
-e 's|(username:).*|\1 gitlab|' \
|
||||
-e 's|(password:).*|\1 gitlab|' \
|
||||
-e 's|(socket:).*|\1 /run/postgresql/.s.PGSQL.5432|' \
|
||||
config/database.yml.postgresql \
|
||||
|| die "failed to filter database.yml.postgresql"
|
||||
|
||||
# rename config files
|
||||
mv config/gitlab.yml.example config/gitlab.yml
|
||||
mv config/unicorn.rb.example config/unicorn.rb
|
||||
|
||||
local dbconf=config/database.yml
|
||||
if use postgres && ! use mysql; then
|
||||
mv ${dbconf}.postgresql ${dbconf}
|
||||
rm ${dbconf}.mysql
|
||||
elif use mysql && ! use postgres; then
|
||||
mv ${dbconf}.mysql ${dbconf}
|
||||
rm ${dbconf}.postgresql
|
||||
fi
|
||||
|
||||
# remove useless files
|
||||
rm -r lib/support/{deploy,init.d}
|
||||
use unicorn || rm config/unicorn.rb
|
||||
}
|
||||
|
||||
all_ruby_install() {
|
||||
local dest=${DEST_DIR}
|
||||
local conf=${CONF_DIR}
|
||||
local logs=${LOGS_DIR}
|
||||
local temp=${TEMP_DIR}
|
||||
|
||||
# prepare directories
|
||||
diropts -m750
|
||||
dodir ${logs} ${temp}
|
||||
|
||||
diropts -m755
|
||||
dodir ${conf} ${dest}/public/uploads
|
||||
|
||||
dosym ${temp} ${dest}/tmp
|
||||
dosym ${logs} ${dest}/log
|
||||
|
||||
# install configs
|
||||
insinto ${conf}
|
||||
doins -r config/*
|
||||
dosym ${conf} ${dest}/config
|
||||
|
||||
echo 'export RAILS_ENV=production' > "${D}/${dest}/.profile"
|
||||
|
||||
# remove needless dirs
|
||||
rm -Rf config tmp log
|
||||
|
||||
# install the rest files
|
||||
# using cp 'cause doins is slow
|
||||
cp -Rl * "${D}/${dest}"/
|
||||
cp -Rl .??* "${D}/${dest}"/
|
||||
|
||||
# install logrotate config
|
||||
dodir /etc/logrotate.d
|
||||
cat > "${D}/etc/logrotate.d/${MY_NAME}" <<-EOF
|
||||
${logs}/*.log {
|
||||
missingok
|
||||
delaycompress
|
||||
compress
|
||||
copytruncate
|
||||
}
|
||||
EOF
|
||||
|
||||
## Install gems via bundler ##
|
||||
|
||||
cd "${D}/${dest}"
|
||||
|
||||
local without="development test aws"
|
||||
local flag; for flag in mysql postgres unicorn kerberos; do
|
||||
without+="$(use $flag || echo ' '$flag)"
|
||||
done
|
||||
local bundle_args="--deployment ${without:+--without ${without}}"
|
||||
|
||||
use "rugged_use_system_libraries" && export RUGGED_USE_SYSTEM_LIBRARIES="YES"
|
||||
|
||||
einfo "Running bundle install ${bundle_args} ..."
|
||||
${RUBY} /usr/bin/bundle install ${bundle_args} || die "bundler failed"
|
||||
|
||||
einfo "Cleaning old gems ..."
|
||||
${RUBY} /usr/bin/bundle clean
|
||||
|
||||
# clean gems cache
|
||||
rm -Rf vendor/bundle/ruby/*/cache
|
||||
rm -Rf vendor/bundle/ruby/*/bundler/gems/charlock_holmes-dde194609b35/.git
|
||||
|
||||
## RC script ##
|
||||
|
||||
if use systemd ; then
|
||||
ewarn "Beware: systemd support has not been tested, use at your own risk!"
|
||||
systemd_newunit "${FILESDIR}/gitlab-8.13.0-sidekiq.service" "gitlab-sidekiq.service"
|
||||
systemd_dounit "${FILESDIR}/gitlab-unicorn.service"
|
||||
systemd_dounit "${FILESDIR}/gitlab-workhorse.service"
|
||||
systemd_dounit "${FILESDIR}/gitlab-mailroom.service"
|
||||
systemd_dotmpfilesd "${FILESDIR}/gitlab.conf"
|
||||
else
|
||||
local rcscript=gitlab-9.3.5-sidekiq.init
|
||||
use unicorn && rcscript=gitlab-9.3.5-unicorn.init
|
||||
|
||||
cp "${FILESDIR}/${rcscript}" "${T}" || die
|
||||
sed -i \
|
||||
-e "s|@USER@|${MY_USER}|g" \
|
||||
-e "s|@GITLAB_BASE@|${dest}|g" \
|
||||
-e "s|@LOGS_DIR@|${logs}|g" \
|
||||
"${T}/${rcscript}" \
|
||||
|| die "failed to filter ${rcscript}"
|
||||
|
||||
newinitd "${T}/${rcscript}" "${MY_NAME}"
|
||||
fi
|
||||
|
||||
# fix permissions
|
||||
fowners -R ${MY_USER}:${MY_USER} ${dest} ${temp} ${logs}
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
elog "If this is an update from a previous version, stop your GitLab"
|
||||
elog "instance and issue the following command to perform all required"
|
||||
elog "migrations:"
|
||||
elog " emerge --config \"=${CATEGORY}/${PF}\""
|
||||
elog "PLEASE NOTE: It's HIGHLY recommended to backup your database"
|
||||
elog "before running the config phase. Run these commands (as root):"
|
||||
elog
|
||||
elog " cd /opt/gitlab"
|
||||
elog " sudo -u git -H bundle exec rake gitlab:backup:create RAILS_ENV=production"
|
||||
elog
|
||||
elog "If this was a fresh install, follow these steps:"
|
||||
elog
|
||||
elog "1. Configure your GitLab's settings in ${CONF_DIR}/gitlab.yml."
|
||||
elog
|
||||
elog "2. Configure your database settings in ${CONF_DIR}/database.yml"
|
||||
elog " for \"production\" environment."
|
||||
elog
|
||||
elog "3. Then you should create a database for your GitLab instance, if you"
|
||||
elog " haven't done so already."
|
||||
elog
|
||||
if use postgres; then
|
||||
elog "If you have local PostgreSQL running, just copy&run:"
|
||||
elog " su postgres"
|
||||
elog " psql -c \"CREATE ROLE gitlab PASSWORD 'gitlab' \\"
|
||||
elog " NOSUPERUSER NOCREATEDB NOCREATEROLE INHERIT LOGIN;\""
|
||||
elog " createdb -E UTF-8 -O gitlab gitlabhq_production"
|
||||
elog " Note: You should change your password to something more random..."
|
||||
elog
|
||||
fi
|
||||
elog "4. Finally execute the following command to initialize the environment:"
|
||||
elog " emerge --config \"=${CATEGORY}/${PF}\""
|
||||
elog " Note: Do not forget to start Redis server first!"
|
||||
elog
|
||||
elog "If you're running GitLab behind an SSL proxy such as nginx or Apache and"
|
||||
elog "you can't login after the upgrade, be sure to read the section about the"
|
||||
elog "verification of the CSRF token in GitLab's trouble-shooting guide at"
|
||||
elog "http://goo.gl/5XGRGv."
|
||||
if use postgres; then
|
||||
elog "Please note: As of GitLab 8.6, users of PostgreSQL need to enable the"
|
||||
elog "`pg_trgm` extension by running the following command as a PostgreSQL"
|
||||
elog "super user for *every* GitLab database:"
|
||||
elog " CREATE EXTENSION IF NOT EXISTS pg_trgm;"
|
||||
elog "For details, see the documentation at the GitLab website."
|
||||
fi
|
||||
if use mysql ; then
|
||||
ewarn "You must grant the GitLab user permissions the following on the database:"
|
||||
ewarn " mysql -u root -p -e \\"
|
||||
ewarn " \"GRANT TRIGGER ON \`gitlab\`.* TO 'gitlab'@'localhost';\""
|
||||
ewarn "PLEASE also read this document about needed migrations on MySQL:"
|
||||
ewarn
|
||||
ewarn "https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/install/database_mysql.md"
|
||||
ewarn
|
||||
ewarn "Failing to follow those instructions may make the config phase fail!"
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_config() {
|
||||
einfo "Checking configuration files"
|
||||
|
||||
if [ ! -r "${CONF_DIR}/database.yml" ]; then
|
||||
eerror "Copy ${CONF_DIR}/database.yml.* to"
|
||||
eerror "${CONF_DIR}/database.yml and edit this file in order to configure your"
|
||||
eerror "database settings for \"production\" environment."
|
||||
die
|
||||
fi
|
||||
|
||||
local email_from="$(ryaml ${CONF_DIR}/gitlab.yml production gitlab email_from)"
|
||||
local git_home="$(egethome ${MY_USER})"
|
||||
|
||||
# configure Git global settings
|
||||
if [ ! -e "${git_home}/.gitconfig" ]; then
|
||||
einfo "Setting git user"
|
||||
su -l ${MY_USER} -c "
|
||||
git config --global user.email '${email_from}';
|
||||
git config --global user.name 'GitLab'" \
|
||||
|| die "failed to setup git name and email"
|
||||
fi
|
||||
|
||||
su -l ${MY_USER} -c "git config --global repack.writeBitmaps true"
|
||||
|
||||
# determine whether this is an update or a fresh install. we do this by
|
||||
# checking whether the ${DEST_DIR}/.git directory exists or not
|
||||
#
|
||||
if [ -d "${DEST_DIR}/.git" ]; then
|
||||
local update=true
|
||||
else
|
||||
local update=false
|
||||
fi
|
||||
|
||||
if use mysql ; then
|
||||
ewarn "Please only proceed if you've read and understood the following page:"
|
||||
ewarn "https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/install/database_mysql.md"
|
||||
if [ "${update}" = 'true' ]; then
|
||||
ewarn "Failing to follow those instructions may cause the upgrade to fail"
|
||||
fi
|
||||
ewarn
|
||||
ewarn "Press any key to continue, or abort with Ctrl+C"
|
||||
read
|
||||
fi
|
||||
|
||||
## Initialize app ##
|
||||
|
||||
local RAILS_ENV="production"
|
||||
local RUBY=${RUBY:-/usr/bin/ruby}
|
||||
local BUNDLE="${RUBY} /usr/bin/bundle"
|
||||
|
||||
if [ "${update}" = 'true' ]; then
|
||||
einfo "Migrating database ..."
|
||||
exec_rake db:migrate
|
||||
|
||||
# https://github.com/gitlabhq/gitlabhq/issues/5311#issuecomment-31656496
|
||||
einfo "Migrating iids ..."
|
||||
exec_rake migrate_iids
|
||||
|
||||
einfo "Installing npm modules ..."
|
||||
exec_rake yarn:install
|
||||
|
||||
einfo "Cleaning old precompiled assets ..."
|
||||
exec_rake gitlab:assets:clean
|
||||
|
||||
einfo "Cleaning cache ..."
|
||||
exec_rake cache:clear
|
||||
else
|
||||
# create dummy git repo as workaround for
|
||||
# https://github.com/bundler/bundler/issues/2039
|
||||
einfo "Initializing dummy git repository to avoid false errors from bundler"
|
||||
su -l ${MY_USER} -c "
|
||||
cd ${DEST_DIR}
|
||||
git init
|
||||
git add README.md
|
||||
git commit -m 'Dummy repository'" >/dev/null
|
||||
|
||||
einfo "Initializing database ..."
|
||||
exec_rake gitlab:setup
|
||||
|
||||
einfo "Installing npm modules ..."
|
||||
exec_rake yarn:install
|
||||
fi
|
||||
|
||||
einfo "Precompiling assests ..."
|
||||
exec_rake gitlab:assets:compile
|
||||
|
||||
if [ "${update}" = 'true' ]; then
|
||||
ewarn
|
||||
ewarn "This configuration script runs only common migration tasks."
|
||||
ewarn "Please read guides on"
|
||||
ewarn " https://github.com/gitlabhq/gitlabhq/blob/master/doc/update/"
|
||||
ewarn "for any additional migration tasks specific to your previous GitLab"
|
||||
ewarn "version."
|
||||
fi
|
||||
elog
|
||||
elog "If you want to make sure that the install/upgrade was successful, start"
|
||||
elog "Gitlab now and then run these commands (as root):"
|
||||
elog
|
||||
elog " cd /opt/gitlab"
|
||||
elog " sudo -u git -H bundle exec rake gitlab:env:info RAILS_ENV=production"
|
||||
elog " sudo -u git -H bundle exec rake gitlab:check RAILS_ENV=production"
|
||||
elog
|
||||
if ! use systemd ; then
|
||||
elog "You may also run"
|
||||
elog " /etc/init.d/gitlab check"
|
||||
elog " for convenience."
|
||||
fi
|
||||
}
|
||||
|
||||
ryaml() {
|
||||
ruby -ryaml -e 'puts ARGV[1..-1].inject(YAML.load(File.read(ARGV[0]))) {|acc, key| acc[key] }' "$@"
|
||||
}
|
||||
|
||||
exec_rake() {
|
||||
local command="${BUNDLE} exec rake $@ RAILS_ENV=${RAILS_ENV} NODE_ENV=${RAILS_ENV}"
|
||||
|
||||
echo " ${command}"
|
||||
su -l ${MY_USER} -c "
|
||||
export LANG=en_US.UTF-8; export LC_ALL=en_US.UTF-8; export NODE_PATH=${DEST_DIR}/node_modules
|
||||
cd ${DEST_DIR}
|
||||
${command}" \
|
||||
|| die "failed to run rake $@"
|
||||
}
|
|
@ -1,13 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>manuel@fritteli.ch</email>
|
||||
<name>Manuel Friedli</name>
|
||||
</maintainer>
|
||||
<use>
|
||||
<flag name="unicorn">Use the Unicorn web server. Never tested the package without it, so disable at your own risk.</flag>
|
||||
<flag name="pages">Use the GitLab Pages feature. See https://gitlab.com/gitlab-org/gitlab-pages/</flag>
|
||||
<flag name="rugged_use_system_libraries">Use dev-libs/libgit2 from the system instead of the bundled libgit. The bundled library sometimes causes build breakages.</flag>
|
||||
</use>
|
||||
</pkgmetadata>
|
Loading…
Add table
Add a link
Reference in a new issue