Skip to content Skip to sidebar Skip to footer

Docker Build Empty Continuation Line Found in

does anyone know how to rebuild php-fpm?

Roger Roelofs

@rogerroelofs

@sachi842 docker-compose build php-fpm

assuming you have stopped it first

pehuen-rodriguez

@pehuen-rodriguez

hi! I'm trying to run a Laravel Mongo app using laradock
The host machins is already runing nginx and mongo, so I after following the instructions here: http://laradock.io/documentation/#use-mongo
I've changed the ports to avoid the conflict with my existing host installations. Using 8080 for nginx and 27117 for mongodb on the .env configuration.
Now, I'm getting the following Laravel "Whoops, looks like something went wrong." error when navigating localhost:8080
No suitable servers found (serverSelectionTryOnce set): [connection refused calling ismaster on 'localhost:27117']
May I need some extra permission? It's strange that I can connect with Robo3T to localhost:27117
Please help! Thanks!

pehuen-rodriguez

@pehuen-rodriguez

got it. Inside the laradock network (is it a network) the mongo node is DB_HOST=mongo and DB_PORT=27017 regardless of how it's exposed to the host system (localhost:27117)

ismailansari

@ismailansari

Hi Guys,

I'm having issues while running php artisan dusk
getting

                Failed                  to                  connect                  to                  localhost port                  9515: Connection refused              

Marco's Hot Nachos

@Shepard_EG_twitter

Hi Friends!

I have one little question about Backups MYSQL database

I can get in mysql by docker-compose exec mysql bash

But what i must to do next i dont know.

Maybe exist some guide or something like this stuff

pehuen-rodriguez

@pehuen-rodriguez

Marco's Hot Nachos

@Shepard_EG_twitter

okay, i will read this, thx friend!

pehuen-rodriguez

@pehuen-rodriguez

no problem

ismailansari

@ismailansari

Hi Guys,

I'm using Laradoc with Laravel, My issue is that Laravel dusk tests aren't working

showing Failed to connect to localhost port 9515: Connection refused

ismailansari

@ismailansari

I'm unable to bash into mysql

            docker-compose up              -d              mysql   Creating laradock_mysql_1 ...  Creating laradock_mysql_1 ...              done                      

but when i check status
it is

            docker-compose ps          Name                        Command              State                     Ports                   ----------------------------------------------------------------------------------------------------------- laradock_applications_1   /true              Exit              0              laradock_mysql_1          docker-entrypoint.sh mysqld              Exit              2              laradock_nginx_1          nginx              Up              0.0.0.0:443->443/tcp,              0.0.0.0:80->80/tcp laradock_php-fpm_1        docker-php-entrypoint php-fpm              Up              9000/tcp                                 laradock_workspace_1      /sbin/my_init              Up              0.0.0.0:2222->22/tcp          

so,

            docker-compose              exec              mysql bash ERROR: No container found              for              mysql_1          

Its my 3rd message in this room, no reply yet

Posted an issue yesterday, no reply of that message. Hope, I won't be disappoint this time

darkwolf1812

@darkwolf1812

Have you tried build mysql again??????

ismailansari

@ismailansari

I debugged that, there is something wrong at my machine, because I shared my laradoc folder with other team -mate and its working fine there.

how change php-fpm version

[WARNING]: Empty continuation line found in:
RUN if [ ${INSTALL_SOAP} = true ]; then apt-get update -yqq && apt-get -y install libxml2-dev php-soap && docker-php-ext-install soap ;fi
[WARNING]: Empty continuation line found in:
RUN if [ ${INSTALL_PGSQL} = true ]; then apt-get update -yqq && docker-php-ext-install pgsql ;fi
[WARNING]: Empty continuation line found in:
RUN if [ ${INSTALL_PG_CLIENT} = true ]; then apt-get update -yqq && apt-get install -y postgresql-client ;fi
[WARNING]: Empty continuation line found in:
RUN if [ ${INSTALL_XDEBUG} = true ]; then apt-get install -y php5-xdebug && echo "zend_extension=/usr/lib/php5/20131226/xdebug.so" > /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini ;fi
[WARNING]: Empty continuation line found in:
RUN if [ ${INSTALL_PHPREDIS} = true ]; then printf "\n" | pecl install -o -f redis && rm -rf /tmp/pear && docker-php-ext-enable redis ;fi
[WARNING]: Empty continuation line found in:
RUN if [ ${INSTALL_SWOOLE} = true ]; then pecl install swoole && docker-php-ext-enable swoole ;fi
[WARNING]: Empty continuation line found in:
RUN if [ ${INSTALL_MONGO} = true ]; then pecl install mongodb && docker-php-ext-enable mongodb ;fi
[WARNING]: Empty continuation line found in:
RUN if [ ${INSTALL_ZIP_ARCHIVE} = true ]; then docker-php-ext-install zip ;fi
[WARNING]: Empty continuation line found in:
RUN if [ ${INSTALL_BCMATH} = true ]; then docker-php-ext-install bcmath ;fi
[WARNING]: Empty continuation line found in:
RUN if [ ${INSTALL_MEMCACHED} = true ]; then pecl install memcached-2.2.0 && docker-php-ext-enable memcached ;fi
[WARNING]: Empty continuation line found in:
RUN if [ ${INSTALL_EXIF} = true ]; then docker-php-ext-install exif ;fi
[WARNING]: Empty continuation line found in:
RUN if [ ${INSTALL_AEROSPIKE} = true ]; then curl -L -o /tmp/aerospike-client-php.tar.gz "https://github.com/aerospike/aerospike-client-php/archive/3.4.14.tar.gz" && mkdir -p aerospike-client-php && tar -C aerospike-client-php -zxvf /tmp/aerospike-client-php.tar.gz --strip 1 && ( cd aerospike-client-php/src/aerospike && phpize && ./build.sh && make install ) && rm /tmp/aerospike-client-php.tar.gz && docker-php-ext-enable aerospike ;fi
[WARNING]: Empty continuation line found in:
RUN if [ ${INSTALL_INTL} = true ]; then apt-get install -y zlib1g-dev libicu-dev g++ && docker-php-ext-configure intl && docker-php-ext-install intl ;fi
[WARNING]: Empty continuation line found in:
RUN if [ ${INSTALL_GHOSTSCRIPT} = true ]; then apt-get update -yqq && apt-get install -y poppler-utils ghostscript ;fi
[WARNING]: Empty continuation lines will become errors in a future release.

