Skip to content

Commit

Permalink
add support for docker web console: #891
Browse files Browse the repository at this point in the history
  • Loading branch information
gschmutz committed Jun 7, 2024
1 parent c873239 commit 5b35084
Show file tree
Hide file tree
Showing 7 changed files with 59 additions and 0 deletions.
1 change: 1 addition & 0 deletions documentation/changes.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ The Modern Data Platform version 1.18.0 contains the following bug fixes and enh
* Weaviate Verba
* Unstructured API
* gpt-researcher
* Docker Exec Web Console

### Version upgrades

Expand Down
2 changes: 2 additions & 0 deletions documentation/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -1556,6 +1556,8 @@ For each service there might be some other settings, such as controlling the num
|------------------------------------------------ |:-------: |------- |------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [**_Portainer_**](./services/portainer.md)     ![x86-64](./images/x86-64.png) ![arm](./images/arm.png) | | | | | |
| `PORTAINER_enable` | `false` | 1.0.0 | Generate Portainer Container UI service | | |
| [**_Docker Exec Web Console_**](./services/docker-exec-webconsole.md)     ![x86-64](./images/x86-64.png) | | | | | |
| `DOCKER_EXEC_WEBCONSOLE_enable` | `false` | 1.0.0 | Generate Docker Exec Web Console service | | |
| [**_Rancher_**](./services/rancher.md)     ![x86-64](./images/x86-64.png) ![arm](./images/arm.png) | | | | | |
| `RANCHER_enable` | `false` | 1.18.0 | Generate Rancher service | | |
| `RANCHER_volume_map_data` | `false` | 1.18.0 | Volume map data folder into the container. | | |
Expand Down
1 change: 1 addition & 0 deletions documentation/port-mapping.md
Original file line number Diff line number Diff line change
Expand Up @@ -635,6 +635,7 @@ Container Port(s) | Internal Port(s) | Service (alternatives) |
28372 | 5001 | nlm-ingestor |
28373 | 8000 | verba |
28374 | 8000 | unstructured-api |
28375 | 8888 | docker-exec-webconsole |

## Ports > 28500

Expand Down
16 changes: 16 additions & 0 deletions documentation/services/docker-exec-webconsole.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# `docker exec` web console

A web UI to docker exec from the browser

**[Documentation](https://github.com/bitbull-team/docker-exec-web-console)** | **[GitHub](https://github.com/bitbull-team/docker-exec-web-console)**

## How to enable?

```
platys init --enable-services DOCKER_EXEC_WEBCONSOLE
platys gen
```

## How to use it?

Navigate to <http://dataplatform:28375>.
2 changes: 2 additions & 0 deletions modern-data-platform-stack/generator-config/stack-config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -763,6 +763,8 @@ vars:

# Portainer
PORTAINER_version: alpine-sts
# Docker Exec Web Console
DOCKER_EXEC_WEBCONSOLE_version: latest
# Rancher
RANCHER_version: latest

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -519,6 +519,7 @@ networks:
{% set __ETCD_version = ETCD_version | default('latest') -%}
{% set __ETCD_BROWSER_version = ETCD_BROWSER_version | default('latest') -%}
{% set __PORTAINER_version = PORTAINER_version | default('latest') -%}
{% set __DOCKER_EXEC_WEBCONSOLE_version = DOCKER_EXEC_WEBCONSOLE_version | default('latest') -%}
{% set __RANCHER_version = RANCHER_version | default('latest') -%}
{% set __CETUSGUARD_version = CETUSGUARD_version | default('latest') -%}
{% set __CADVISOR_version = CADVISOR_version | default('latest') -%}
Expand Down Expand Up @@ -872,6 +873,7 @@ networks:
{% set FIREFOX_enable = false -%}
{% set FILE_BROWSER_enable = false -%}
{% set ETCD_E3W_enable = false -%}
{% set DOCKER_EXEC_WEBCONSOLE_enable = false -%}
{% set CADVISOR_enable = false -%}
{% set DOCKER_REGISTRY_enable = false -%}
{% set DOCKER_REGISTRY_UI_enable = false -%}
Expand Down Expand Up @@ -20870,6 +20872,36 @@ services:
restart: {{container_restart_policy}}
{% endif %} {# PORTAINER_enable #}

{% if DOCKER_EXEC_WEBCONSOLE_enable | default(false) %}
# ================================== Portainer ========================================== #
docker-exec-webconsole:
image: bitbull/docker-exec-web-console:{{__DOCKER_EXEC_WEBCONSOLE_version}}
container_name: docker-exec-webconsole
hostname: docker-exec-webconsole
labels:
com.platys.name: "docker-exec-webconsole"
com.platys.description: "Docker Exec Web Console"
com.platys.webui.title: "Docker Exec Web Console"
com.platys.webui.url: "http://dataplatform:28375"
ports:
- 28375:8888
{%if use_timezone | default(false) %}
environment:
TZ: {{use_timezone}}
{% endif -%} {# use_timezone #}
volumes:
- ./data-transfer:/data-transfer
- /var/run/docker.sock:/var/run/docker.sock
{%if use_timezone | default(false) %}
- "./etc/timezone:/etc/timezone:ro"
- "./etc/localtime:/etc/localtime:ro"
{% endif -%} {# use_timezone #}
{%if logging_driver is defined and logging_driver and logging_driver in ('fluentd','loki','syslog','splunk') | default(false) %}
<<: *logging
{% endif -%} {# logging_driver is defined ... #}
restart: {{container_restart_policy}}
{% endif %} {# DOCKER_EXEC_WEBCONSOLE_enable #}

{% if RANCHER_enable | default(false) %}
# ================================== Rancher ========================================== #
rancher:
Expand Down
5 changes: 5 additions & 0 deletions modern-data-platform-stack/generator-config/vars/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2456,6 +2456,11 @@
#
PORTAINER_enable: false

#
# ===== Docker Exec Web Console ========
#
DOCKER_EXEC_WEBCONSOLE_enable: false

#
# ===== Rancher UI ========
#
Expand Down

0 comments on commit 5b35084

Please sign in to comment.