Skip to content

mikesprague/vagrant-lemtl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Vagrant LEMTL v2.0.0 Vagrant v1.9.0 Virtual Box v5.1.10 Lucee v5.1.0.17

Vagrant LEMTL

Vagrant box with Linux, Nginx, MariaDB (or MySQL), Tomcat, and Lucee for local development with CFML and Java


Find this project useful? Show some love 💞 and buy me a cup of cofee! ☕


Last Updated December 1, 2016

Prerequisites

NOTE: All version numbers used in this document are confirmed to work, and are current, as of the above last updated date

Required

It is assumed you have Virtual Box and Vagrant installed. If not, then grab the latest version of each at the links below:

Highly Recommended

Once Vagrant is installed, or if it already is, it's highly recommended that you install the following Vagrant plugins:


What's Included

  • Ubuntu Server v14.04.4 LTS (Trusty Tahr) 64bit
    • Make sure curl, wget, unzip, zip, iptables, debconf-utils, and software-properties-common are installed
    • Set vm timezone (configure in Vagrantfile)
    • NOTE: Tested and working with Ubuntu v12.04, v14.04, v14.10, v16.04 (configurable via Vagrantfile)
  • Nginx v1.11.5
    • Set up to serve all static content and reverse-proxy cfm/cfc/jsp requests to Tomcat
    • MariaDB v10.1.x or MySQL v5.7.x (defaults to MariaDB, configurable in Vagrantfile)
    • lower_case_table_names = 1 (disables case sensitivity)
    • bind-address set to 0.0.0.0 so database server can be accessed from the host machine directly (without ssh tunnel)
  • Tomcat v7.0.52 with Java (OpenJDK) v1.8.0_91
    • catalina.properties tweaks for improved performance
  • Lucee v5.1.0.17 (dev)
    • cfspreadsheet-lucee-5 pre-installed
      • Many thanks to Andrew Kretzer for his work updating cfspreadsheet-lucee for Lucee 5 compatibility
    • jsoup v1.9.2 included in Lucee server bundles directory
    • Tweaks to Lucee via server admin
      • Smart whitespace suppression
      • Preserve single quotes option enabled for dataase queries
      • Update provider set to Development Releases
      • Default cache (ehcache) setup so cacheGet/cachePut/etc work out of the box

Installation

The first time you clone the repo and bring the box up, it may take several minutes. If it doesn't explicitly fail/quit, then it is still working (the Linux updates, on first run, can take a while).

git clone https://github.com/mikesprague/vagrant-lemtl.git
cd vagrant-lemtl/vagrantroot && vagrant up

Once the Vagrant box finishes and is ready, you should see something like this in your terminal:

==> default: Vagrant-LEMTL-v2.0.0
==> default:
==> default: ===============================================================
==> default:
==> default: http://www.vagrant-lemtl.local (192.168.50.25)
==> default:
==> default: Lucee Server/Web Context Administrators
==> default:
==> default: http://www.vagrant-lemtl.local/lucee/admin/server.cfm
==> default: http://www.vagrant-lemtl.local/lucee/admin/web.cfm
==> default: Password (for each admin): password
==> default:
==> default:
==> default: Database Server Connection Info for External Connections
==> default: from Host Machine
==> default:
==> default: Server: db.vagrant-lemtl.local
==> default: Port: 3306
==> default: User: root
==> default: Password: password
==> default:
==> default: ===============================================================

Once you see that, you should be able to browse to http://www.vagrant-lemtl.local/ or http://192.168.50.25/ (it may take a few minutes the first time a page loads after bringing your box up, subsequent requests should be much faster).

NOTES

  • On Windows (host machines) you should run your terminal as an Administrator; you will also need to make sure your Hosts file isn't set to read-only if you want to take advantage of the hostname functionality. Alternatively, simply use the IP address anywhere you would use the hostname (connecting to database server, etc).

  • Git Large File Storage (Git LFS) enabled via the .gitattributes file for .jar and .lco files by default. This should not cause any issues if you do not have Git LFS installed/enabled. If you don't have Git LFS installed locally (or enabled on your GitHub account), it should just ignore the attributes. If there are any problems, please report them in the issue tracker.


References

The following two posts, written by Mark Drew, heavily influenced this project:

Help with Nginx config from the following blog post by Yuri Vorontsov:


License

The MIT License (MIT)

Copyright (c) 2015 Mike Sprague

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.

About

Vagrant box with Linux, Nginx, MariaDB (or MySQL), Tomcat, and Lucee for local development with CFML and Java

Resources

License

Stars

Watchers

Forks

Packages

No packages published