Skip to content

Commit

Permalink
Merge pull request #7 from iqoption/add-docker-env
Browse files Browse the repository at this point in the history
Add docker_api_version, add TZ support, add new variables in README.md
  • Loading branch information
arslanbekov authored Jan 16, 2018
2 parents 16ca384 + e5596ae commit 543d51a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,12 @@ Set up [GridRouter](https://github.com/aerokube/ggr) in docker
* `grid_router_qouta_password`: [Default: `selenoid`] GridRouter quota password
* `grid_router_qouta_user`: [Default: `selenoid`] GridRouter quota user
* `grid_router_gr_path`: [Default: `/etc/grid-router`] Path to GridRouter
* `grid_router_port`: [Default: `4444`] GridRouter port
* `grid_router_docker_api_version`: [Default: `1.24`] Docker api version (for GridRouter)
* `grid_router_host_list`: [Default: `group1`]
* `grid_router_region`: [Default: `region1`]
* `grid_router_host_name`: [Default: `selenoid[1:10].example.com`] Hostname selenoid
* `grid_router_time_zone`: [Default: `Europe/Moscow`] Timezone in container

Ggr is [using](http://aerokube.com/ggr/latest/#_creating_users_file) htpasswd files to store authentication data. Passwords are stored in encrypted form.

Expand Down
2 changes: 2 additions & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ grid_router_qouta_path: /etc/grid-router/quota
grid_router_qouta_password: selenoid
grid_router_qouta_user: selenoid
grid_router_gr_path: /etc/grid-router
grid_router_port: 4444
grid_router_docker_api_version: 1.24
grid_router_host_list: group1
grid_router_region: region1
grid_router_host_name: selenoid[1:10].example.com
grid_router_time_zone: Europe/Moscow
5 changes: 4 additions & 1 deletion tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,5 +45,8 @@
state: started
volumes:
- "{{ grid_router_gr_path }}:{{ grid_router_gr_path }}:ro"
env:
TZ: "{{ grid_router_time_zone }}"
DOCKER_API_VERSION: "{{ grid_router_docker_api_version }}"
ports:
- "4444:4444"
- "{{ grid_router_port }}:{{ grid_router_port }}"

0 comments on commit 543d51a

Please sign in to comment.