Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

[Feature Request]: Handling of all things Docker (php, mysql, etc.) similar to how Tinkerwell handles it.

オープン
#397 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
25/100
issue の種類
機能追加
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
docker, mysql, nginx, php, redis

調査の方向性

ファイル、テスト、エントリーポイントは指定されていません。まず、Docker 設定の動作と、Invoker が現在どのようにプロジェクトの .env およびコンテナーネットワークとの関係で PHP を実行しているかを確認します。選択した PHP コンテナーでアプリケーション設定を変更せずにプロジェクトを実行し、MySQL や Redis などのサービスに到達できれば完了です。

索引モデルが issue の本文から書いたものです。

説明

feature request
Feature Description

Our environment uses various php versions for various projects and having the ability to define which php container to use is not too clear. I can see a "Docker settings" button only in the homescreen in the list of projects. But that is not making it too clear if it will use php from inside the container or not, it does not seem like it is doing that.

Since nginx, php, mysql, redis, etc. is all containerized (we use laradock as a standard for our team), not being able to follow through within the containers network makes the values set in the .env file useless for Invoker because it is sitting outside the docker container network and is running php from the system instead... which has no visibility for any of the .env values set for hosts on these services.

As a result, sql queries cannot execute properly, even though there are no exceptions in the app when accessed via a browser with configured hosts, trying to load a model, will return:

Illuminate\Database\QueryException : SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution (SQL: select count(*) as aggregate from '[model]')

This is the php from outside docker trying to connect to the configured mysql which uses a hostname available for use inside docker itself. Which is why it cannot see it. Changing the .env will make it work for Invoker, but then it will break for the app when accessed from the browser... which is why I ended up making this feature request.

Being able to use php from a docker container would help immensely with using Invoker with our current setup.

Thanks for listening and providing great tools guys!

Is this feature valuable for other users as well and why?

This can be valuable for everyone who has docker for their databases and/or php, etc. and doesn't have it all installed locally. Which is something we decided to do so we didn't have to install all versions of postgres 14.x~17.x, mysql 5.7.x/8.x and php from 7.4 to 8.4 in our local machines (we have so many projects with different php versions, this was deemed a convenience).

主要言語
言語のデータがありません
スター
76
フォーク
1
PR マージ指標
30日以内にマージされた PR はありません

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

beyondcode/invoker-community のほかの issue

beyondcode/invoker-community の issue をすべて見る

似ている issue

Backend & API Design の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。