Skip to content
This repository has been archived by the owner on Jan 30, 2024. It is now read-only.

Commit

Permalink
initial release of dkdeploy-typo3-cms v7.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ncreuschling committed Jan 16, 2017
0 parents commit cf8b4f7
Show file tree
Hide file tree
Showing 59 changed files with 2,982 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
*.gem
*.rbc
.bundle
.config
.yardoc
InstalledFiles
_yardoc
coverage
doc/
lib/bundler/man
pkg
rdoc
spec/reports
test/tmp
test/version_tmp
tmp
.rakeTasks
.vagrant
.lock
Gemfile.lock
23 changes: 23 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
AllCops:
Exclude:
- 'tmp/**/*'
- 'spec/fixtures/application/htdocs/stylesheets/**/config.rb'
- 'config/**/*'
- 'Vagrantfile'
- 'vendor/**/*'
GlobalVars:
AllowedVariables: []
MethodLength:
Max: 30
LineLength:
Max: 200
SpecialGlobalVars:
Enabled: false
BracesAroundHashParameters:
Enabled: false
CyclomaticComplexity:
Max: 10
AbcSize:
Max: 25
SpaceAfterComma:
Enabled: false
12 changes: 12 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
sudo: false
language: ruby
cache: bundler
rvm:
- 2.1
- 2.2

before_install:
- gem install bundler --version 1.12.5 --no-document

script:
- bundle exec rubocop
3 changes: 3 additions & 0 deletions Berksfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
source 'https://supermarket.chef.io'

cookbook 'dkdeploy-typo3-cms', path: 'config/vm/cookbooks/dkdeploy-typo3-cms'
66 changes: 66 additions & 0 deletions Berksfile.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
DEPENDENCIES
dkdeploy-typo3-cms
path: config/vm/cookbooks/dkdeploy-typo3-cms

GRAPH
apache2 (3.2.2)
apt (3.0.0)
build-essential (4.0.0)
mingw (>= 0.0.0)
seven_zip (>= 0.0.0)
chef-sugar (3.3.0)
chef_handler (1.4.0)
compat_resource (12.10.1)
database (5.1.2)
postgresql (>= 1.0.0)
dkdeploy-typo3-cms (1.0.0)
apache2 (~> 3.2)
apt (~> 3.0)
database (~> 5.1)
mysql (~> 6.1)
mysql2_chef_gem (~> 1.0)
php (~> 1.9)
iis (4.1.7)
windows (>= 1.34.6)
mariadb (0.3.1)
apt (>= 0.0.0)
yum (>= 0.0.0)
yum-epel (>= 0.0.0)
mingw (1.0.0)
compat_resource (>= 0.0.0)
seven_zip (>= 0.0.0)
mysql (6.1.3)
smf (>= 0.0.0)
yum-mysql-community (>= 0.0.0)
mysql2_chef_gem (1.1.0)
build-essential (>= 0.0.0)
mariadb (>= 0.0.0)
mysql (>= 6.0)
openssl (4.4.0)
chef-sugar (>= 3.1.1)
php (1.9.0)
build-essential (>= 0.0.0)
iis (>= 0.0.0)
mysql (>= 6.0.0)
windows (>= 1.39.1)
xml (>= 0.0.0)
yum-epel (>= 0.0.0)
postgresql (4.0.6)
apt (>= 1.9.0)
build-essential (>= 0.0.0)
openssl (~> 4.0)
rbac (1.0.3)
seven_zip (2.0.0)
windows (>= 1.2.2)
smf (2.2.8)
rbac (>= 1.0.1)
windows (1.41.0)
chef_handler (>= 0.0.0)
xml (2.0.0)
build-essential (>= 0.0.0)
chef-sugar (>= 0.0.0)
yum (3.10.0)
yum-epel (0.7.0)
yum (>= 3.6.3)
yum-mysql-community (0.2.0)
yum (>= 3.2)
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# dkdeploy-typo3-cms CHANGELOG

