Giter VIP home page Giter VIP logo

vessel's People

Contributors

anatolinicolae avatar ashokgelal avatar bkatznelson avatar carlos-lopez-hyve avatar cringerjs avatar dbpolito avatar devdattat avatar ericvanjohnson avatar fideloper avatar francescomalatesta avatar gabrielboliveira avatar jamesking56 avatar lbausch avatar mikeerickson avatar morpheus7cs avatar rxcod9 avatar ssx avatar toniperic avatar trq avatar vinayakkulkarni avatar vmitchell85 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

vessel's Issues

How to have to vessel containers talking to each other i.e. a frontend and an api backend

Description

I know this was asked by someone if this could be a feature as Vessel before, but does anyone know what adjustments I need to do to have one vessel container be able to call a url belonging in a different vessel container like a frontend and a backend

When I do this, I keep getting "Failed to connect to localhost port 8080: Connection refused" when my frontend vessel (which is located at localhost:8090) trying to call a url at my API vessel (located at localhost:8080)

I assumed that because they were under the same network, it should work. Any help would be greatly appreciated

Please

OS

My OS is:

  • [ x] MacOS [High Sierra]
  • Linux
  • Windows

Docker

The output of docker version:

Client:
 Version:	17.12.0-ce
 API version:	1.35
 Go version:	go1.9.2
 Git commit:	c97c6d6
 Built:	Wed Dec 27 20:03:51 2017
 OS/Arch:	darwin/amd64

Server:
 Engine:
  Version:	17.12.0-ce
  API version:	1.35 (minimum version 1.12)
  Go version:	go1.9.2
  Git commit:	c97c6d6
  Built:	Wed Dec 27 20:12:29 2017
  OS/Arch:	linux/amd64
  Experimental:	true

The output of docker-compose version:

docker-compose version 1.18.0, build 8dd22a9
docker-py version: 2.6.1
CPython version: 2.7.12
OpenSSL version: OpenSSL 1.0.2j  26 Sep 2016

Can't connect to MySQL database

Hi @fideloper . Congrats for putting it all together for all us new to docker.

I'm stumbling with this unexpected credentials error. It looks like the mysql container did not get configured with the actual credentials I have in my .env file. I've also validated the .env.vessel and everything looks good. Either the application can connect to the db, and I'm unable to access the db with ./vessel exec mysql mysql -u root -p (I've tried any possible password).

Any possible hint?

Thanks!!

alariva@trinsic ~/sampleapp $ ./vessel art migrate

                                                                                                                                                             
  [Illuminate\Database\QueryException]                                                                                                                       
  SQLSTATE[HY000] [1045] Access denied for user 'sampleapp'@'172.21.0.2' (using password: YES) (SQL: select * from information_schema.tables where table_sc  
  hema = sampleapp and table_name = migrations)                                                                                                              
                                                                                                                                                             

                                                                                                
  [PDOException]                                                                                
  SQLSTATE[HY000] [1045] Access denied for user 'sampleapp'@'172.21.0.2' (using password: YES)  
                                                                                                

alariva@trinsic ~/sampleapp $ 
Linux trinsic 4.4.0-97-generic #120-Ubuntu SMP Tue Sep 19 17:28:18 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

Feature Request: Switch to MariaDB

This is small so feel free to close, but it would be handy if this used MariaDB by default. From looking at stats online until you get into the range of massive amounts of cores MariaDB seems to perform better. This change would, in theory, be pretty simple to make.

If there is interest here this is a change I'd consider spending time on if I can find some.

Error in building node when running ./vessel start

Description

When I try to run vessel start, I get this error. Do you know what I can do to fix it

Andys-MacBook-Pro:calibrate_new ash_skywalker10$ ./vessel start
Creating network "calibratenew_vessel" with driver "bridge"
Creating volume "calibratenew_vesselredis" with local driver
Creating volume "calibratenew_vesselmysql" with local driver
Building node
Step 1/6 : FROM node:latest
ERROR: Service 'node' failed to build: Get https://registry-1.docker.io/v2/library/node/manifests/latest: unauthorized: incorrect username or password

OS

My OS is:

  • [ x] MacOS [Sierra]
  • Linux
  • Windows

Docker

The output of docker version:

Client:
 Version:      17.09.0-ce
 API version:  1.32
 Go version:   go1.8.3
 Git commit:   afdb6d4
 Built:        Tue Sep 26 22:40:09 2017
 OS/Arch:      darwin/amd64

Server:
 Version:      17.09.0-ce
 API version:  1.32 (minimum version 1.12)
 Go version:   go1.8.3
 Git commit:   afdb6d4
 Built:        Tue Sep 26 22:45:38 2017
 OS/Arch:      linux/amd64
 Experimental: true

The output of docker-compose version:

docker-compose version 1.16.1, build 6d1ac21
docker-py version: 2.5.1
CPython version: 2.7.12
OpenSSL version: OpenSSL 1.0.2j  26 Sep 2016

Postgresql Support