Hey guys! Does anybody has a solution for running parallel laradock projects? I already know the possibility of copy and rename container names and changing ports, but it is just not right thing to do.

Roger Roelofs

@rogerroelofs

@agxmaster , what OS are you on (and the OS of the teammate for whom it worked if different) You can change the version by setting the PHP_VERSION=xx variable in your .env and rebuild related containers. The error messages you are seeing make me think the line ends in your ./php-fpm or ./workspace Dockerfile have been changed

Roger Roelofs

@rogerroelofs

@ekahrovic , I have am using the laradock multi-project setup. I have laradock in it's own directory withe the other projects as siblings. Then all I had to do was change the root docker-compose.yml file to include paths to all the projects. ```
volumes:

                                  -                    ../proj1/:/var/www/p1                                    -                    ../proj2/:/var/www/p2                                                

```
and so on in the applicaitons / volumes section and then add related nginx config files in ./nginx/sites

Roger Roelofs

@rogerroelofs

for the nginx config, just duplicate ./nginx/sites/app.conf.example and change the server_name and root to match your docker-compose volumes. You can also change the error_log and access_log values if you wish.

If you chose to use apache the process is pretty similar but with ./apache2/sites :smile:

@rogerroelofs Thank you for the anwer... this sounds greeat. But Im not sure that I understand how docker-compose.yml file should look after change. Sorry for bothering with such a details but I would really appreciate if you could write exactly in what lines I should insert the code in official file:
https://github.com/laradock/laradock/blob/master/docker-compose.yml.
P.S. I only want to use containers nginx, workspace & mysql

Roger Roelofs

@rogerroelofs

at the very top of your docker-compose.yml file you will see a section labeled applications: change volumes like so, the part before the colon is the path on the host to the project, the part after the colon is the path in the containers ```
version: '2'

services:

Applications Code Container

                applications:     image: tianon/true     volumes:         -                    ../proj1/:/var/www/p1                                    -                    ../proj2/:/var/www/p2                                    -                    ../proj3/:/var/www/p3                                                

```

@ekahrovic also, all the containers have the same volumes as set up in the applications section so if you get a command line in either php-fpm or workspace you will see your local files mapped to the locations specified in volumes

Thanks @rogerroelofs , this is awesome!

Dmytro Krasov

@dmitriymarley

hey guys I'm trying to setup laradock for my multiple project, but nginx gives me 404 error. i googled and tried all advices but it didn't help much. in docker kinematic i can see all my containers (mysql, nginx), but in nginx preview it's 404 and localhost:8080 gives me 404 as well.
I've setup my hosts file, created new *.conf file under nginx/sites folder, and in workspace container i can see all my projects. what am i doing wrong?

Roger Roelofs

@rogerroelofs

I'm almost sure that your docker-compose.yml applications/volumes paths don't match what nginx is expecting. if you do docker-compose logs nginx it may tell you the path that is is looking for as part of the 404 error. see if that matches up with what is in your .yml file.

Lauri Jalonen

@harmoniclauri

Hi, I'm having trouble listening to remote connections from xDebug on MS Code.

            {              "version":              "0.2.0",              "configurations": [         {              "name":              "Listen for XDebug",              "type":              "php",              "request":              "launch",              "port":              9001,             // Path to your              source              in              container              "serverSourceRoot":              "/var/www/",             // Path to your              local              source              "localSourceRoot":              "${workspaceRoot}"              }     ] }          
            $ ./php-fpm/xdebug status xDebug status              PHP              7.1.4              (cli) (built:              Apr              18              2017              19:24:58) (              NTS              )              Copyright              (c)              1997-2017              The              PHP              Group              Zend              Engine              v3.1.0,              Copyright              (c)              1998-2017              Zend              Technologies              with              Xdebug              v2.5.5,              Copyright              (c)              2002-2017, by              Derick              Rethans                      

My laradock/workspace/xdebug.ini:

            xdebug.remote_autostart=1              xdebug.remote_enable=1              xdebug.remote_connect_back=1              xdebug.cli_color=0              xdebug.profiler_enable=0              xdebug.remote_handler=dbgp xdebug.remote_mode=req  xdebug.remote_port=9001              xdebug.remote_host=dockerhost xdebug.idekey=PHPSTORM          

anyone out there got xDebug working on Laradock and MS Code? Help would be greatly appreciated!

does anyone know laravel 5.4 requierements?

Anyone here familiar with Laradock and Mongo?

morrisonhary1976.blogspot.com

Source: https://gitter.im/LaraDock/laradock?at=5a165d9a540c78242d3a8536

Publicar un comentario for "Docker Build Empty Continuation Line Found in"