All notable changes to this project will be documented in this file.
This project adheres to [Semantic Versioning](http://semver.org/).

## [7.0.0] - 2017-01-16
### Summary

- first public release

[Unreleased]: https://github.com/dkdeploy/dkdeploy-typo3-cms/compare/master...develop
[7.0.0]: https://github.com/dkdeploy/dkdeploy-typo3-cms/releases/tag/v7.0.0
16 changes: 16 additions & 0 deletions CONTRIBUTORS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# dkdeploy CONTRIBUTORS

The dkdeploy core maintainers would like to recognize following contributors (in alphabetic order):

- Sascha Egerer
- Christoph Gerold
- Johannes Goslar
- Kieran Hayes
- Wilfried Irßlinger
- Thomas Jahnke
- Gleb Levitin
- Luka Lüdicke
- Nicolai Reuschling
- Lars Tode
- Timo Webler
- Mike Zaschka
3 changes: 3 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
source 'https://rubygems.org'

gemspec
7 changes: 7 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Copyright (c) 2014-2016 dkd Internet Service GmbH, Frankfurt am Main (Germany), https://dkd.de

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
87 changes: 87 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
![dkdeploy](assets/dkdeploy-logo.png)

# Dkdeploy::Typo3::Cms

[![Build Status](https://api.travis-ci.org/dkdeploy/dkdeploy-typo3-cms.svg?branch=master)](https://travis-ci.org/repositories/dkdeploy/dkdeploy-typo3-cms)
[![Gem Version](https://badge.fury.io/rb/dkdeploy-typo3-cms.svg)](https://badge.fury.io/rb/dkdeploy-typo3-cms) [![Inline docs](http://inch-ci.org/github/dkdeploy/dkdeploy-typo3-cms.svg?branch=master)](http://inch-ci.org/github/dkdeploy/dkdeploy-typo3-cms)

## Description

dkdeploy-typo3-cms ruby gem represents the extension of [Capistrano](http://capistranorb.com/) tasks directed to the advanced deployment process.

## Installation

Add this line to your application's `Gemfile`

gem 'dkdeploy-typo3-cms', '~> 7.0'

and then execute

bundle install

or install it yourself as

gem install dkdeploy-typo3-cms

## Usage

Run in your project root

cap install STAGES='dev,integration,testing,production'

This command will create the following Capistrano file structure with all the standard pre-configured constants.
Please be aware of the difference to the [native installation](http://capistranorb.com/documentation/getting-started/preparing-your-application/) of Capistrano.
Certainly you have to adjust `config/deploy.rb` and respective stages and customize them for your needs.

<pre>
├── Capfile
└── config
├── deploy
│ ├── dev.rb
│ ├── integration.rb
│ ├── testing.rb
│ └── production.rb
└── deploy.rb
</pre>

As next you have to append the following line to the `Capfile` in order to make use of dkdeploy extensions in addition to the standard Capistrano tasks:

require 'capistrano/dkdeploy/typo3-cms'

To convince yourself, that Capistrano tasks list has benn extended, please run

cap -vT

Please note, that dkdeploy uses the local copy strategy and overwrites the `:scm` constant. If you want to use it,
you should do nothing more. However if you want to change it for example to `:git`, please add the following line to `deploy.rb`

set :scm, :git

For more information about available Capistrano constants please use the [Capistrano documentation](http://capistranorb.com/documentation/getting-started/preparing-your-application/).
The complete list of the dkdeploy constants you find in `/lib/capistrano/dkdeploy` in # TODO: set link

## Testing

### Prerequisite

Add the virtual box alias to your `hosts` file

192.168.156.183 dkdeploy-typo3-cms.dev

### Running tests

1. Start the local box (`vagrant up --provision`)
2. Check coding styles (`rubocop`)
3. Run BDD cucumber tests (`cucumber`)

## Contributing

1. Install [git flow](https://github.com/nvie/gitflow)
2. Install [Homebrew](http://brew.sh/) and run `brew install mysql-connector-c`
3. If project is not checked out already do git clone `[email protected]:dkdeploy/dkdeploy-typo3-cms.git`
4. Checkout origin develop branch (`git checkout --track -b develop origin/develop`)
5. Git flow initialize `git flow init -d`
6. Installing gems `bundle install`
7. Create new feature branch (`git flow feature start my-new-feature`)
8. Run tests (README.md Testing)
9. Commit your changes (`git commit -am 'Add some feature'`)
1 change: 1 addition & 0 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
require 'bundler/gem_tasks'
62 changes: 62 additions & 0 deletions Vagrantfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
unless Vagrant.has_plugin?('vagrant-berkshelf')
puts "Please install vagrant plugin vagrant-berkshelfs first\n"
puts " vagrant plugin install vagrant-berkshelf\n\n"
puts "Exit vagrant\n\n"
abort
end

unless Vagrant.has_plugin?('vagrant-omnibus')
puts "Please install vagrant plugin vagrant-omnibus first\n"
puts " vagrant plugin install vagrant-omnibus\n\n"
puts "Exit vagrant\n\n"
abort
end

chef_version = '12.9.41'

Vagrant.require_version '>= 1.8.1'

Vagrant.configure('2') do |config|
domain = 'dkdeploy-typo3-cms.dev'
ip_address = '192.168.156.183'

config.vm.box = 'ubuntu/trusty64'
config.vm.box_check_update = false

config.berkshelf.enabled = true
config.omnibus.chef_version = chef_version

config.vm.define 'dkdeploy-typo3-cms', primary: true do |master_config|
master_config.vm.network 'private_network', ip: ip_address
master_config.vm.provision :chef_solo do |chef|
chef.install = false # omnibus does it already
chef.version = chef_version
chef.log_level = :info
chef.add_recipe 'dkdeploy-typo3-cms'

# Specify custom JSON attributes:
chef.json = { apache: { mpm: 'prefork' } }
end

# Memory limit and name of VirtualBox
master_config.vm.provider 'virtualbox' do |virtualbox|
virtualbox.gui = ENV['ENABLE_GUI_MODE'] && ENV['ENABLE_GUI_MODE'] =~ /^(true|yes|y|1)$/i
virtualbox.customize [
'modifyvm', :id,
'--natdnsproxy1', 'off',
'--natdnshostresolver1', 'on',
'--memory', '1024',
'--name', 'dkdeploy-typo3-cms'
]
end
end

if Vagrant.has_plugin?('landrush')
config.landrush.enabled = true
config.landrush.guest_redirect_dns = false
config.landrush.tld = 'dev'
config.landrush.host domain, ip_address
else
config.vm.post_up_message = "Either install Vagrant plugin 'landrush' or add this entry to your host file: #{ip_address} #{domain}"
end
end
Binary file added assets/dkdeploy-logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 12 additions & 0 deletions config/vm/cookbooks/dkdeploy-typo3-cms/metadata.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name 'dkdeploy-typo3-cms'
maintainer 'dkd Internet Service GmbH'
license 'MIT'
description 'Project cookbook'
version '1.0'

depends 'mysql', '~> 6.1'
depends 'mysql2_chef_gem', '~> 1.0'
depends 'database', '~> 5.1'
depends 'apache2', '~> 3.2'
depends 'php', '~> 1.9'
depends 'apt', '~> 3.0' # version 2.9 is causing dependency issues
Loading

0 comments on commit cf8b4f7

Please sign in to comment.