Would it be possible to include the PG_PORT in the vessel script and include a pgsql dir in docker?
It would make supporting postgresql so much simpler, and not have a detrimental impact on mysql ie

export APP_PORT=${APP_PORT:-80}
export MYSQL_PORT=${MYSQL_PORT:-3306}
export PGSQL_PORT=${PGSQL_PORT:-5432}
export WWWUSER=${WWWUSER:-$UID}

MySQL errors when doing vendor:publish

Description

I'm trying to make a "quick local installation preparation" procedure, using vessel for the dev environment provision. And it is intended to have steps like these:

  • git clone {repo_url} && cd prj
  • composer install
  • start Docker
  • cp .env.vessel .env
  • bash vessel init

Here, on the last step I get bash: vessel: No such file or directory error. Ok, I forgot to publish the vessel command and Docker files. So, let's do it:
php artisan vendor:publish --provider="Vessel\VesselServiceProvider"

This produces MySQL errors, however:

  [Illuminate\Database\QueryException]
  SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: nodename nor servname provided, or not known (SQL: SET SESSION wait_timeout = 150)

  [Doctrine\DBAL\Driver\PDOException]
  SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: nodename nor servname provided, or not known

  [PDOException]
  SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: nodename nor servname provided, or not known

  [PDOException]
  PDO::__construct(): php_network_getaddresses: getaddrinfo failed: nodename nor servname provided, or not known

Do I understand it correctly that I need to have working database conection before even initializing the vessel? I thought that the point of vessel is to give webserver/php/mysql environment to the developer…

Please advise.

OS

My OS is:

  • MacOS High Sierra

Docker

Client:
 Version:      18.05.0-ce-rc1
 API version:  1.37
 Go version:   go1.9.5
 Git commit:   33f00ce
 Built:        Thu Apr 26 00:58:56 2018
 OS/Arch:      darwin/amd64
 Experimental: false
 Orchestrator: swarm

Server:
 Engine:
  Version:      18.05.0-ce-rc1
  API version:  1.37 (minimum version 1.12)
  Go version:   go1.10.1
  Git commit:   33f00ce
  Built:        Thu Apr 26 01:06:49 2018
  OS/Arch:      linux/amd64
  Experimental: true

The output of docker-compose version:

docker-compose version 1.21.0, build 5920eb0
docker-py version: 3.2.1
CPython version: 3.6.4
OpenSSL version: OpenSSL 1.0.2o  27 Mar 2018

No project in /var/www/htlm

Hi

My problem is that I run ./vessel start and everything has been started however my app container and /var/www/html folder is empty like my project is not binded. Is there any way to fix this?

unable to find user vessel

Description

Version 2.0. Note on a mac, so using the "I don't have PHP 7 yet" method. Also note I comment out the install predis, and manually install using above method.

$ bash vessel init
VESSEL: Initializing Vessel...
VESSEL: Installing Predis
VESSEL: Setting .env Variables
VESSEL: Making vessel command available

VESSEL: Complete!
VESSEL: You can now use Vessel
VESSEL: Try starting it:
./vessel start
$ ./vessel start
Creating rimf2_pgsql_1 ...
Creating rimf2_node_1 ...
Creating rimf2_redis_1 ...
Creating rimf2_app_1 ...
Creating rimf2_pgsql_1
Creating rimf2_redis_1
Creating rimf2_node_1
Creating rimf2_app_1 ... done
it-042015:rimf2 bryanscott$ ./vessel composer outdated
unable to find user vessel: no matching entries in passwd file

OS

My OS is:

  • [ X] MacOS [High Sierra]

Docker

The output of docker version:

it-042015:dist bryanscott$ docker version
Client:
Version: 17.09.0-ce
API version: 1.32
Go version: go1.8.3
Git commit: afdb6d4
Built: Tue Sep 26 22:40:09 2017
OS/Arch: darwin/amd64

Server:
Version: 17.09.0-ce
API version: 1.32 (minimum version 1.12)
Go version: go1.8.3
Git commit: afdb6d4
Built: Tue Sep 26 22:45:38 2017
OS/Arch: linux/amd64
Experimental: true

The output of docker-compose version:

docker-compose version 1.16.1, build 6d1ac21
docker-py version: 2.5.1
CPython version: 2.7.12
OpenSSL version: OpenSSL 1.0.2j 26 Sep 2016

Nginx not booting and port 80 unavailable

Description

I get this from the app container:

