Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/mkilchhofer/openshift-phpmyadmin

Patched "openshift compatible" (rootless) container image of phpmyadmin
https://github.com/mkilchhofer/openshift-phpmyadmin

Last synced: 10 days ago
JSON representation

Patched "openshift compatible" (rootless) container image of phpmyadmin

Awesome Lists containing this project

README

        

# About
The official upstream Docker image from [phpmyadmin](https://hub.docker.com/r/phpmyadmin/phpmyadmin/) isn't compatible with OpenShift Online. This is because OpenShift don't allow you to run stuff insides containers as `root`.

# How to configure this image on OpenShift

## Secrets
Create a secret with this command:
```
secret=$(tr -dc 'a-zA-Z0-9~!@#$%^&*_()+}{?>";.,[]=-' < /dev/urandom | fold -w 32 | head -n 1)

cat <> secret.yaml
apiVersion: v1
kind: Secret
metadata:
name: phpmyadmin
stringData:
blowfish_secret: ${secret}
EOF
```

And upload it to OpenShift:
```
oc create -f secret.yaml
```
## Environtment Variables
![openshift envionment variables](https://github.com/mkilchhofer/openshift-phpmyadmin/raw/master/docs/images/openshift_envionment_variables.png "OpenShift Envionment Variables")