Giter VIP home page Giter VIP logo

dm-academy / calavera Goto Github PK

View Code? Open in Web Editor NEW
34.0 34.0 32.0 45.83 MB

DEPRECATED. I managed to squeeze another year out of this, but moving on to a Docker platform in Calavera2. [This is a project to create a simplified, reproduceable DevOps pipeline for educational purposes, using git, Vagrant, Chef, Java, JUnit, Ant, Jenkins, Artifactory, and related technologies. ]

Home Page: https://github.com/CharlesTBetz/Calavera/wiki/Calavera-Home

License: MIT License

Ruby 67.46% Shell 25.46% Java 5.87% Batchfile 1.21%

calavera's People

Contributors

andy-vdg avatar avallesalas avatar charlestbetz avatar eprofessor avatar kodykantor avatar svrc avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

calavera's Issues

Referring to lab00

In lab 4, please refer to lab00 : configuring X-Windows. It took me an hour to figure out that I should install X-Quartz application in order to open firefox.

Error on Windows 8 - startup.bat

Bringing machine 'base' up with 'virtualbox' provider...
==> base: Box 'http://opscode-vm-bento.s3.amazonaws.com/vagrant/virtualbox/opsco
de_ubuntu-14.04_chef-provisionerless.box' could not be found. Attempting to find
and install...
base: Box Provider: virtualbox
base: Box Version: >= 0
==> base: Adding box 'http://opscode-vm-bento.s3.amazonaws.com/vagrant/virtualbo
x/opscode_ubuntu-14.04_chef-provisionerless.box' (v0) for provider: virtualbox
base: Downloading: http://opscode-vm-bento.s3.amazonaws.com/vagrant/virtualb
ox/opscode_ubuntu-14.04_chef-provisionerless.box
base: Progress: 100% (Rate: 250k/s, Estimated time remaining: --:--:--)
C:/HashiCorp/Vagrant/embedded/lib/ruby/2.0.0/fileutils.rb:519:in rename': No su ch file or directory - (C:/Users/Liora/.vagrant.d/tmp/vagrant-box-add-temp-20150 406-9736-1oet15i/packer-ubuntu-14.04-amd64-disk1.vmdk, C:/Users/Liora/.vagrant.d /boxes/http-VAGRANTCOLON--VAGRANTSLASH--VAGRANTSLASH-opscode-vm-bento.s3.amazona ws.com-VAGRANTSLASH-vagrant-VAGRANTSLASH-virtualbox-VAGRANTSLASH-opscode_ubuntu- 14.04_chef-provisionerless.box/0/virtualbox/packer-ubuntu-14.04-amd64-di...) (Er rno::ENOENT) from C:/HashiCorp/Vagrant/embedded/lib/ruby/2.0.0/fileutils.rb:519:inb
lock in mv'
from C:/HashiCorp/Vagrant/embedded/lib/ruby/2.0.0/fileutils.rb:1552:in block in fu_each_src_dest' from C:/HashiCorp/Vagrant/embedded/lib/ruby/2.0.0/fileutils.rb:1568:in
fu_each_src_dest0'
from C:/HashiCorp/Vagrant/embedded/lib/ruby/2.0.0/fileutils.rb:1550:in fu_each_src_dest' from C:/HashiCorp/Vagrant/embedded/lib/ruby/2.0.0/fileutils.rb:508:inm
v'
from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.7.2/lib/vagrant/b
ox_collection.rb:190:in block (4 levels) in add' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.7.2/lib/vagrant/b ox_collection.rb:177:ineach'
from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.7.2/lib/vagrant/b
ox_collection.rb:177:in block (3 levels) in add' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.7.2/lib/vagrant/b ox_collection.rb:436:inwith_temp_dir'
from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.7.2/lib/vagrant/b
ox_collection.rb:131:in block (2 levels) in add' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.7.2/lib/vagrant/b ox_collection.rb:436:inwith_temp_dir'
from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.7.2/lib/vagrant/b
ox_collection.rb:112:in block in add' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.7.2/lib/vagrant/b ox_collection.rb:423:inblock in with_collection_lock'
from C:/HashiCorp/Vagrant/embedded/lib/ruby/2.0.0/monitor.rb:211:in mon _synchronize' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.7.2/lib/vagrant/b ox_collection.rb:422:inwith_collection_lock'
from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.7.2/lib/vagrant/b
ox_collection.rb:101:in add' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.7.2/lib/vagrant/a ction/builtin/box_add.rb:337:inbox_add'
from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.7.2/lib/vagrant/a
ction/builtin/box_add.rb:130:in add_direct' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.7.2/lib/vagrant/a ction/builtin/box_add.rb:106:incall'
from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.7.2/lib/vagrant/a
ction/warden.rb:34:in call' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.7.2/lib/vagrant/a ction/builder.rb:116:incall'
from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.7.2/lib/vagrant/a
ction/runner.rb:66:in block in run' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.7.2/lib/vagrant/u til/busy.rb:19:inbusy'
from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.7.2/lib/vagrant/a
ction/runner.rb:66:in run' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.7.2/lib/vagrant/a ction/builtin/handle_box.rb:79:inhandle_box'
from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.7.2/lib/vagrant/a
ction/builtin/handle_box.rb:42:in block in call' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.7.2/lib/vagrant/a ction/builtin/handle_box.rb:36:insynchronize'
from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.7.2/lib/vagrant/a
ction/builtin/handle_box.rb:36:in call' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.7.2/lib/vagrant/a ction/warden.rb:34:incall'
from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.7.2/lib/vagrant/a
ction/warden.rb:95:in block in finalize_action' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.7.2/lib/vagrant/a ction/warden.rb:34:incall'
from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.7.2/lib/vagrant/a
ction/warden.rb:34:in call' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.7.2/lib/vagrant/a ction/builder.rb:116:incall'
from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.7.2/lib/vagrant/a
ction/runner.rb:66:in block in run' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.7.2/lib/vagrant/u til/busy.rb:19:inbusy'
from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.7.2/lib/vagrant/a
ction/runner.rb:66:in run' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.7.2/lib/vagrant/a ction/builtin/call.rb:53:incall'
from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.7.2/lib/vagrant/a
ction/warden.rb:34:in call' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.7.2/plugins/provi ders/virtualbox/action/check_virtualbox.rb:17:incall'
from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.7.2/lib/vagrant/a
ction/warden.rb:34:in call' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.7.2/lib/vagrant/a ction/builder.rb:116:incall'
from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.7.2/lib/vagrant/a
ction/runner.rb:66:in block in run' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.7.2/lib/vagrant/u til/busy.rb:19:inbusy'
from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.7.2/lib/vagrant/a
ction/runner.rb:66:in run' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.7.2/lib/vagrant/m achine.rb:214:inaction_raw'
from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.7.2/lib/vagrant/m
achine.rb:191:in block in action' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.7.2/lib/vagrant/e nvironment.rb:516:inlock'
from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.7.2/lib/vagrant/m
achine.rb:178:in call' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.7.2/lib/vagrant/m achine.rb:178:inaction'
from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.7.2/lib/vagrant/b
atch_action.rb:82:in `block (2 levels) in run'

Artifactory does not auto-restart

It starts up on initial provisioning, but is not currently set to restart if the vagrant VM is rebooted. Have to log in and do this. Have to configure the chef recipe to build espina with this correctly configured.

fix chefdk issue

in startup.sh and windows.bat we could do this automatically:

In a text editor open /opt/chefdk/embedded/apps/berkshelf/lib/berkshelf/berksfile.rb

Find the line starting with EXCLUDED_VCS_FILES_WHEN_VENDORING

change '.git' to '**/.git' in this line:

EXCLUDED_VCS_FILES_WHEN_VENDORING = ['.arch-ids', '{arch}', '.bzr',
'.bzrignore', '.bzrtags', 'CVS', '.cvsignore', '_darcs', '.git', '.hg',
'.hgignore', '.hgrags', 'RCS', 'SCCS', '.svn'].freeze

See berkshelf/vagrant-berkshelf#237.

Artifactory not launching correctly

odd thing is that the espina script ran fine

HTTP Status 404 - /artifactory/webapp/home.html

type Status report

message /artifactory/webapp/home.html

description The requested resource is not available.

Apache Tomcat/8.0.22

Need hot deploy for Apache

Hi Charlie!

I've added an important modification to my calavera environment and wanted to share it with you.
Just modified the /opt/tomcat_ROOT/conf/context.xml file on manos, brazos and cara to add this line

<WatchedResource>WEB-INF/lib/CalaveraMain.jar/</WatchedResource>

this will allow for hot deploy, no need to restart apache after builds.

Hope this helps!
Antonio

hombros failing on vagrant up - fix ssh

Hombros is failing on vagrant up:

Recipe Compile Error in /tmp/vagrant-chef/411882505a992344385486cbec4abb0b/cookbooks/hombros/recipes/default.rb
==> hombros: ================================================================================
==> hombros:
==> hombros:
==> hombros: Errno::ENOENT
==> hombros: -------------
==> hombros: No such file or directory @ rb_sysopen - /home/vagrant/.ssh/id_rsa

Apparently the key needs to be present on compile, but the assumption is that the shared default recipe would populate.

Going to refactor so that the default script is run on the base image, which is pretty well behaved and I think it's OK to make it a requirement that the base image be created first.

Not sure why this is only surfacing now, probably previous builds were not starting from as clean a slate as I thought (/mnt/shared/keys not empty)

We do no need to Exit from the VM

In the third part of lab 03 :
After we add our student ID to the java file, the lab says that we can exit from the VM and go to the main server. Whereas, all the commands after this step are done in “ vagrant@manos:/home/hijo$” . So, I did not exit from the VM and I completed the lab normally.
I think we should not exit from the VM.

need to correct permissions after startup.sh

after running startup.sh, non-owners of vagrant will see this on attempting to vagrant up.

need to correct permissions as indicated.

There was an error while executing VBoxManage, a CLI used by Vagrant
for controlling VirtualBox. The command and stderr is shown below.

Command: ["import", "-n", "/var/vagrant/.vagrant.d/boxes/opscode-ubuntu-14.04a/0/virtualbox/box.ovf"]

Stderr: 0%...
Progress state: VBOX_E_FILE_ERROR
VBoxManage: error: Appliance read failed
VBoxManage: error: Could not read OVF file 'box.ovf' (VERR_ACCESS_DENIED)
VBoxManage: error: Details: code VBOX_E_FILE_ERROR (0x80bb0004), component Appliance, interface IAppliance
VBoxManage: error: Context: "int handleImportAppliance(HandlerArg*)" at line 304 of file VBoxManageAppliance.cpp

vagrant box

Could you please explain the motivation behind using opscode-vm-bento.s3.amazonaws.com/vagrant/virtualbox/opscode_ubuntu-14.04_chef-provisionerless.box
vagrant box and why does it have to be downloaded all over again every time the base is created.

Thanks

Not clear instructions

In the third part of lab 03 ( at the end)
This sentence: “ Find the git commit hash associated with your commit, and run the revert command:” is not clear to me.
if you can write it in more details it will be great.

pull request question

I Charles. I have forked your repo and did some changes that might I would like to suggest you to pull. How do I create a pull request as I am a github newbie.

Thanks,
Liora

./startup.sh crashes

==> base: Mounting shared folders...
base: /home/base => /Users/Char/repos/Calavera
Failed to mount folders in Linux guest. This is usually because
the "vboxsf" file system is not available. Please verify that
the guest additions are properly installed in the guest and
can work properly. The command attempted was:

mount -t vboxsf -o uid=id -u vagrant,gid=getent group vagrant | cut -d: -f3 home_base /home/base
mount -t vboxsf -o uid=id -u vagrant,gid=id -g vagrant home_base /home/base

The error output from the last command was:

stdin: is not a tty
/sbin/mount.vboxsf: mounting failed with the error: No such device

view the output in a browser

In the first part of lab 03 ( at the end):
I can not see the output in Firefox because I do not have the browser on my laptop.
I got this error:

(process:4054): GLib-CRITICAL **: g_slice_set_config: assertion 'sys_page_size == 0' failed

(firefox:4054): Gtk-WARNING **: Locale not supported by C library.
Using the fallback 'C' locale.
Error: no display specified

If there is other options ( like viewing the outputs in Safari), it will be great to mention that.

problems initializing new pipeline

trying as su publicX user

./startup.sh gets

The Berkshelf version at "/usr/bin/berks" is invalid.
Vagrant Berkshelf requires ~> 4.0, but the current version is 3.2.4.

Please download and install the latest version of the ChefDK from:

https://downloads.chef.io/chef-dk

and follow the installation instructions. Do not forget to add the ChefDK to
your PATH.

need to revisit the base box location issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.