app_1    | 2018-03-15 13:28:21,945 INFO supervisord started with pid 11
app_1    | 2018-03-15 13:28:22,947 INFO spawned: 'nginx' with pid 14
app_1    | 2018-03-15 13:28:22,949 INFO spawned: 'php-fpm' with pid 15
app_1    | 2018-03-15 13:28:22,954 INFO exited: php-fpm (terminated by SIGSEGV; not expected)
app_1    | 2018-03-15 13:28:22,958 INFO exited: nginx (terminated by SIGSEGV; not expected)
app_1    | 2018-03-15 13:28:23,960 INFO spawned: 'nginx' with pid 16
app_1    | 2018-03-15 13:28:23,961 INFO spawned: 'php-fpm' with pid 17
app_1    | 2018-03-15 13:28:23,966 INFO exited: php-fpm (terminated by SIGSEGV; not expected)
app_1    | 2018-03-15 13:28:23,970 INFO exited: nginx (terminated by SIGSEGV; not expected)
app_1    | 2018-03-15 13:28:25,978 INFO spawned: 'nginx' with pid 18
app_1    | 2018-03-15 13:28:25,980 INFO spawned: 'php-fpm' with pid 19
app_1    | 2018-03-15 13:28:25,984 INFO exited: php-fpm (terminated by SIGSEGV; not expected)
app_1    | 2018-03-15 13:28:25,986 INFO exited: nginx (terminated by SIGSEGV; not expected)
app_1    | 2018-03-15 13:28:28,992 INFO spawned: 'nginx' with pid 20
app_1    | 2018-03-15 13:28:28,993 INFO spawned: 'php-fpm' with pid 21
app_1    | 2018-03-15 13:28:28,999 INFO exited: php-fpm (terminated by SIGSEGV; not expected)
app_1    | 2018-03-15 13:28:29,002 INFO gave up: php-fpm entered FATAL state, too many start retries too quickly
app_1    | 2018-03-15 13:28:29,003 INFO exited: nginx (terminated by SIGSEGV; not expected)
app_1    | 2018-03-15 13:28:30,004 INFO gave up: nginx entered FATAL state, too many start retries too quickly

OS

My OS is:

  • MacOS High Sierra
  • Linux
  • Windows

Docker

The output of docker version:

Client:
 Version:	17.12.0-ce
 API version:	1.35
 Go version:	go1.9.2
 Git commit:	c97c6d6
 Built:	Wed Dec 27 20:03:51 2017
 OS/Arch:	darwin/amd64

Server:
 Engine:
  Version:	17.12.0-ce
  API version:	1.35 (minimum version 1.12)
  Go version:	go1.9.2
  Git commit:	c97c6d6
  Built:	Wed Dec 27 20:12:29 2017
  OS/Arch:	linux/amd64
  Experimental:	true

The output of docker-compose version:

docker-compose version 1.18.0, build 8dd22a9
docker-py version: 2.6.1
CPython version: 2.7.12
OpenSSL version: OpenSSL 1.0.2j  26 Sep 2016

Rebuild command

It would be cool if there was a built-in command for rebuilding your containers (e.g. ./vessel rebuild). Basically just a shortcut for:

./vessel down
docker image rm vessel/app
docker image rm vessel/node
./vessel build
./vessel start

Suggestion: Adding PostgreSQL support

Hi !
I've been thinking about a project like that for a long time, but never had the time to really work on it (many bugs, with some tricky manipulations to make it work).

Today, I see this, and my only issue is that I use PostgreSQL on each of my projects.

What would you think about supporting PostgreSQL, or are there any plans to support it ? I may be able to work on something, but my Docker knowledge is a bit limited.

Thanks :)

usermod: UID '0' already exists

Description

OS

My OS is:

Linux

Docker

Docker version 17.12.1-ce, build 7390fc6

docker-compose version 1.19.0, build 9e633ef

Hi,

My problem is this, I have installed the package, run publish and run bash which was ok.

however when I ran:

./vessel start

I get:

root@Kali:/var/www/webuilder-api# ./vessel start
Creating network "webuilderapi_vessel" with driver "bridge"
Creating volume "webuilderapi_vesselredis" with local driver
Creating volume "webuilderapi_vesselmysql" with local driver
Building node
Step 1/6 : FROM node:latest
f2b6b4884fc8: Pull complete
4fb899b4df21: Pull complete
74eaa8be7221: Pull complete
2d6e98fe4040: Pull complete
452c06dec5fa: Pull complete
7b3c215894de: Pull complete
c2139be2d901: Pull complete
7c9b0e13f02b: Pull complete
Digest: sha256:59aff2d9898e2b3d35d7656bf57bf61c2dcaedac58b8c3934b8963904d27c437
Status: Downloaded newer image for node:latest
 ---> ec70562ad6f0
Step 2/6 : LABEL maintainer="Chris Fidao"
 ---> Running in b211cdf4de51
Removing intermediate container b211cdf4de51
 ---> d8ca07c3d823
Step 3/6 : WORKDIR /var/www/html
Removing intermediate container aa83ef55dc90
 ---> c0fb2a861272
Step 4/6 : ARG uid=999
 ---> Running in f1c945172a28
Removing intermediate container f1c945172a28
 ---> 09ef037c1a78
Step 5/6 : RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add -     && echo "deb http://dl.yarnpkg.com/debian/ stable main" > /etc/apt/sources.list.d/yarn.list     && apt-get update     && apt-get install -y git yarn     && apt-get -y autoremove     && apt-get clean     && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
 ---> Running in a30871dd528d
