genofire/hs_monolith
genofire
/
hs_monolith
Archived
1
0
Fork 0
This repository has been archived on 2020-09-27. You can view files and clone it, but cannot push or open issues or pull requests.
hs_monolith/README.md

52 lines
2.4 KiB
Markdown
Raw Normal View History

2017-03-09 00:05:20 +01:00
# Getting Started
2017-03-22 20:42:38 +01:00
## 1. Install Docker
2017-03-22 10:26:48 +01:00
2017-03-22 20:42:38 +01:00
There are several ways to install docker depending on your host operating system (OS).
2017-03-22 10:26:48 +01:00
Only the [Docker Community Edition (Docker CE)](https://www.docker.com/community-edition) from the stable channel is required.
### Windows 10 Proffesional or Enterprise Edition
2017-03-22 20:42:38 +01:00
If you have Windows 10 Proffesional or Enterprise then Docker will work "nativley" using the internal Hyper-V virtualization technology.
Follow these [installation instructions](https://store.docker.com/editions/community/docker-ce-desktop-windows?tab=description)
2017-03-22 10:26:48 +01:00
and check if all is working fine according to [this little guide](https://docs.docker.com/docker-for-windows/).
2017-03-22 20:42:38 +01:00
* Docker tools should be readily available in any shell/terminal
2017-03-22 10:26:48 +01:00
### Other Windows Edition
2017-03-22 20:42:38 +01:00
Docker does not run "natively" on other Windows versions and editions.
However, Docker provides the [Docker Toolbox](https://docs.docker.com/toolbox/overview/) to install the neccassry tooling and
2017-03-22 10:26:48 +01:00
let Docker use the VirtualBox virtualization technology. Follow these [installation instructions](https://docs.docker.com/toolbox/toolbox_install_windows/).
* It will also install a `bash` like Docker Quickstart Terminal
2017-03-22 20:42:38 +01:00
* The Toolbox version requires `bash` like terminals, hence one can also use the Git Bash but needs to setup the environment by running `eval $("docker-machine.exe" env)`
2017-03-22 10:26:48 +01:00
### Mac
2017-03-22 20:42:38 +01:00
Here, the choice between newer more "native" installations or use of Docker Toolbox also depends on the version of Mac (Requires OSX Yosemite 10.10.3 or above).
2017-03-22 10:26:48 +01:00
Then it will be depply integrated with the MacOS Hypervisor framework, networking and filesystem.
Otherwise also install Docker Toolbox following [these instructions](https://docs.docker.com/toolbox/toolbox_install_mac/).
### Linux/Unix
There should be no issue if the distribution uses a recent kernel.
## 2. Run Monolith
1. Set up an environment variable `LAB_MONOLITH_DB_HOST` and assign the docker host's IP.
2017-03-09 00:05:20 +01:00
For *docker machine* type `docker-machine env` and use the value of `DOCKER_HOST`,
otherwise `localhost` is probably correct.
2017-03-09 00:05:20 +01:00
2. Set up an environment variable `LAB_MONOLITH_DB_PORT` and assign any free port you want the PostgreSQL Database to use.
3. Set up an environment variable `LAB_MONOLITH_DB_PASSWORD` and assign any password.
4. `./start-db.sh`
2017-03-09 00:05:20 +01:00
Starts a PostgreSQL database using the password from `LAB_MONOLITH_DB_PASSWORD`.
2017-03-09 00:05:20 +01:00
5. `./gradlew bootRun`
6. Open http://localhost:8080
7. Happy exploring and di-secting