Commit f9fb579319bef40eedb20597c552580b403bf7c0

Authored by Alexandre Barbosa
1 parent f50fab54
Exists in master and in 79 other branches add_sisp_to_chef, add_super_archives_plugin, api_for_colab, automates_core_packing, backup_not_prod, changes_in_buttons_on_content_panel, colab_automated_login, colab_spb_plugin_recipe, colab_widgets_settings, design_validation, dev_env_minimal, disable_email_dev, fix_breadcrumbs_position, fix_categories_software_link, fix_edit_institution, fix_edit_software_with_another_license, fix_get_license_info, fix_gitlab_assets_permission, fix_list_style_inside_article, fix_list_style_on_folder_elements, fix_members_pagination, fix_merge_request_url, fix_models_translations, fix_no_license, fix_software_api, fix_software_block_migration, fix_software_communities_translations, fix_software_communities_unit_test, fix_style_create_institution_admin_panel, fix_superarchives_imports, fix_sym_links_noosfero, focus_search_field_theme, gov-user-refactoring, gov-user-refactoring-rails4, header_fix, institution_modal_on_rating, kalibro-conf-refactoring, kalibro-processor-package, lxc_settings, margin_fix, mezuro_cookbook, prezento, refactor_download_block, refactor_software_communities, refactor_software_for_sisp, register_page, release-process, release-process-v2, remove-unused-images, remove_broken_theme, remove_secondary_email_from_user, remove_sisp_buttons, removing_super_archives_email, review_message, scope2method, signals_user_noosfero, sisp_catalog_header, sisp_colab_config, sisp_dev, sisp_dev_master, sisp_simple_version, software_as_organization, software_catalog_style_fix, software_communities_html_refactor, software_infos_api, spb_minimal_env, spb_to_rails4, spec_refactor, stable-4.1, stable-4.2, stable-4.x, temp_soft_comm_refactoring, theme_header, theme_javascript_refactory, thread_dropdown, thread_page, update_search_by_categories, update_software_api, update_softwares_boxes

Created gitlab-shell spec file

TODO: Fix .gitlab_secret

Signed-off-by: Alexandre Barbosa <alexandreab@live.com>
Signed-off-by: Lucas Kanashiro <kanashiro.duarte@gmail.com>
Showing 1 changed file with 79 additions and 0 deletions   Show diff stats
gitlab-shell.spec 0 → 100644
... ... @@ -0,0 +1,79 @@
  1 +Name: gitlab-shell
  2 +Version: 2.4.0
  3 +Release: 1%{?dist}
  4 +Summary: Software Development Platform
  5 +
  6 +Group: Development/Tools
  7 +License: Expat
  8 +URL: https://gitlab.com/gitlab-org/gitlab-shell
  9 +Source0: %{name}-%{version}.tar.gz
  10 +BuildArch: noarch
  11 +
  12 +# BuildRequires:
  13 +Requires: ruby >= 1.9
  14 +
  15 +%description
  16 +Gitlab-shell
  17 +
  18 +%prep
  19 +%setup -q
  20 +
  21 +%build
  22 +cat > config.yml <<EOF
  23 +user: git
  24 +gitlab_url: "http://localhost:8080/"
  25 +
  26 +http_settings:
  27 +# user: someone
  28 +# password: somepass
  29 +# ca_file: /etc/ssl/cert.pem
  30 +# ca_path: /etc/pki/tls/certs
  31 + self_signed_cert: false
  32 +
  33 +repos_path: "/var/lib/gitlab/repositories/"
  34 +auth_file: "/var/lib/gitlab-shell/.ssh/authorized_keys"
  35 +
  36 +redis:
  37 + bin: /usr/bin/redis-cli
  38 + host: 127.0.0.1
  39 + port: 6379
  40 + # pass: redispass # Allows you to specify the password for Redis
  41 + #database: 0
  42 + #socket: /var/run/redis/redis.sock # Comment out this line if you want to use TCP
  43 + #namespace: resque:gitlab
  44 +
  45 +log_file: "/var/log/gitlab-shell/gitlab-shell.log"
  46 +log_level: INFO
  47 +audit_usernames: false
  48 +EOF
  49 +
  50 +%install
  51 +mkdir -p %{buildroot}/usr/lib/gitlab-shell
  52 +mkdir -p %{buildroot}/etc/gitlab-shell
  53 +
  54 +mv config.yml %{buildroot}/etc/gitlab-shell
  55 +ln -s /etc/gitlab-shell/config.yml %{buildroot}/usr/lib/gitlab-shell/
  56 +
  57 +cp -r . %{buildroot}/usr/lib/gitlab-shell
  58 +
  59 +%post
  60 +groupadd git || true
  61 +if ! id git; then
  62 + adduser --system --home-dir /usr/lib/gitlab --no-create-home --gid git git
  63 +fi
  64 +
  65 +mkdir -p /var/log/gitlab-shell
  66 +mkdir -p /var/lib/gitlab-shell/.ssh
  67 +
  68 +chown -R git:git /var/log/gitlab-shell
  69 +chown -R git:git /var/lib/gitlab-shell
  70 +
  71 +sudo -u git -H /usr/lib/gitlab-shell/bin/install
  72 +
  73 +%files
  74 +/usr/lib/gitlab-shell
  75 +/etc/gitlab-shell
  76 +
  77 +
  78 +%changelog
  79 +
... ...