Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
Andrea Ambrosi
@AndreaPG_gitlab
Hello everyone, you can use two different php versions, in two virtual hosts, with the same installation of devilbox?
clotted
@clotted
@bmscmoreira No progress on Raspberry Pi. Seems most base images are not available for ARM architecture, so little in the way of options, expect Mariadb ARMv8 (too much work).
@cytopia Is it worth updating this statement "for all host operating systems" on devilbox.org? (and this: https://devilbox.readthedocs.io/en/latest/getting-started/prerequisites.html#supported-host-os)
Bruno Moreira
@bmscmoreira
@clotted - unfortunately yes. It's indeed lack of base images for ARM, especially on 32bit OS. Devilbox must already be tough to maintain with all those configuration possibilities, even without ARM support. I've been trying tinkering with Devilbox and change settings to make it work, in part, in my Pi, but I'm not being too successful on it. So I am trying the reverse: creating a docker based lamp stack with a few config options ready to deploy on Raspberry Pi (32bit host with docker installed on 64bit guest by using this remarkable work from sakaki: https://github.com/sakaki-/raspbian-nspawn-64) and I have an experimental thing on github already, although very incomplete.
Роман Сохарев
@greabock
Hi there! Is there way to connect to database from host os?
Michael Habib
@MichaelHabib

Hi there! Is there way to connect to database from host os?

Hi, I think this would be more of a Docker question (not specific to devilbox) . Quick search lead me to https://stackoverflow.com/questions/24319662/from-inside-of-a-docker-container-how-do-i-connect-to-the-localhost-of-the-mach

" just connect to your mysql service using the host host.docker.internal (instead of the 127.0.0.1 in your connection string)..." more details on that thread .

GL

riko ms
@meisaputra
hi masters, i use Devilbox v1.0.2 (2019-06-10). and i user mariadb for sqlstack.
docker-compose is running well. and i can run phpmysqladmin from devilbox panel.
my question, where is the mysql command. i've search all place but nothing found.
Dan
@domainregistrar
I'm going a little mad with Devilbox at the moment, I make changes to custom .ini file, but no matter what I do it seems to be cached using the old one, even after doing docker-compose rm -f -- The only time I managed to make it update was after a devilbox upgrade.
What am I missing here?
Nikos Papagiannopoulos
@panigrc
@domainregistrar is it possible that you are editing the wrong ini file ?
Mark Gregory
@hamcore
Would there be any objection to attempting an arm (pi) fork
jnunez166
@jnunez166
Work with multiple clients. Can I namespace the containers? Right now just checking out a single devilbox per client so I cant run more than 1 clients container at a time
uphlewis
@uphlewis
Anyone have any luck persisting stuff from the PHP container filesystem like .bash_history, psysh_history? Im not great with docker, but managed to get it working in a hacky way by symlinking these files to the mounted php log directory and setting that up on boot using bash scripts in Devilbox/autostart. Is there a better way?!?!
Bruno Moreira
@bmscmoreira
@hamcore not in the devs plan to support arm since much work would be involved. +1 for the fork since I too would like to put my pi4 to work. And the future seems to be arm!
Rene Kreijveld
@renekreijveld
Hi all, I'd like to update adminer in the local devilbox Intranet. On the Intranet I see adminer version 4.7.5, but the latest version is 4.7.7. Any clue how to do update?
I found the adminer source by entering the php container and going to /var/www/default/htdocs/vendor. When I try to copy something there I get: unable to remove target: Read-only file system
uphlewis
@uphlewis
@renekreijveld have you tried devilbox rm -rf and then restarting containers? They should pull in latest versions of everything when starting up i think
Rene Kreijveld
@renekreijveld
@uphlewis I think you mean docker-compose rm -rf ? I do that everytime before I shutdown my machine. But I don't get the adminer latest version. I do you mean something else?
@uphlewis I also tried git pull origin master and docker responds with 'Already up to date.'
uphlewis
@uphlewis
@renekreijveld Yeah I've got a devilbox function in my bashrc which cds to my devilbox dir and calls docker-compose $* just for convenience. Unsure about how it builds adminer, but if it installs it using a package manager maybe the latest version just isn't available in its repository list yet? But at the end of the day it's just a php application so I guess you could easily pull in the latest yourself from github in an autostart/ bash script?
Rene Kreijveld
@renekreijveld
@uphlewis Getting my hands on the latest adminer.php wasn't the issue :-) I just can't install it inside the /var/www/default/htdocs/vendor folder.
I too have two bash scripts, 'startdevelopment' which starts the docker containers and 'stopdevelopment' which stops the containers and cleans them up.
Rene Kreijveld
@renekreijveld
Hi everyone, I created a handy script for easy switching PHP versions: https://gist.github.com/renekreijveld/66183c2bf308d393aa64137f13db3096
This script can be used on Linux and macOS platforms. The script modifies the .env file and then stops and restarts the docker containers.
uphlewis
@uphlewis
@renekreijveld That sounds really cool- you should consider submitting that in a PR to the devilbox project!
Rene Kreijveld
@renekreijveld
@uphlewis I have updated the script so there is no longer a need for the .env-master copy. The script now modifies directly inside the .env file :-)
uphlewis
@uphlewis
Ah wicked, ill definitely be giving it a go
Thanks
Rene Kreijveld
@renekreijveld
@uphlewis Make sure you read the comment below the script. There's some minimal setup you need to do.
Dustin Pate
@noirsoldats
Hello everyone, I have a co-worker who's php container cannot access a server on the Work VPN (Via Cisco Anyconnect) connected on his host machine (Linux). Everything works fine for me, same VPN, but I'm running Mac.. Any clues or tips to help us figure out what the different/problem is?
Debabrata Karfa
@debabratakarfa
I am using Docker Toolbox and I set up /etc/hosts to point to 192.168.99.100
Still I am getting
No Host DNS record found. Add the following to /etc/hosts: 127.0.0.1
Do I need to set LOCAL_LISTEN_ADDR=192.168.99.100 - ?
If I am doing that and when I am running docker-compose up getting this error,
Recreating devilbox_bind_1 ... error

