/hska-vis-legacy

This project is the quick setup of the legacy webshop of the masters course 'Distributed Information Systems' at the University of Applied Sciences (Karlsruhe).

Primary LanguageJavaMIT LicenseMIT

MIT license Travis Build Status

Distributed Information Systems Laboratory aka vis-lab

This project is the quick setup of the legacy webshop of the masters course 'Distributed Information Systems' at the University of Applied Sciences (Karlsruhe).

Table of Contents

Prerequisites

Usage

You can run the images from docker hub which is preferred or built it on your own.

Quick Start (docker-hub)

  • Start Docker daemon
  • Copy the docker-compose.yml locally in a desired folder and run
$ docker-compose up -d
# to follow the logs
$ docker-compose logs -tf

Built it on your own

  • Start Docker daemon
  • Check out the project, export variables and simply run the script:
$ chmod +x build_and_run.sh
$ ./build_and_run.sh
  • It builds the web app war, packs it into a docker tomcat8 container, and sets the user tomcat with password admin for the Management Console at http://localhost:8888/
  • Initializes the MySQL Database docker container with the db user defined in hibernate.cfg.xml
  • Sets up both containers and make the legacy webshop available under http://localhost:8888/EShop-1.0.0/

Notes

Windows support

This project has not been tested on Windows. Feel free to contribute a .bat file.

Travis support

Add a $DOCKER_USER and $DOCKER_PASS variable to the travis build if you want CI.

Database Cleanup

If you change the user and password of the MySQL database, you should run

$ docker-compose -f docker-compose-legacy.yml rm -v
$ rm -rf .data

Details can be found here

License

Copyright (c) 2017 Manuel Vogel
Source code is open source and released under the MIT license.