Next: , Previous: , Up: Testing and Developing Trip   [Contents][Index]


8.2 Lima

This option provides a working example of the application running in a virtual machine (VM) for those operating systems supported by Lima..

  1. Download and install Lima
  2. Clone this repository to a suitable location on the machine you are going to use to host the application and VM:
    $ cd ~/projects
    $ git clone git://www.fdsd.co.uk/trip-server-2.git
    
  3. Create the Lima VM
    $ cd ~/projects/trip-server-2
    $ limactl create trip-server.yaml
    

    On the first occasion of running Lima, it will download a Debian image and create the initial environment setup.

  4. Start the Lima VM
    $ limactl start trip-server
    

    Lima will start the VM and run the scripts to build the application and it’s dependencies. This is likely to take some ten minutes or longer.

  5. Use your browser to navigate to http://localhost:8080/ on the host machine and login providing the following credentials:
    • user@trip.test rasHuthlutcew7
    • admin@trip.test 7TwilfOrucFeug
  6. When finished, stop the VM with:
    $ limactl stop trip-server
    

Lima shares (as read-only) the source folder in the VM at ~/trip-server-2. It creates a build directory at ~/build and builds the application running configure command in that folder. This gives you a working development environment.

See Vagrant) for further information, e.g. configuring time zone and locale settings, as Lima and Vagrant have a lot of similarities.