Public Repository

Last pushed: a year ago
Short Description
adminer php page to access mysql and postgresql
Full Description

1) Download adminer.php
2) Create dockerfile
3) build image
4) run

download adminer package

wget https://www.adminer.org/static/download/4.2.4/adminer-4.2.4-en.php

mv adminer-4.2.4-en.php adminer.php

create docker file

vi dockerfile

FROM ubuntu
RUN apt-get -y install apache2 php5 php5-curl php5-cli php5-mysql php5-gd mysql-client mysql-server
RUN apt-get -y install postgresql postgresql-contrib
RUN apt-get -y install php5-pgsql
COPY adminer.php /var/www/html/
RUN chmod -R 777 /var/www/html/

build

docker build -t shantanuo/adminer1 .

run

docker run -i -t --rm -p 80:80 --name adminer1 shantanuo/adminer1

run this command to start apache once inside the container.

sudo service apache2 start

Docker Pull Command
Owner
shantanuo

Comments (0)