adminer-docker icon indicating copy to clipboard operation
adminer-docker copied to clipboard

Add support for `ADMINER_DESIGN` variable

Open mbalc opened this issue 1 year ago • 1 comments

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

mbalc avatar Nov 08 '22 15:11 mbalc

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

🖖🏼

felipeolliveira avatar Nov 05 '23 18:11 felipeolliveira