Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/hunsche/oauth2-rad-tdc2018


https://github.com/hunsche/oauth2-rad-tdc2018

Last synced: 17 days ago
JSON representation

Awesome Lists containing this project

README

        

# Docker

This project requires the tools:

- Docker Machine
- Docker Compose
- Docker

### Installation

Use git bash to configuration tools.

Install Docker Machine.

```sh
$ mkdir -p "$HOME/bin"
$ curl -L "https://github.com/docker/machine/releases/download/v0.14.0//docker-machine-Windows-x86_64.exe" > "$HOME/bin/docker-machine.exe"
$ chmod +x "$HOME/bin/docker-machine.exe"
```

Create and configure default machine.

```sh
$ docker-machine create -d virtualbox --virtualbox-disk-size "50000" default
$ eval $(docker-machine env default)
```

Install Docker Compose

```sh
$ curl -L "https://github.com/docker/compose/releases/download/1.22.0-rc1/docker-compose-Windows-x86_64.exe" > "$HOME/bin/docker-compose.exe"
$ chmod +x "$HOME/bin/docker-compose.exe"
```

Install Docker

```sh
$ mkdir -p "$HOME/tmp"
$ curl -L "https://download.docker.com/win/static/stable/x86_64/docker-17.09.0-ce.zip" > "$HOME/tmp/docker.zip"
$ unzip "$HOME/tmp/docker.zip" -d "$HOME/tmp/"
$ mv "$HOME/tmp/docker/docker.exe" "$HOME/bin/docker.exe"
$ rm -rf "$HOME/tmp/docker" "$HOME/tmp/docker.zip"
```

### Start

Use git bash to start service.

Get IP.

```sh
$ docker-machine ip
```

Open project folder.

```sh
$ docker-compose up
```

Set Enviroments:
- STATIC_PATH: Path of static files ".../oauth2-rad-tdc2018/src/static"
- REDIS_HOST: Host of Redis "192.168.99.100"
- REDIS_PORT: Port of Redis "6379"