OK
Get:1 http://dl.yarnpkg.com stable InRelease [11.5 kB]
Get:2 http://security.debian.org jessie/updates InRelease [63.1 kB]
Ign http://deb.debian.org jessie InRelease
Get:3 http://deb.debian.org jessie-updates InRelease [145 kB]
Get:4 http://dl.yarnpkg.com stable/main amd64 Packages [6780 B]
Get:5 http://deb.debian.org jessie Release.gpg [2434 B]
Get:6 http://deb.debian.org jessie Release [148 kB]
Get:7 http://security.debian.org jessie/updates/main amd64 Packages [633 kB]
Get:8 http://deb.debian.org jessie-updates/main amd64 Packages [23.1 kB]
Get:9 http://deb.debian.org jessie/main amd64 Packages [9064 kB]
Fetched 10.1 MB in 8s (1198 kB/s)
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
git is already the newest version.
Recommended packages:
  nodejs
The following NEW packages will be installed:
  yarn
0 upgraded, 1 newly installed, 0 to remove and 4 not upgraded.
Need to get 691 kB of archives.
After this operation, 4403 kB of additional disk space will be used.
Get:1 http://dl.yarnpkg.com/debian/ stable/main yarn all 1.5.1-1 [691 kB]
debconf: delaying package configuration, since apt-utils is not installed
Fetched 691 kB in 0s (1045 kB/s)
Selecting previously unselected package yarn.
(Reading database ... 21671 files and directories currently installed.)
Preparing to unpack .../archives/yarn_1.5.1-1_all.deb ...
Unpacking yarn (1.5.1-1) ...
Setting up yarn (1.5.1-1) ...
Reading package lists...
Building dependency tree...
Reading state information...
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
Removing intermediate container a30871dd528d
 ---> c65a0e9ccbdc
Step 6/6 : RUN usermod -u $uid node
 ---> Running in d8b8211bd126
usermod: UID '0' already exists
ERROR: Service 'node' failed to build: The command '/bin/sh -c usermod -u $uid node' returned a non-zero code: 4

Is there a way to fix this?

Add `cron` package to App package

And document its usage within vessel-docs repository.

A few ideas on ways to run it:

  1. Manual start: ./vessel run -d --rm app cron -f
  2. Via docker-compose, so it runs Laravel scheduler and optionally other stuff automatically (Mount a directory/file to cron.d perhaps)
  3. Document adding it in during ENTRYPOINT script (start-container)

Request for info: inject some custom tasks into container building

Description

Hi, I'd like to make it as easy as possibly for other developer to spin up a local copy of our system. For this, I'm going to have vessel installed, listed in my composer.json/.lock files, vendor:published on the dev installation. Then I would provide some basic instructions, like these:

git clone myRepoURL && cd myRepo
composer install
bash vessel init
./vessel start
./vessel artisan migrate
./vessel yarn install
./vessel yarn run dev

