Skip to content

Commit

Permalink
uniformize READMEs to 'Usage with docker' (refs #27)
Browse files Browse the repository at this point in the history
  • Loading branch information
mborne committed Dec 10, 2022
1 parent 0fbd2dc commit 15af65d
Show file tree
Hide file tree
Showing 28 changed files with 85 additions and 94 deletions.
11 changes: 3 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,14 @@ See [notes about docker-compose](docs/docker-compose.md) for more details.
| [traefik](traefik/README.md) | A reverse proxy/load balancer including **configuration discovery** mechanism | ☑ | ☑ |
| [whoami](whoami/README.md) | An helloworld to discover [traefik](traefik/README.md) | ☑ | ☑ |

### CI/CD
### CI/CD pipeline

| Name | Description | Docker | K8S |
| -------------------------------- | --------------------------------------------------------------------------- | :-----: | :-----: |
| [Jenkins](jenkins/README.md) | Open source automation server with hundred of plugins (ansible, jmeter,...) | ☑ | ☑ |
| [ArgoCD](argocd/README.md) | GitOps **continuous delivery** tool for **Kubernetes** | NA | ☑ |
| [SonarQube](sonarqube/README.md) | Centralisation of Code Quality and Code Security metrics | ☑ | ☐ |
| [Vault](vault/README.md) | Secret storage and management server with an API | ☑ | ☐ |

### Authentication

Expand All @@ -36,12 +37,6 @@ See [notes about docker-compose](docs/docker-compose.md) for more details.
| [Keycloak](keycloak/README.md) | Open Source Identity and Access Management providing (**OIDC, SAML**) | ☑ | ☐ |
| [OpenLDAP](openldap/README.md) | Community developed **LDAP** software | ☑ | ☐ |

### Secrets

| Name | Description | Docker | K8S |
| ------------------------ | ------------------------------------------------ | :-----: | :-----: |
| [Vault](vault/README.md) | Secret storage and management server with an API | ☑ | ☐ |

### Storage

| Name | Description | Docker | K8S |
Expand All @@ -64,7 +59,7 @@ See [notes about docker-compose](docs/docker-compose.md) for more details.
| Name | Description | Docker | K8S |
| ---------------------------------------- | ------------------------------------------------------------------------------------- | :-----: | :-----: |
| [Elasticsearch](elasticsearch/README.md) | ELK - Log storage and indexation | ☑ | ☑ |
| [Kibana](kibana/README.md) | ELK - User Interface | ☑ | ☑ |
| [Kibana](kibana/README.md) | ELK - User Interface | ☑ | ☐ |
| [OpenSearch](opensearch/README.md) | Forked from [Elasticsearch](https://www.elastic.co/fr/elasticsearch/) by AWS | ☑ | ☑ |
| [Netdata](netdata/README.md) | A monitoring tool with an easy setup | ☑ | ☐ |
| [Fluend](fluentd/README.md) | An attempt to configure [Fluend](https://www.fluentd.org/) to collect containers logs | ☑ | ☐ |
Expand Down
4 changes: 2 additions & 2 deletions adminer/README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# adminer

Docker container running [adminer](https://hub.docker.com/_/adminer/)
Container running [adminer](https://hub.docker.com/_/adminer/).

## Usage with docker-compose
## Usage with docker

* Start adminer : `docker-compose up -d`
* Open https://adminer.dev.localhost/
Expand Down
4 changes: 3 additions & 1 deletion argocd/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@


# [Argo CD](https://argo-cd.readthedocs.io/en/stable/)
# Argo CD

Container running [Argo CD](https://argo-cd.readthedocs.io/en/stable/).

## Usage with kustomize

Expand Down
4 changes: 2 additions & 2 deletions cloudbeaver/README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# CloudBeaver

Container running [dbeaver/cloudbeaver](https://hub.docker.com/r/dbeaver/cloudbeaver) official image.
Container running [dbeaver/cloudbeaver](https://hub.docker.com/r/dbeaver/cloudbeaver).

## Usage with docker-compose
## Usage with docker

* Start cloudbeaver : `docker-compose up -d`
* Open https://cloudbeaver.dev.localhost/
Expand Down
22 changes: 20 additions & 2 deletions elasticsearch/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Containers running [Elasticsearch](https://www.elastic.co/elasticsearch/) for **

* [max_map_count >= 262144](../docs/max_map_count.md)

## Usage with docker-compose
## Usage with docker

* Start elasticsearch : `docker-compose up -d`
* Open https://es.dev.localhost or https://es.dev.localhost/_cat/nodes?v&pretty
Expand All @@ -30,7 +30,25 @@ kubectl apply -f https://download.elastic.co/downloads/eck/2.2.0/operator.yaml

...and usage in [geonetwork/manifest/base/elasticsearch.yaml](../geonetwork/manifest/base/elasticsearch.yaml) / [geonetwork/manifest/base/statefulset.yaml](../geonetwork/manifest/base/statefulset.yaml)

## See also

## Troubleshooting

### vm.max_map_count too low

> [1]: max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]
```bash
sudo sysctl -w vm.max_map_count=262144
```

### Disable disk quota / watermark

```bash
bash disable-quota.sh
```


## Resources

* [Install Elasticsearch with Docker](https://www.elastic.co/guide/en/elasticsearch/reference/7.15/docker.html#docker)
* [How to disable ElasticSearch disk quota / watermark](https://techoverflow.net/2019/04/17/how-to-disable-elasticsearch-disk-quota-watermark/) : avoid read-only problems
Expand Down
20 changes: 0 additions & 20 deletions elasticsearch/debug-compose.md

This file was deleted.

10 changes: 6 additions & 4 deletions fluentd/README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
# Fluentd

**WORK IN PROGRESS**

Container running [fluentd](https://www.fluentd.org/) to collect logs.

## Pre-requisite

* [OpenSearch](../opensearch/README.md) ( see [fluentd/conf/fluent.conf](fluentd/conf/fluent.conf) )

## Usage with docker-compose
## Usage with docker

* Read [conf/fluent.conf](conf/fluent.conf)

* Start containers :

Expand Down Expand Up @@ -34,8 +38,6 @@ docker run --rm --log-driver=fluentd --log-opt tag="docker.echo.{{.ID}}" ubuntu

## Usage with helm

**WORK IN PROGRESS**

* Add repository : `helm repo add fluent https://fluent.github.io/helm-charts`
* Update helm repositories : `helm repo update`
* Create namespace : `kubectl create namespace fluent-system`
Expand All @@ -51,7 +53,7 @@ Note :

* see [fluent-bit/values.yaml](https://github.com/fluent/helm-charts/blob/main/charts/fluent-bit/values.yaml)

## Reference
## Resources

* [docs.fluentd.org - container-deployment/docker-compose](https://docs.fluentd.org/container-deployment/docker-compose)
* [www.fluentd.org - Docker Logging](https://www.fluentd.org/guides/recipes/docker-logging)
4 changes: 2 additions & 2 deletions geonetwork/README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# GeoNetwork (CSW, CSW-T)

Docker container running [GeoNetwork](https://geonetwork-opensource.org/).
Container running [GeoNetwork](https://geonetwork-opensource.org/).

## Usage with docker-compose
## Usage with docker

* Start [Elasticsearch](../elasticsearch/README.md#usage-with-docker-compose)
* Start geonetwork : `docker-compose up -d`
Expand Down
8 changes: 4 additions & 4 deletions geoserver/README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@

# GeoServer (WMS, WFS, WMTS)
# GeoServer

Docker container running [GeoServer](https://geoserver.org/)
Container running [GeoServer](https://geoserver.org/) to serve spatial data (WMS, WFS, WMTS).

## Usage with docker-compose
## Usage with docker

* Build GeoServer : `docker-compose build`
* Build GeoServer : `docker-compose build` (see [Dockerfile](Dockerfile))

* Start GeoServer : `docker-compose up -d`

Expand Down
2 changes: 1 addition & 1 deletion jenkins/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Container running [Jenkins](https://www.jenkins.io/).

## Usage with docker-compose
## Usage with docker

See [github.com - mborne/docker-jenkins](https://github.com/mborne/docker-jenkins#docker-jenkins)

Expand Down
8 changes: 4 additions & 4 deletions keycloak/README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# [Keycloak](https://www.keycloak.org/)
# Keycloak

## Usage
Container running [Keycloak](https://www.keycloak.org/).

* Start [postgis](../postgis/README.md) and `createdb keycloak`
## Usage

* Start keycloak : `KEYCLOAK_ADMIN_PASSWORD=ChangeIt docker compose up -d`
* Start keycloak stack : `KEYCLOAK_ADMIN_PASSWORD=ChangeIt docker compose up -d`

* Open http://keycloak.dev.localhost

Expand Down
4 changes: 2 additions & 2 deletions kibana/README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Kibana

Docker container running [Kibana](https://www.elastic.co/kibana/) as a single node for dev purpose.
Container running [Kibana](https://www.elastic.co/kibana/) for **DEV purpose**.

## Usage with docker-compose
## Usage with docker

* Start kibana : `docker-compose up -d`
* Open https://kibana.dev.localhost
2 changes: 1 addition & 1 deletion kubernetes-dashboard/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ kubectl -n kubernetes-dashboard get secret \
* Start `kubectl proxy`
* Open http://localhost:8001/api/v1/namespaces/kubernetes-dashboard/services/https:kubernetes-dashboard:/proxy/

## Reference
## Resources

* [kubernetes.io - Tableau de bord (Dashboard)](https://kubernetes.io/fr/docs/tasks/access-application-cluster/web-ui-dashboard/)
* [github.com - kubernetes/dashboard](https://github.com/kubernetes/dashboard/)
4 changes: 1 addition & 3 deletions longhorn/README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
# Longhorn

[Longhorn](https://longhorn.io/) is a cloud native distributed block storage for Kubernetes :

Container runner [Longhorn](https://longhorn.io/) which is a cloud native distributed block storage for Kubernetes :

![Longhorn nodes](img/longhorn-nodes.png)


## System requirements

```bash
Expand Down
15 changes: 11 additions & 4 deletions mailer/README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,18 @@
# mailer

STMP relay based on [namshi/smtp](https://hub.docker.com/r/namshi/smtp) image.
Container running [namshi/smtp](https://hub.docker.com/r/namshi/smtp) which is a STMP relay.

## Usage with docker-compose
> **Warning:** See [namshi/smtp -tags](https://hub.docker.com/r/namshi/smtp/tags) currently displaying **Last pushed 3 years ago by namshi**.
* 1) Create `config.env` file (see [config.env.dist](config.env.dist) or [namshi/smtp on dockerhub](https://hub.docker.com/r/namshi/smtp) )
* 2) Start container : `docker-compose up -d`
## Usage with docker

* Create `config.env` file to provide `GMAIL_USER` and `GMAIL_PASSWORD`

> See [config.env.dist](config.env.dist) or [namshi/smtp on dockerhub](https://hub.docker.com/r/namshi/smtp)
* Start container : `docker-compose up -d`

* Configure other tools to use `mailer:25` to send mails.

## Testing

Expand Down
8 changes: 4 additions & 4 deletions mailhog/README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# [MailHog](https://github.com/mailhog/MailHog#readme)
# MailHog

Docker container running mailhog to test email sending from application
Container running running [MailHog](https://github.com/mailhog/MailHog#readme) to test email sending from applications.

## Usage
## Usage with docker

* Start postgis : `docker-compose up -d`

Expand All @@ -20,6 +20,6 @@ this is a test email
quit
```

* Open http://mailhog.localhost or http://mailhog.localhost/api/v2/messages
* Open http://mailhog.dev.localhost or http://mailhog.dev.localhost/api/v2/messages

![Test email](doc/test-email.png)
2 changes: 1 addition & 1 deletion minio/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Container running [MinIO](https://min.io/) offering S3 compatible object storage.

## Usage with docker-compose
## Usage with docker

* Start containers : `MINIO_ROOT_PASSWORD=ChangeIt docker compose up -d`
* Open https://minio.dev.localhost/
Expand Down
2 changes: 1 addition & 1 deletion netdata/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Container running [netdata/netdata](https://hub.docker.com/r/netdata/netdata) image.

## Usage with docker-compose
## Usage with docker

* Start instance : `NETDATA_NAME=${HOSTNAME} docker-compose up -d`
* Open https://netdata.dev.localhost or http://localhost:19999
Expand Down
4 changes: 1 addition & 3 deletions nextcloud/README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
# Nextcloud

## Description

Container running [nextcloud](https://hub.docker.com/_/nextcloud) official image.

## Usage with docker-compose
## Usage with docker

* Start nextcloud : `docker-compose up -d`

Expand Down
10 changes: 3 additions & 7 deletions nexus/README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
# Nexus

## Description
Containers running [sonatype/nexus3](https://hub.docker.com/r/sonatype/nexus3/).

Containers running [sonatype/nexus3](https://hub.docker.com/r/sonatype/nexus3/)

## Usage with docker-compose
## Usage with docker

* Start nexus : `docker-compose up -d`

* Retreive initial admin password : `docker exec -ti nexus cat /nexus-data/admin.password`
* Retrieve initial admin password : `docker exec -ti nexus cat /nexus-data/admin.password`

* Open nexus : https://nexus.dev.localhost/

Expand All @@ -33,5 +31,3 @@ docker push registry.dev.localhost/hello-world:latest

Check https://registry.dev.localhost/v2/_catalog and https://registry.dev.localhost/v2/hello-world/tags/list



2 changes: 0 additions & 2 deletions openldap/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# [OpenLDAP](https://www.openldap.org/)

## Description

Containers running [osixia/openldap](https://github.com/osixia/docker-openldap#osixiaopenldap) and [osixia/docker-phpLDAPadmin](https://github.com/osixia/docker-phpLDAPadmin).

## Usage
Expand Down
2 changes: 1 addition & 1 deletion opensearch/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Containers running [OpenSearch](https://opensearch.org/) for **DEV purpose**.

* [max_map_count >= 262144](../docs/max_map_count.md)

## Usage with docker-compose
## Usage with docker

WARNING : Read [docker-compose.yml](docker-compose.yml) and note that **security is disabled**!

Expand Down
4 changes: 2 additions & 2 deletions postgis/README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# PostGIS

Container running [postgis](https://registry.hub.docker.com/r/postgis/postgis/).
Container running [PostgreSQL with the spatial extension PostGIS](https://registry.hub.docker.com/r/postgis/postgis/).

## Usage with docker-compose
## Usage with docker

* Start postgis :

Expand Down
4 changes: 2 additions & 2 deletions sonarqube/README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# SonarQube

Container running [SonarQube](https://www.sonarqube.org/) official image.
Container running [SonarQube](https://www.sonarqube.org/).

## Usage with docker-compose
## Usage with docker

* Start : `docker-compose up -d`
* Open https://sonarqube.dev.localhost
Expand Down
4 changes: 1 addition & 3 deletions traefik/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@

Container running [traefik proxy](https://doc.traefik.io/traefik/).

## Usage with docker-compose

### Getting started
## Usage with docker

* Build [mborne/traefik-dev](img/traefik-dev/README.md) image : `docker compose build --pull`
* Start traefik : `docker compose up -d`
Expand Down
Loading

0 comments on commit 15af65d

Please sign in to comment.