Adoptable Cookbooks List

Looking for a cookbook to adopt? You can now see a list of cookbooks available for adoption!
List of Adoptable Cookbooks

Supermarket Belongs to the Community

Supermarket belongs to the community. While Chef has the responsibility to keep it running and be stewards of its functionality, what it does and how it works is driven by the community. The chef/supermarket repository will continue to be where development of the Supermarket application takes place. Come be part of shaping the direction of Supermarket by opening issues and pull requests or by joining us on the Chef Mailing List.

Select Badges

Select Supported Platforms

Select Status

RSS

gogs (4) Versions 0.1.1

Installs and Configures a Go Git Service Server

Policyfile
Berkshelf
Knife
cookbook 'gogs', '= 0.1.1', :supermarket
cookbook 'gogs', '= 0.1.1'
knife supermarket install gogs
knife supermarket download gogs
README
Dependencies
Changelog
Quality 43%

gogs Build Status

Installs gogs (Go Git Service), An open source Git Service.

This cookbook installs gogs on port 8080 with sqllite3 by default. It skips the installer
meaning that everything is set to go; however, you will need to create an admin account
on your own. Do this by just going to the web ui and filling out the form or by inserting into
the database. LWRP for that to come at some point.

Requirements

  • apt cookbook
  • systemd cookbook
  • ark cookbook
  • chef-sugar cookbook

Attributes

Install Attributes

  • node['gogs']['install_dir'] default: '/opt'

The path to install gogs to, note that there will be a gogs subfolder created where everything will live.
By default the executable and configuration lives in /opt/gogs/.

  • node['gogs']['version'] default '0.6.1'

The Release version to install. See https://github.com/gogits/gogs/releases

Config Attributes

The node['gogs']['config'] tree gets parsed into the gogs app.ini.

Note that the attributes are split into sections then into their individual settings.

For Documentation on what each setting does please refer to the app.ini

An excerpt of attributes/default.rb
to give you an idea of how these options work:

default['gogs']['config']['global']['APP_NAME'] = 'Gogs: Go Git Service'
default['gogs']['config']['global']['RUN_USER'] = 'git'
default['gogs']['config']['global']['RUN_MODE'] = 'prod'

default['gogs']['config']['repository']['ROOT'] = '/ops/gogs/repos'
default['gogs']['config']['repository']['SCRIPT_TYPE'] = 'bash'

default['gogs']['config']['server']['PROTOCOL'] = 'http'
default['gogs']['config']['server']['DOMAIN'] = 'localhost'
default['gogs']['config']['server']['ROOT_URL'] = '%(PROTOCOL)s://%(DOMAIN)s:%(HTTP_PORT)s/'
default['gogs']['config']['server']['HTTP_ADDR'] = '0.0.0.0'
default['gogs']['config']['server']['HTTP_PORT'] = 8080

Recipes

default

This recipe installs and configures gogs

  1. Set up & updates apt using apt::default
  2. Installs Git and Supervisord
  3. Downloads and installs gogs from Github
  4. Configures gogs according to node['gogs']['config']

Usage

Include this recipe in a wrapper cookbook:

depends 'gogs', '~> 1.0'
include_recipe 'gogs::default'

Contributing

  1. Fork the repository on Github
  2. Create a named feature branch (like add_component_x)
  3. Write your change
  4. Write tests for your change (if applicable)
  5. Run the tests with kitchen test, ensuring they all pass
  6. Submit a Pull Request using Github

License and Authors

Author:: Eddie Hurtig (eddie@hurtigtechnologies.com)

Dependent cookbooks

chef-sugar >= 0.0.0
ark >= 0.0.0
apt >= 0.0.0
supervisord ~> 1.0.0

Contingent cookbooks

There are no cookbooks that are contingent upon this one.

Change Log for gogs

All notable changes to this project will be documented in this file.
This project adheres to Semantic Versioning.

Unreleased

Changed

  • Improve argument against commit logs.

0.0.2 - YYY-MM-DD

Added

  • Explanation of the recommended reverse chronological release ordering.

Changed

  • Refer to a "change log" instead of a "CHANGELOG" throughout the site to differentiate between the file and the purpose of the file — the logging of changes.

Removed

  • Remove empty sections from CHANGELOG, they occupy too much space and create too much noise in the file. People will have to assume that the missing sections were intentionally left out because they contained no notable changes.

0.0.1 - YYYY-MM-DD

Added

  • This CHANGELOG file to hopefully serve as an evolving example of a standardized open source project CHANGELOG.
  • CNAME file to enable GitHub Pages custom domain
  • README now contains answers to common questions about CHANGELOGs
  • Good examples and basic guidelines, including proper date formatting.
  • Counter-examples: "What makes unicorns cry?"

Collaborator Number Metric
            

0.1.1 failed this metric

Failure: Cookbook has 0 collaborators. A cookbook must have at least 2 collaborators to pass this metric.

Contributing File Metric
            

0.1.1 passed this metric

Foodcritic Metric
            

0.1.1 failed this metric

FC009: Resource attribute not recognised: gogs/recipes/default.rb:32
Run with Foodcritic Version 12.0.1 with tags metadata,correctness ~FC031 ~FC045 and failure tags any

License Metric
            

0.1.1 failed this metric

gogs does not have a valid open source license.
Acceptable licenses include Apache-2.0, apachev2, Apache 2.0, MIT, mit, GPL-2.0, gplv2, GNU Public License 2.0, GPL-3.0, gplv3, GNU Public License 3.0.

No Binaries Metric
            

0.1.1 passed this metric

Testing File Metric
            

0.1.1 failed this metric

Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file

Version Tag Metric
            

0.1.1 passed this metric