prophp/docker-bridge

v0.0.0.9 2023-02-18 19:48 UTC

This package is not auto-updated.

Last update: 2024-10-27 05:04:40 UTC


README

  • Linux (tested on Ubuntu 19)
  • docker-compose Install

◦ Install

composer require prophp/docker-bridge --dev

vendor/bin/docker-bridge

▸ GIT commit created files

◦ USE

- Docker

docker/run

docker/stop - current container

docker/stop-all - Stop all docker containers running in the background (current machine)

- Gitlab CI

Rename .gitlab-ci.ignored.yml to .gitlab-ci.yml in order to enable Gitlab CI

Update - exec "bin/test" in /.gitlab-ci.yml (if required)

Insert any required command(s) instead of bin/test, testing purposes

NB!!! Remove /.gitlab-ci.ignored.yml file if you do not need Gitlab CI completely

Parameters

▸ Default

docker/run

▸ Apache port

Default Apache port is 9999

docker/run 9888

▸ Mysql

docker/run --mysql

By default, mysql-port = Apache port - 1

docker/run --mysql --mysql-port=9777

Save default command line parameters

▸ Create /docker/default-params.txt and pur default command line parameters there:

9987 --mysql --mysql-port=9978

◦ MySQL

▸ Connect to MySQL server via terminal outside DOCKER container

How to Install MySQL on Linux? - GeeksforGeeks

2.1 Installing MySQL Shell on Microsoft Windows

mysql -u user --password=password -h 127.0.0.1 -P 9998 database

▸ Set up MySQL database in PHP Storm

Database -> Data Source -> MySQL

alt text