michalhosna / adminer-docker

ARCHIVED. Sorry, i do not use Adminer any more. See forks. Adminer docker image with extended env variables for autologin
https://github.com/michalhosna/adminer-docker/forks
Other
27 stars 12 forks source link

Add support for `ADMINER_DESIGN` variable #8

Open mbalc opened 1 year ago

mbalc commented 1 year ago

ADMINER_DESIGN environment variable, which works in the official Docker adminer image, does not work with this Docker image

https://hub.docker.com/_/adminer#choosing_a_design

felipeolliveira commented 9 months ago

I created my own Dockerfile from @michalhosna image:

FROM michalhosna/adminer

USER root

ARG ADMINER_DESIGN="nette"

WORKDIR /var/adminer
RUN echo "Getting design for Adminer: ${ADMINER_DESIGN}..."
RUN curl -L https://raw.githubusercontent.com/vrana/adminer/master/designs/${ADMINER_DESIGN}/adminer.css -o adminer.css

So you can run in container from a compose file...

# ...
services:
  adminer:
    build:
      context: "path/to/dockerfile"
      args:
        - ADMINER_DESIGN=dracula
# ...

Or build with docker run:

docker build -t adminer-auto-signin-with-theme .
docker run -d -p 8080:8080 adminer-auto-signin-with-theme 

image

🖖🏼