Replies: 7 comments 6 replies
-
Hello, I don't have an easy way to test this, but you should be able to achieve this by removing the
Then in your .env file you should update DB_HOST with your database IP Make sure your database is started before starting the Koillection container |
Beta Was this translation helpful? Give feedback.
-
I do not think the ports should be removed, as I want the docker to listen
to a port and this to be mapped to the O/S port in order to be called and
reachable by other services, from what I understand.
Anyway, I think I got it, I will reply hopefully soon that it was solved.
thanks
…On Fri, Jul 7, 2023 at 4:33 PM Benjamin Jonard ***@***.***> wrote:
Yes, I guess you have to remove the ports property too
—
Reply to this email directly, view it on GitHub
<#857 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAJAG4EL7FLWMRHIJIALTADXPAF4JANCNFSM6AAAAAA2BUOKUE>
.
You are receiving this because you authored the thread.Message ID:
***@***.***
com>
|
Beta Was this translation helpful? Give feedback.
-
I tried now to follow the alternative for installation,
1. php bin/console bazinga:js-translation:dump assets/js --format=js
says: There are no commands defined in the "bazinga:js-translation"
namespace. Did you mean this? app:translations
2. Configure a vhost (you can find an example for nginx in docs folder) ->
(There is nowhere a "docs" folder)
3. Generate assets : cd assets/ && yarn install && yarn build && cd ..
-> 00h00m00s 0/0: : ERROR: [Errno 2] No such file or directory: 'install'
It seems there is no file or directory "install" inside assets folder but
other files.
Can you please advice?
…On Fri, Jul 7, 2023 at 4:43 PM Efthymios Drymonas ***@***.***> wrote:
I do not think the ports should be removed, as I want the docker to listen
to a port and this to be mapped to the O/S port in order to be called and
reachable by other services, from what I understand.
Anyway, I think I got it, I will reply hopefully soon that it was solved.
thanks
On Fri, Jul 7, 2023 at 4:33 PM Benjamin Jonard ***@***.***>
wrote:
> Yes, I guess you have to remove the ports property too
>
> —
> Reply to this email directly, view it on GitHub
> <#857 (reply in thread)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AAJAG4EL7FLWMRHIJIALTADXPAF4JANCNFSM6AAAAAA2BUOKUE>
> .
> You are receiving this because you authored the thread.Message ID:
> ***@***.***
> com>
>
|
Beta Was this translation helpful? Give feedback.
-
Thanks,
I am in the assets folder, I try "yarn install", I get the following:
00h00m00s 0/0: : ERROR: [Errno 2] No such file or directory: 'install'
…On Fri, Jul 7, 2023 at 5:39 PM Benjamin Jonard ***@***.***> wrote:
I updated the wiki, it was a bit outdated.
I updated the command, it is php bin/console app:translations:dump now
There is a nginx vhost in the docker folder you can use as an exemple (it's the vhost used by the docker container)
I could execute that command without trouble, try to go into the assets folder and that execute : yarn install then yarn build
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Thanks,
according to your docker suggestion, the docker container now keeps
restarting, I get this in the logs. In your case it starts normally?
14:55:00 CRITICAL [console] Error thrown while running command
"'doctrine:migration:migrate' --no-interaction --allow-no-migration
--env=prod". Message: "An exception occurred in the driver: SQLSTATE[HY000]
[2002] No such file or directory" ["exception" =>
Doctrine\DBAL\Exception\ConnectionException { …},"command" =>
"'doctrine:migration:migrate' --no-interaction --allow-no-migration
--env=prod","message" => "An exception occurred in the driver:
SQLSTATE[HY000] [2002] No such file or directory"]
…On Fri, Jul 7, 2023 at 5:53 PM Benjamin Jonard ***@***.***> wrote:
I can only point you to a stack overflow thread :/ yarn install should
trigger the javascript dependencies installation, not search for a directory
https://stackoverflow.com/questions/46013544/yarn-install-command-error-no-such-file-or-directory-install
—
Reply to this email directly, view it on GitHub
<#857 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAJAG4G5C4R6OAIFOYUW25LXPAPF3ANCNFSM6AAAAAA2BUOKUE>
.
You are receiving this because you authored the thread.Message ID:
***@***.***
com>
|
Beta Was this translation helpful? Give feedback.
-
The thing is that I am trying DB_HOST=host.docker.internal , which should
work, as I am listening to 172.17.0.1:3306 and this is the IP that
host.docker.internal resolves to according to the
extra_hosts: host.docker.internal:host-gateway definition.
Now I keep getting "An exception occurred in the driver: SQLSTATE[HY000]
[2002] Connection timed out"]
It seems that I cannot connect from docker. I managed to connect using host
networking and pointing directly to 127.0.0.1 IP but then it couldn't
start, as port 80 was already taken by another docker container and I
cannot use the port mapping in host networking.
Another useful thing I thought could work was to forward the unix socket,
but then I am not sure how can I connect to the forwarded socket according
to this nice article (check the first answer):
mysql - Docker-Compose: connect to host when host.docker.internal doesn't
work - Stack Overflow
<https://stackoverflow.com/questions/74527573/docker-compose-connect-to-host-when-host-docker-internal-doesnt-work>
I understand that this is not supported or not implemented yet, but I have
struggled lots of hours to make it work, Please kindly could you help ?
We are having a very big collection of 78rpm records digitized and we would
really want to test this using some metadata.
Thanks and Regards
…On Fri, Jul 7, 2023 at 5:55 PM Efthymios Drymonas ***@***.***> wrote:
Thanks,
according to your docker suggestion, the docker container now keeps
restarting, I get this in the logs. In your case it starts normally?
14:55:00 CRITICAL [console] Error thrown while running command
"'doctrine:migration:migrate' --no-interaction --allow-no-migration
--env=prod". Message: "An exception occurred in the driver: SQLSTATE[HY000]
[2002] No such file or directory" ["exception" =>
Doctrine\DBAL\Exception\ConnectionException { …},"command" =>
"'doctrine:migration:migrate' --no-interaction --allow-no-migration
--env=prod","message" => "An exception occurred in the driver:
SQLSTATE[HY000] [2002] No such file or directory"]
On Fri, Jul 7, 2023 at 5:53 PM Benjamin Jonard ***@***.***>
wrote:
> I can only point you to a stack overflow thread :/ yarn install should
> trigger the javascript dependencies installation, not search for a directory
>
>
> https://stackoverflow.com/questions/46013544/yarn-install-command-error-no-such-file-or-directory-install
>
> —
> Reply to this email directly, view it on GitHub
> <#857 (reply in thread)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AAJAG4G5C4R6OAIFOYUW25LXPAPF3ANCNFSM6AAAAAA2BUOKUE>
> .
> You are receiving this because you authored the thread.Message ID:
> ***@***.***
> com>
>
|
Beta Was this translation helpful? Give feedback.
-
Maybe you could have a look to the last answer on this thread : I'll try to find another solution when I'm home |
Beta Was this translation helpful? Give feedback.
-
Hi,
There is already a non docker local Mysql I want to reuse, just to add a new DB called koillection etc.
However if I remove that db part from docker-compose, as I do not want a mysql DB docker to start, I get the message:
ERROR: Service 'koillection' depends on service 'db' which is undefined.
I do not find also any config parameters related. So the question is, how can I run koillektion with an already existing DB? Or even to connect to an external mysql/postgress DB etc. not requiring to start a local docker instance just for koillection?
Beta Was this translation helpful? Give feedback.
All reactions