ERROR: for devilbox_bind_1  Cannot start service bind: Ports are not available: listen tcp 192.168.99.100:53: bind: can't assign requested address

ERROR: for bind  Cannot start service bind: Ports are not available: listen tcp 192.168.99.100:53: bind: can't assign requested address
ERROR: Encountered errors while bringing up the project.
Mohammad Hossein Shakouri
@mhshakouri_gitlab
hey hi
Peter (Panker) Patoschka
@patarok
hi
Peter (Panker) Patoschka
@patarok
how do i actually configure my devilbox to use ...lets say.. f.i. some other php version?
Rene Kreijveld
@renekreijveld
@patarok You have to edit the .env file for that and then start/restart your docker containers.
@patarok I created a handy script for easy switching PHP versions: https://gist.github.com/renekreijveld/66183c2bf308d393aa64137f13db3096
This script can be used on Linux and macOS platforms. The script modifies the .env file and then stops and restarts the docker containers.
Peter (Panker) Patoschka
@patarok
Thank you Rene!
I am pretty sure I could run your script in WSL2 on windows though(I use a WinLaptop for private stuff and only use Linux at work.)
@renekreijveld just one more question mr. Rene...
@renekreijveld did you ever actually export an environment out of the devilbox onto bare metal or some virt server setup?
Or lets say: if I would develop a real cool Web-Application lets say I dunno a Comic-Bazar or something, and everything works... exactly as i want it to.
How would i proceed to take a step further to deploy that out of my Devilbox Environment and put that ... i dunno into a Gitlab git or something so it deploys automagically?
Peter (Panker) Patoschka
@patarok
I would be happy if someone could answer me that question or just lay down the basic steps to do so, because i am pretty new to (much everything real PROFESSIONAL) .. jus like deploying to servers and stuff.
So if anybody feels in the mood to help me out a bit here... :) I'll drop you an UPS with a fine austrian beer
Rene Kreijveld
@renekreijveld

@patarok did you ever actually export an environment out of the devilbox onto bare metal or some virt server setup?

Yes! I am a professional Joomla developer and I do my development work locally in devolbox setup. I don't deploy through Github or Gitlab. I create an installable backup with an extension for Joomla and I can upload & install that on a VPS really easy.

Peter (Panker) Patoschka
@patarok
If you think its not good to blow up the chat in here, we could also have a chat on Telegram. or somewhere else
@renekreijveld @patarok
Excuse me I understand that this is an optimal setup for you, but at my company we only use symfony and laravel based cms systems like craft, october and all that stuff... and we heavily utilize gitlab and run our own gitlab server for deployment. ... But I am only a trainee until now, and even though you ""only"" use Joomla and upload your projects directly to a VPS ... you maybe have a hang on how I could do as I wrote or at least explain me your "Deployment Plan/Steps to make it a Production Environment"
If you think its not good to blow up the chat in here, we could also have a chat on Telegram. or somewhere else
James Ussery
@jpu4
Hello. First time gitter as well as using devilbox. Everything fires up except mysql. It's not able to login with any password set in the .env. I've tried blank, as well as 2 different passwords. Using Linus Solus 4 "[Warning] Access denied for user 'root'@'[myip]' (using password: YES)"
andrea scarpetta
@yottavault_gitlab

hello, i've been using devilbox to almost one year, using it to host several php projects on my laptop. Today i've done some changes (altered the .env to use php 7.3 instead of 7.2) and now the docker compose is not working anymore while printing the message

ERROR: for devilbox_bind_1  Cannot start service bind: driver failed programming external connectivity on endpoint devilbox_bind_1 (20d596e8a64ada95acab30046a6ded9e7f34052c8c3f834c37f3d180dd5fe180): Error starting userland proxy: listen tcp 127.0.0.1:1053: bind: address already in use

ERROR: for bind  Cannot start service bind: driver failed programming external connectivity on endpoint devilbox_bind_1 (20d596e8a64ada95acab30046a6ded9e7f34052c8c3f834c37f3d180dd5fe180): Error starting userland proxy: listen tcp 127.0.0.1:1053: bind: address already in use

what is happening?

andrea scarpetta
@yottavault_gitlab
ok, i've removed all the containers and volumes, i've installed devilbox in a new path and followed the instructions... at the moment the localhost interface is not responding!
Vincent Poinpoin
@vinzusama
did you use update-docker.shfirst ?
I'm having hard times with mapped .ssh directory, since it's "mounted" as root, whenever I clone some repo from a local gitlab I got this : "Bad owner or permissions on /home/devilbox/.ssh/config"
Vincent Poinpoin
@vinzusama
is it normal that this folder is mounted as root user ? Am I issing something ?
I mean, the entire folder is mounted as a read-only filesystem, so I guess puting it with owner as root isn't absolutely necessary
Vincent Poinpoin
@vinzusama
it seems to be OK if I just remove the .config file, but it's a bit anoying