Skip to content

Commit

Permalink
First commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Apress committed Oct 19, 2016
0 parents commit 30921d6
Show file tree
Hide file tree
Showing 2,430 changed files with 228,612 additions and 0 deletions.
Binary file added 9781484200742.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
27 changes: 27 additions & 0 deletions LICENSE.txt
@@ -0,0 +1,27 @@
Freeware License, some rights reserved

Copyright (c) 2015 Wlodzimierz Gajda

Permission is hereby granted, free of charge, to anyone obtaining a copy
of this software and associated documentation files (the "Software"),
to work with the Software within the limits of freeware distribution and fair use.
This includes the rights to use, copy, and modify the Software for personal use.
Users are also allowed and encouraged to submit corrections and modifications
to the Software for the benefit of other users.

It is not allowed to reuse, modify, or redistribute the Software for
commercial use in any way, or for a user�s educational materials such as books
or blog articles without prior permission from the copyright holder.

The above copyright notice and this permission notice need to 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 OR APRESS 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.


15 changes: 15 additions & 0 deletions README.md
@@ -0,0 +1,15 @@
#Apress Source Code

This repository accompanies [*Pro Vagrant*](http://www.apress.com/9781484200742) by Wlodzimierz Gajda (Apress, 2015).

![Cover image](9781484200742.jpg)

Download the files as a zip using the green button, or clone the repository to your machine using Git.

##Releases

Release v1.0 corresponds to the code in the published book, without corrections or updates.

##Contributions

See the file Contributing.md for more information on how you can contribute to this repository.
14 changes: 14 additions & 0 deletions contributing.md
@@ -0,0 +1,14 @@
# Contributing to Apress Source Code

Copyright for Apress source code belongs to the author(s). However, under fair use you are encouraged to fork and contribute minor corrections and updates for the benefit of the author(s) and other readers.

## How to Contribute

1. Make sure you have a GitHub account.
2. Fork the repository for the relevant book.
3. Create a new branch on which to make your change, e.g.
`git checkout -b my_code_contribution`
4. Commit your change. Include a commit message describing the correction. Please note that if your commit message is not clear, the correction will not be accepted.
5. Submit a pull request.

Thank you for your contribution!
22 changes: 22 additions & 0 deletions pro-vagrant-v1.0.1/LICENSE
@@ -0,0 +1,22 @@
Copyright (c) 2015 Włodzimierz Gajda <gajdaw@gajdaw.pl>

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.
88 changes: 88 additions & 0 deletions pro-vagrant-v1.0.1/README.md
@@ -0,0 +1,88 @@
Pro Vagrant - all the examples
==============================

## 1. The Book

The repo contains the code explained in the book:

Włodzimierz Gajda, *Pro Vagrant*, New York, Apress, 2015

http://www.apress.com/9781484200742

## 2. How to download all the examples?

git clone --recursive https://github.com/pro-vagrant/pro-vagrant-all-examples.git

## 3. The Contents

### 3.1. Chapter 1.

This chapter does not contain any examples.

### 3.2. Chapter 2.

chapter-02/songs-app-angularjs/
chapter-02/songs-app-django/
chapter-02/songs-app-rails/
chapter-02/songs-app-symfony/


### 3.3. Chapter 3.

chapter-03/songs-app-sinatra/


### 3.4. Chapter 4.

chapter-04/new-project-chapter-04/


### 3.5. Chapter 5.

chapter-05/first-box-factory/
chapter-05/corporate-blog/


### 3.6. Chapter 6.

chapter-06/vagrant-jekyll-shell/
chapter-06/vagrant-jekyll-puppet/
chapter-06/vagrant-jekyll-chef/
chapter-06/vagrant-jekyll-ansible/

chapter-06/flowers-vagrant-jekyll-shell/


### 3.7. Chapter 7.

chapter-07/chef/bento/
chapter-07/using-bento-ubuntu-box/

chapter-07/boxcutter/ubuntu/
chapter-07/using-boxcutter-ubuntu-box/


### 3.8. Chapter 8.

chapter-08/


### 3.9. Chapter 9.

chapter-09/vagrant-box-factory-apache/
chapter-09/vagrant-box-factory-django/
chapter-09/vagrant-box-factory-rails/
chapter-09/vagrant-box-factory-symfony/
chapter-09/vagrant-box-factory-sinatra/

chapter-09/songs-app-rails-antipattern/

chapter-09/vagrant-box-factory-apache-git-submodules/

chapter-09/vagrant-box-factory-apache-no-submodule-antipattern/


### 3.10. Chapter 10.

chapter-10/

7 changes: 7 additions & 0 deletions pro-vagrant-v1.0.1/build.sh
@@ -0,0 +1,7 @@
#!/usr/bin/env bash

name=pro-vagrant
version=`git describe`

echo "Building zipped archive ${name} version: ${version} ..."
~/bin/git-archive-all/git-archive-all --force-submodules "build/${name}-${version}.zip"
35 changes: 35 additions & 0 deletions pro-vagrant-v1.0.1/chapter-02/songs-app-angularjs/README.md
@@ -0,0 +1,35 @@
Songs for kids - AngularJS application
======================================

How to run the application?

Clone the repo:

$ git clone https://github.com/pro-vagrant/songs-app-angularjs.git

Enter the directory:

$ cd songs-app-angularjs

Boot VM:

$ vagrant up

Start your web browser and visit:

http://localhost:8800

## How to install the box manually?

Due to the Vagrant's bug https://github.com/mitchellh/vagrant/issues/5449
checksums are verified only when you use `$ vagrant box add` command.

You can install the box manually using the command shown below:

vagrant box add \
--name apache-v0.3.3 \
--checksum-type sha256 \
--checksum 1e7c94c5b5ec152ca6c7fee68b830e7b07cca01b0b871f1f4da89c1408c568bb \
http://boxes.gajdaw.pl/apache/apache-v0.3.3.box

The above command verifies the checksum of a newly installed box.
8 changes: 8 additions & 0 deletions pro-vagrant-v1.0.1/chapter-02/songs-app-angularjs/Vagrantfile
@@ -0,0 +1,8 @@
Vagrant.configure(2) do |config|
config.vm.box = "apache-v1.0.0"
config.vm.box_url = "http://boxes.gajdaw.pl/apache/apache-v1.0.0.box"
config.vm.box_download_checksum_type = "sha256"
config.vm.box_download_checksum = "091eb90af1bce5dd1dc936ed9db9ef65631e7428c29e60b395025a2d21cdc463"
config.vm.network :forwarded_port, guest: 80, host: 8800, host_ip: "127.0.0.1"
config.vm.post_up_message = "The application is available at http://127.0.0.1:8800"
end
3 changes: 3 additions & 0 deletions pro-vagrant-v1.0.1/chapter-02/songs-app-angularjs/stamp.yml
@@ -0,0 +1,3 @@
filename: 'version.txt'
regex: '|(?P<version>[\d\.]+)|'
replacement: '{{ version }}'
@@ -0,0 +1 @@
1.0.0
@@ -0,0 +1,2 @@
/* app css stylesheet */

0 comments on commit 30921d6

Please sign in to comment.