Skip to content
This repository has been archived by the owner on Nov 5, 2023. It is now read-only.

Add support for ADMINER_DESIGN variable #8

Open
mbalc opened this issue Nov 8, 2022 · 1 comment
Open

Add support for ADMINER_DESIGN variable #8

mbalc opened this issue Nov 8, 2022 · 1 comment

Comments

@mbalc
Copy link

mbalc commented Nov 8, 2022

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
Copy link

felipeolliveira commented Nov 5, 2023

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

🖖🏼

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants