Skip to content

gearboxworks/docker-phpmyadmin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gearbox

phpmyadmin Docker container service for Gearbox

This is the repository for the phpmyadmin Docker container implemented for Gearbox.

Repository Info

GitHub commit: commit-date

GitHub release(latest): last-release-date last-release-date release-state

Supported versions and respective Dockerfiles

Service GitHub Version Docker Version Docker Size Docker Tags
phpmyadmin phpmyadmin Docker Version) Docker Size (4.7.9, 4.7)
phpmyadmin phpmyadmin Docker Version) Docker Size (4.8.5, 4.8)
phpmyadmin phpmyadmin Docker Version) Docker Size (4.9.4, 4.9)
phpmyadmin phpmyadmin Docker Version) Docker Size (5.0.1, 5.0, latest)

About this container.

A driving force behind Gearbox is to improve the user experience using software, and especially for software developers.

Our vision is to empower developers and other software users to quickly and easily use almost any version of a software service, command line tool or API without without first getting bogged down with installation and configuration.

In other words, our vision for Gearbox users is that software "just works".

Using this container.

This container has been designed to work within the Gearbox framework. However, due to the flexability of Gearbox, it can be used outside of this framework.

There are three methods:

Method 1: Using gb-launch

gb-launch is a tool specifically designed to interact with a Gearbox Docker container.

It provides three important functional areas, without any Docker container learning curve:

  • Allows control over Gearbox Docker containers: stop, start, create, remove.
  • Build, update, modify and release Docker images.
  • Acts as a proxy for interactive commands within a Gearbox Docker container.

It also provides a functional SSH daemon for connecting remotely as well as a standard set of common tools and utilities.

Setup from GitHub repo

gb-launch is currently in beta testing and is included along with all Gearbox Docker repos. Once out of beta, it will be included within the Gearbox installation package.

For now, simply clone this repository to your local machine.

git clone https://github.com/gearboxworks/docker-phpmyadmin.git

Running gb-launch

There are many ways to call gb-launch, either directly or indirectly. Additionally, all host environment variables will be imported into the container seamlessly. This allows a devloper to try multiple versions of software as though they were installed locally.

If a container is missing, it will be downloaded and created. Multiple versions can co-exist.

Create, and start the phpmyadmin Gearbox container.

./bin/gb-launch -gb-name phpmyadmin

Create, and start the phpmyadmin Gearbox container. Run a shell.

./bin/gb-launch -gb-name phpmyadmin -gb-shell

Create, and start the phpmyadmin Gearbox container with version 4.7.9 and run a shell.

./bin/gb-launch -gb-name phpmyadmin -gb-version 4.7.9 -gb-shell

If phpmyadmin is symlinked to gb-launch, then you can drop the -gb-name flag.

./bin/phpmyadmin

Running phpmyadmin Gearbox container default command. If a container has a default interactive command, arguments can be supplied without specifying that command.

./bin/phpmyadmin -flag1 -flag2 variable

./bin/gb-launch -gb-name phpmyadmin -gb-version 4.7.9 -flag1 -flag2 variable

Running alternate commands within the phpmyadmin Gearbox container.

./bin/phpmyadmin -gb-shell -- ls -l

./bin/gb-launch -gb-name phpmyadmin -gb-version 4.7.9 -gb-shell -- ls -l

./bin/phpmyadmin -gb-shell -- ps -eaf

./bin/gb-launch -gb-name phpmyadmin -gb-version 4.7.9 -gb-shell -- ps -eaf

ssh - All Gearbox containers have a running SSH daemon. So you can connect remotely. To show what ports are exported to the host.

./bin/gb-launch -gb-name phpmyadmin -gb-list

Method 2: GitHub repo

Setup from GitHub repo

Simply clone this repository to your local machine

git clone https://github.com/gearboxworks/docker-phpmyadmin.git

Building from GitHub repo

make build - Build Docker images. Build all versions from the base directory or specific versions from each directory.

make list - List already built Docker images. List all versions from the base directory or specific versions from each directory.

make clean - Remove already built Docker images. Remove all versions from the base directory or specific versions from each directory.

make push - Push already built Docker images to Docker Hub, (only for Gearbox admins). Push all versions from the base directory or specific versions from each directory.

Runtime from GitHub repo

You can either build your container as above, or use it from DockerHub with these commands:

make start - Spin up a Docker container with the correct runtime configs.

make stop - Stop a Docker container.

make run - Run a Docker container in the foreground, (all STDOUT and STDERR will go to console). The Container be removed on termination.

make shell - Run a shell, (/bin/bash), within a Docker container.

make rm - Remove the Docker container.

make test - Will issue a stop, rm, clean, build, create and start on a Docker container.

Method 3: Docker Hub

Setup from Docker Hub

A simple docker pull gearbox/phpmyadmin will pull down the latest version.

Starting

start - Spin up a Docker container with the correct runtime configs.

docker run -d --name phpmyadmin-latest --restart unless-stopped --network gearboxnet gearbox/phpmyadmin:latest

Stopping

stop - Stop a Docker container.

docker stop phpmyadmin-latest

Remove container

rm - Remove the Docker container.

docker container rm phpmyadmin-latest

Run in foreground

run - Run a Docker container in the foreground, (all STDOUT and STDERR will go to console). The Container be removed on termination.

docker run --rm --name phpmyadmin-latest --network gearboxnet gearbox/phpmyadmin:latest

Run a shell

shell - Run a shell, (/bin/bash), within a Docker container.

docker run --rm --name phpmyadmin-latest -i -t --network gearboxnet gearbox/phpmyadmin:latest /bin/bash

SSH

ssh - All Gearbox containers have a running SSH daemon. So you can connect remotely.

Either use gb-launch above or discover the port and SSH directly.

SSH_PORT="$(docker port phpmyadmin-latest 22/tcp | sed 's/0.0.0.0://')"
ssh -p ${SSH_PORT} -o StrictHostKeyChecking=no gearbox@localhost