(composer and docker would be pre-requirements, off cause; is anything else required o the dev's computer, by the way?)

I would only need few extra things to be executed right after container is started, but before running migrations. Something like:

  • creating database tables (old ones, whey existed before I started using Laravel with its migrations, so, they're "off track")
  • downloading some demo data to start with.

My understanding is that the right place for these "one-off hooks" would be during the bash vessel init step. But I need those scripts to be in my version control and that vessel find them there and execute automatically. Is anything like this supported?

OS

My OS is: MacOS High Sierra

Developer's OS is: probably Windows. But it could be anything, in fact…

Trying to set up BrowserSync in my Laravel Project

Description

Trying to set up the browserSync for live reloading the site. However, for some reason I cant figure out as what am I doing wrong.
Here is what I tried

mix.browserSync({
proxy: 'app container ip',
notify: false,
open: false,
files: [
'!node_modules', '!vendor', 'public/{,**/}', '{,**/}.php'
]
});

My docker-compose.yml file ,

ports:
- "${APP_PORT}:80"
- "3000:300"
- "3001:3001"

Then when I run ./vessel run watch, I cant access localhost:3000

OS

My OS is:

  • [x ] MacOS [ High Sierra]

Docker

The output of docker version:

Client:
 Version:      17.09.1-ce
 API version:  1.32
 Go version:   go1.8.3
 Git commit:   19e2cf6
 Built:        Thu Dec  7 22:22:25 2017
 OS/Arch:      darwin/amd64

Server:
 Version:      17.09.1-ce
 API version:  1.32 (minimum version 1.12)
 Go version:   go1.8.3
 Git commit:   19e2cf6
 Built:        Thu Dec  7 22:28:28 2017
 OS/Arch:      linux/amd64
 Experimental: true

The output of docker-compose version:

docker-compose version 1.17.1, build 6d101fb

Questions about Vessel Architecture

Congratulations for Vessel, great project. ❤️

I do like Docker a lot, and i would like to discuss / ask some architectural choices you made on Vessel, if you don't care to answer.

  1. Why having nginx and php on same machine? Just for simplifying things?
  2. Why are you using supervisor on app service, why not just use docker CMD?
  3. Why installing everything manually on raw ubuntu machine, instead of using docker oficial images?
  4. Any experience with alpine images?

I did this version https://github.com/firework/FireDocker inspired on your docker series (which i liked a lot, congrats for that too), in case you want to see a slightly different approach.

Permission issue running tinker

Description

How would I resolve this issue?

$ ./vessel art tinker

  [ErrorException]
  Writing to //.config/psysh is not allowed.

Which runs:
docker-compose -f docker-compose.yml exec -u 501 app sh -c cd /var/www/html && php artisan tinker

OS

My OS is:

  • MacOS [High Sierra]
  • Linux
  • Windows

Docker

The output of docker version:

Client:
 Version:      17.09.0-ce
 API version:  1.32
 Go version:   go1.8.3
 Git commit:   afdb6d4
 Built:        Tue Sep 26 22:40:09 2017
 OS/Arch:      darwin/amd64

Server:
 Version:      17.09.0-ce
 API version:  1.32 (minimum version 1.12)
 Go version:   go1.8.3
 Git commit:   afdb6d4
 Built:        Tue Sep 26 22:45:38 2017
 OS/Arch:      linux/amd64
 Experimental: true

The output of docker-compose version:

docker-compose version 1.16.1, build 6d1ac21
docker-py version: 2.5.1
CPython version: 2.7.12
OpenSSL version: OpenSSL 1.0.2j  26 Sep 2016

Add Apache Support

Looking to see if anybody has extended this project to use Apache instead of nginx

OS

My OS is:

  • [X ] MacOS [Sierra]
  • Linux
  • Windows

Docker

The output of docker version:

N/a

Crashing on mac os sierra

Description

Docker is crashing the whole OS

bash vessel init command runs fine.
./vessel start command starts then crashed whole OS at Step 6/17
(this is happening every time, i have tried 3 times today)
See terminal output (link below).

After crash; computer restart automatically and docker prompt with this screen.
docker-crash
I clicked "Reset" and the docker service runs fine.

OS

My OS is:

  • MacOS [Sierra v10.12.3] Core i5, 8GB

Docker

The output of docker version:

Client:
 Version:      17.09.1-ce
 API version:  1.32
 Go version:   go1.8.3
 Git commit:   19e2cf6
 Built:        Thu Dec  7 22:22:25 2017
 OS/Arch:      darwin/amd64

Server:
 Version:      17.09.1-ce
 API version:  1.32 (minimum version 1.12)
 Go version:   go1.8.3
 Git commit:   19e2cf6
 Built:        Thu Dec  7 22:28:28 2017
 OS/Arch:      linux/amd64
 Experimental: true

The output of docker-compose version:

docker-compose version 1.17.1, build 6d101fb
docker-py version: 2.5.1
CPython version: 2.7.12
OpenSSL version: OpenSSL 1.0.2j  26 Sep 2016

Additional info

  • Docker was installed through brew
brew cask install docker
  • System already has apache 2.4, php 7.1 and mysql 5.7 installed, running on default ports.
  • .env contents
# Added after default Laravel env variables
APP_PORT=9090
MYSQL_PORT=33060

Thanks.

MySQL Connection Issue

Description

Hi-- I'm trying to get started with Vessel but I'm unable to get the database working. My .env file looks like:

DB_CONNECTION=mysql
DB_HOST=mysql
DB_PORT=3306
DB_DATABASE=testsite
DB_USERNAME=root
DB_PASSWORD=

Attempting to tail the mysql log shows:

$ ./vessel logs mysql
Attaching to testsite_mysql_1
mysql_1  | error: database is uninitialized and password option is not specified
mysql_1  |   You need to specify one of MYSQL_ROOT_PASSWORD, MYSQL_ALLOW_EMPTY_PASSWORD and MYSQL_RANDOM_ROOT_PASSWORD
mysql_1  | error: database is uninitialized and password option is not specified
mysql_1  |   You need to specify one of MYSQL_ROOT_PASSWORD, MYSQL_ALLOW_EMPTY_PASSWORD and MYSQL_RANDOM_ROOT_PASSWORD
mysql_1  | error: database is uninitialized and password option is not specified
mysql_1  |   You need to specify one of MYSQL_ROOT_PASSWORD, MYSQL_ALLOW_EMPTY_PASSWORD and MYSQL_RANDOM_ROOT_PASSWORD
mysql_1  | error: database is uninitialized and password option is not specified
mysql_1  |   You need to specify one of MYSQL_ROOT_PASSWORD, MYSQL_ALLOW_EMPTY_PASSWORD and MYSQL_RANDOM_ROOT_PASSWORD

OS

My OS is:

  • MacOS El Capitan

Docker

The output of docker version:

Docker version 17.09.0-ce, build afdb6d4

The output of docker-compose version:

docker-compose version 1.16.1, build 6d1ac21

File permission

For some reason all files I created with ./vessel artisan make:, I don't have permission to change that in my host machine.

Add second database to MySQL

Hi,

I'm loving Vessel but I'm having issues adding a second database to MySQL when it gets built. Whats the best way to do that?

Thanks

Help Wanted label?

Hi

Love this idea. I've been doing similar stuff myself, so I'm happy to abandon that and use this instead. Have you considered using the "Help Wanted" label to allow people like myself to contribute fixes?

Also, the images. You're using "latest" in a lot of cases, building containers locally rather than pushing them to the docker hub and not using alpine images. Are those future enhancements or are they simply not needed? I imagine there are some "gotchas" there too :)

Really looking forward to trying this out, I wasn't too keen on getting xdebug working :)

p.s. Sorry if making this an issue is the wrong format, I couldn't see any other contact options.

Suggestion: Use xdebug.remote_connect_back setting

First of all, thanks for this project!

I would like to share a suggestion. How about using xdebug.remote_connect_back instead of xdebug.remote_host?

This change would avoid setting the xdebug port. I think it's a good choice for development environments.

If you agree, I can work at the PR.

Documentation instructions about MySQL will not work

Description

I was trying to execute the command to import a SQL file into the database but it's not working.

Apparently, when calling < /opt/example.sql, the command points to the local directory, so something like the command below works but not as you wrote in the documentation.

./vessel run --entrypoint "" --rm mysql mysql -h mysql -u root -psecret any_database < import.sql

OS

My OS is:

  • MacOS High Sierra

Docker

Client:
 Version:	17.12.0-ce
 API version:	1.35
 Go version:	go1.9.2
 Git commit:	c97c6d6
 Built:	Wed Dec 27 20:03:51 2017
 OS/Arch:	darwin/amd64

Server:
 Engine:
  Version:	17.12.0-ce
  API version:	1.35 (minimum version 1.12)
  Go version:	go1.9.2
  Git commit:	c97c6d6
  Built:	Wed Dec 27 20:12:29 2017
  OS/Arch:	linux/amd64
  Experimental:	true
docker-compose version 1.18.0, build 8dd22a9
docker-py version: 2.6.1
CPython version: 2.7.12
OpenSSL version: OpenSSL 1.0.2j  26 Sep 2016

Feature Request: Hyper.sh integration (or similar)

It would be amazing if there could be some form of integration with a pure container service like hyper.sh! If there is alternative that would work too!

Basically, just some option that would allow pushing a local container to a production environment.

How to configure xDebug w/ PHPStorm

Description

I have been trying to figure out all day how to get xDebug configured with Vessel and am not have any success at all. Does ANYBODY know the trick to making this work?

OS

My OS is:

  • MacOS Sierra, High Sierra

Docker

The output of docker version:

Client:
 Version:	17.12.0-ce
 API version:	1.35
 Go version:	go1.9.2
 Git commit:	c97c6d6
 Built:	Wed Dec 27 20:03:51 2017
 OS/Arch:	darwin/amd64

Server:
 Engine:
  Version:	17.12.0-ce
  API version:	1.35 (minimum version 1.12)
  Go version:	go1.9.2
  Git commit:	c97c6d6
  Built:	Wed Dec 27 20:12:29 2017
  OS/Arch:	linux/amd64
  Experimental:	true

The output of docker-compose version:

docker-compose version 1.18.0, build 8dd22a9
docker-py version: 2.6.1
CPython version: 2.7.12
OpenSSL version: OpenSSL 1.0.2j  26 Sep 2016

Connecting to Redis?

Hello guys, is it possible to expose redis connection so I can connect to it from my host just like we connect to sql?

Switch PHP Version

Is there anyway I can switch PHP version for testing my project in different PHP version.

  1. How does the php.ini get updated?

./vessel build fails | invalid user ID 'node'

Hello there,

I've just tried to install vessel (on Linux) but the ./vessel build node command fails with this message:

usermod: invalid user ID 'node'
ERROR: Service 'node' failed to build: The command '/bin/sh -c usermod -u $uid node' returned a non-zero code: 3

The app image builds fine.

When will windows ready?

Am rally try to make to docker works in windows but didn't find a way how to configure it in right way.. maybe this package make my life better :) Did you plain to release windows option for that and when?

Very Slow IO on High Sierra

Description

When using Vessel the application is very slow.

  • valet: 60ms
  • vessel: 1 up to 2 sec

Maybe it has something to do with this issue:
docker/for-mac#77

OS

My OS is:

  • MacOS High Sierra 10.13.1 (17B1003)
  • Linux
  • Windows

Docker

The output of docker version:

Client:
 Version:      17.09.1-ce
 API version:  1.32
 Go version:   go1.8.3
 Git commit:   19e2cf6
 Built:        Thu Dec  7 22:22:25 2017
 OS/Arch:      darwin/amd64

Server:
 Version:      17.09.1-ce
 API version:  1.32 (minimum version 1.12)
 Go version:   go1.8.3
 Git commit:   19e2cf6
 Built:        Thu Dec  7 22:28:28 2017
 OS/Arch:      linux/amd64
 Experimental: false

The output of docker-compose version:

docker-compose version 1.17.1, build 6d101fb
docker-py version: 2.5.1
CPython version: 2.7.12
OpenSSL version: OpenSSL 1.0.2j  26 Sep 2016

Ubuntu 17.10 issues

Description

A few issues:

./vessel {anything} throws ./vessel: line 21: /sbin/ifconfig: No such file or directory since 17.10 doesn't use ifconfig anymore.

Image "hostnames" are not working. Inspecting the vessel network shows Names of _redis_1, etc. Documentation says hostnames are the service name. mysql doesn't work nor does mysql_1, etc.

"Containers": {
            "2b4414631cb2350d086a893912379a1160f407e4d9659dee80f699105b262e87": {
                "Name": "financepackets_redis_1",
                "EndpointID": "947f8a6ca6d6ce3a7fe9a6bb10f7624bdae8cf474a75232d1cab6d1dc54ef9a6",
                "MacAddress": "02:42:ac:13:00:03",
                "IPv4Address": "172.19.0.3/16",
                "IPv6Address": ""
            },

./vessel art migrate (or any art/artisan) command doesn't run:

[ ~/Code/FinancePackets ] [ master | ✚5 ∞ ] ➜ ./vessel art migrate
./vessel: line 21: /sbin/ifconfig: No such file or directory
Execute a command in a running container

Usage: exec [options] SERVICE COMMAND [ARGS...]

Options:
    -d                Detached mode: Run command in the background.
    --privileged      Give extended privileges to the process.
    --user USER       Run the command as this user.
    -T                Disable pseudo-tty allocation. By default `docker-compose exec`
                      allocates a TTY.
    --index=index     index of the container if there are multiple
                      instances of a service [default: 1]

OS

My OS is:

  • MacOS [Choose one: Yosemite, El Capitan, Sierra, High Sierra]
  • Linux - Ubuntu 17.10
  • Windows

Docker

The output of docker version:

Docker version 17.10.0-ce, build f4ffd25

The output of docker-compose version:

docker-compose version 1.8.0, build unknown

Build/Start hangs when building node image

Description

OS

My OS is:

  • MacOS [Sierra]
  • Linux
  • Windows

Docker

The output of docker version:

Client:
 Version:	17.12.0-ce
 API version:	1.35
 Go version:	go1.9.2
 Git commit:	c97c6d6
 Built:	Wed Dec 27 20:03:51 2017
 OS/Arch:	darwin/amd64

Server:
 Engine:
  Version:	17.12.0-ce
  API version:	1.35 (minimum version 1.12)
  Go version:	go1.9.2
  Git commit:	c97c6d6
  Built:	Wed Dec 27 20:12:29 2017
  OS/Arch:	linux/amd64
  Experimental:	true

The output of docker-compose version:

docker-compose version 1.18.0, build 8dd22a9
docker-py version: 2.6.1
CPython version: 2.7.12
OpenSSL version: OpenSSL 1.0.2j  26 Sep 2016

(This might be a dupe of #71 but since the end result I'm getting is very different (I'm never getting any error message) I decided to open this as a new issue. If you feel it's the same, I'm happy to close this and report on that issue instead.)

On a fresh install, after successfully running init, ./vessel start and/or ./vessel build seems to get stuck and hang indefinitely on step 6 of building the node image, I believe while trying to download and install yarn.

screen shot 2018-03-17 at 4 53 54 pm

As a test I've tried starting a new project from scratch a few times, and am seeing this happen consistently. Just for kicks, I let it run for as long as 15min but it never seems to be able to get past

Step 6/6 : RUN usermod -u $uid node
 ---> Running in 025a20fb8d20

Could this be caused by that apt-utils error debconf: delaying package configuration, since apt-utils is not installed?

Thanks for this project. I'm really looking forward to getting my feet wet with docker!

docs: add information for lumen

Using vessel with lumen should be possible.

Maybe the docs can include this scenario?

The only difference is that the vendor:publish command is not available and the user has to copy the docker-compose.yml and vessel files as well as the docker directory manually.

Vessel ignores APP_PORT and MYSQL_PORT in .env file

Fantastic little package. Only issue I have encountered so far is the fact I can't seem to get it to recognise the APP_PORT and MYSQL_PORT variables stored in my env file.

I can start Vessel using those ports by defining them in the command line before start, but in the env file they seem to be ignored. I have tried to destroy all volumes, images and containers and essentially start from scratch but with the same result.

Nginx 502 bad gateway

Description

OS

My OS is:

  • Linux

Docker

The output of docker version:

Latest

The output of docker-compose version:

Latest

Hi, I have went throught the init process, started my vessel with ./vessel start but when i go to localhost in my browser I get 502 gateway error from nginx. anyone had this issue?

Build Failure - Segmentation Fault :(

Description

After doing a clean install of vessel on a new project (not this one - #70) I get the following:

./vessel build
Building app
Step 1/17 : FROM ubuntu:16.04
 ---> f975c5035748
Step 2/17 : LABEL maintainer="Chris Fidao"
 ---> Using cache
 ---> c5da905871fc
Step 3/17 : RUN useradd -ms /bin/bash -u 1337 vessel
 ---> Using cache
 ---> 5bb6ec163926
Step 4/17 : WORKDIR /var/www/html
 ---> Using cache
 ---> 9d9b9573b247
Step 5/17 : ENV GOSU_VERSION 1.7
 ---> Using cache
 ---> f023e8c26a74
Step 6/17 : RUN set -x     && apt-get update && apt-get install -y --no-install-recommends ca-certificates wget && rm -rf /var/lib/apt/lists/*     && wget -O /usr/local/bin/gosu "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$(dpkg --print-architecture)"     && wget -O /usr/local/bin/gosu.asc "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$(dpkg --print-architecture).asc"     && export GNUPGHOME="$(mktemp -d)"     && gpg --keyserver ha.pool.sks-keyservers.net --recv-keys B42F6819007F00F88E364FD4036A9C25BF357DD4     && gpg --batch --verify /usr/local/bin/gosu.asc /usr/local/bin/gosu     && rm -r "$GNUPGHOME" /usr/local/bin/gosu.asc     && chmod +x /usr/local/bin/gosu     && gosu nobody true     && apt-get purge -y --auto-remove ca-certificates wget
 ---> Running in 9aea301baa7a
+ apt-get update
Segmentation fault
ERROR: Service 'app' failed to build: The command '/bin/sh -c set -x     && apt-get update && apt-get install -y --no-install-recommends ca-certificates wget && rm -rf /var/lib/apt/lists/*     && wget -O /usr/local/bin/gosu "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$(dpkg --print-architecture)"     && wget -O /usr/local/bin/gosu.asc "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$(dpkg --print-architecture).asc"     && export GNUPGHOME="$(mktemp -d)"     && gpg --keyserver ha.pool.sks-keyservers.net --recv-keys B42F6819007F00F88E364FD4036A9C25BF357DD4     && gpg --batch --verify /usr/local/bin/gosu.asc /usr/local/bin/gosu     && rm -r "$GNUPGHOME" /usr/local/bin/gosu.asc     && chmod +x /usr/local/bin/gosu     && gosu nobody true     && apt-get purge -y --auto-remove ca-certificates wget' returned a non-zero code: 139

OS

My OS is:

  • MacOS [High Sierra]
  • Linux
  • Windows

Docker

The output of docker version:

Client:
 Version:	18.03.0-ce
 API version:	1.37
 Go version:	go1.9.4
 Git commit:	0520e24
 Built:	Wed Mar 21 23:06:22 2018
 OS/Arch:	darwin/amd64
 Experimental:	false
 Orchestrator:	swarm

Server:
 Engine:
  Version:	18.03.0-ce
  API version:	1.37 (minimum version 1.12)
  Go version:	go1.9.4
  Git commit:	0520e24
  Built:	Wed Mar 21 23:14:32 2018
  OS/Arch:	linux/amd64
  Experimental:	true

The output of docker-compose version:

docker-compose version 1.20.1, build 5d8c71b
docker-py version: 3.1.4
CPython version: 3.6.4
OpenSSL version: OpenSSL 1.0.2n  7 Dec 2017

Mapping an additional custom port

I'm trying to map a custom port (3000) under node container (I'm trying to see if I can make browsersync work). I've found no luck modifying docker-compose.yml to add:

    ports:
     - "3000:3000"

What would be the best way to map a new port?

laravel.log: Permission denied.

On first install, after vessel start.

Visiting http://localhost

Immediately get Whoops error:

The stream or file "/var/www/html/storage/logs/laravel.log" could not be opened: failed to open stream: Permission denied

OpenSUSE 42.3
Docker version 17.04.0-ce, build 78d1802
ZSH shell

I know it's newly released. Just a quick observation.

Edit:
Connecting to app container:
./vessel exec app bash

and then manually running:
chown -R www-data: /var/www/html

Resolves this issue. Not sure it's not running from the dockerfile.

Running Vessel in continuous integration

Thanks for Vessel, it's a great tool. I have noticed that it has a lot of similarities with the code from the Shipping Docker course. Only the CI part is missing, mainly the TTY switch (-T). Is this intentional? When i create a pull request adding this, would it be accepted?

How to connect to MySQL Database using Sequel Pro

Trying to connect to the database using Sequel Pro but not having much success? Any chance you have the secret?

OS

My OS is:

  • MacOS [Sierra]
  • Windows

Docker

The output of docker version:

17.09.1-ce

The output of docker-compose version:

1.17.1, build 6d101fb

All Artisan arguments not passed through

Hi mate.. Great job on the package

When I run something like ./vessel artisan preset none

It seems like the last argument is not being passed through as seen here

image

This obviously works when running php artisan preset none on the host.

And other single argument commands work as expected such as ./vessel artisan horizon

Am I doing something wrong here?

Cheers

EDIT: it's weird that this doesn't work since you use php artisan "$@" in the bash script... confused lol

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.