sail | Command line client for Sailabove Docker Hosting platform | Continuous Deployment library

 by   ovhlabs Go Version: v0.7.5 License: Non-SPDX

kandi X-RAY | sail Summary

kandi X-RAY | sail Summary

sail is a Go library typically used in Devops, Continuous Deployment, Docker applications. sail has no bugs, it has no vulnerabilities and it has low support. However sail has a Non-SPDX License. You can download it from GitHub.

Sailabove.com is a docker hosting solution aiming to be as flexible as a container and as elegant as a sailboat.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              sail has a low active ecosystem.
              It has 15 star(s) with 5 fork(s). There are 26 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 1 open issues and 5 have been closed. On average issues are closed in 0 days. There are no pull requests.
              It has a neutral sentiment in the developer community.
              The latest version of sail is v0.7.5

            kandi-Quality Quality

              sail has no bugs reported.

            kandi-Security Security

              sail has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.

            kandi-License License

              sail has a Non-SPDX License.
              Non-SPDX licenses can be open source with a non SPDX compliant license, or non open source licenses, and you need to review them closely before use.

            kandi-Reuse Reuse

              sail releases are available to install and integrate.
              Installation instructions, examples and code snippets are available.

            Top functions reviewed by kandi - BETA

            kandi has reviewed sail and discovered the below as its top functions. This is intended to give you an instant insight into sail implemented functionality, and help decide if they suit your requirements.
            • serviceAdd adds a service to the container
            • serviceRedeploy is the entrypoint command
            • addCmd returns cobra . Command for docker add
            • ReadConfig reads docker config file
            • cmdUp executes up command .
            • doUpdate executes the update command .
            • doRequest executes the request and returns the response .
            • parsePublishedPort returns a map of published port parameters .
            • Add a container to the container
            • serviceList returns a list of services
            Get all kandi verified functions for this library.

            sail Key Features

            No Key Features are available at this moment for sail.

            sail Examples and Code Snippets

            Sailabove client
            Godot img1Lines of Code : 10dot img1License : Non-SPDX (NOASSERTION)
            copy iconCopy
            docker login sailabove.io
            
            # Build
            docker tag my-cool-project-image sailabove.io/my-app/my-cool-project-image
            
            # Ship
            docker push sailabove.io/my-app/my-cool-project-image
            
            # Run
            sail service add my-cool-project-image my-cool-project-service
              
            Sailabove client,Hacking
            Godot img2Lines of Code : 4dot img2License : Non-SPDX (NOASSERTION)
            copy iconCopy
            export GO15VENDOREXPERIMENT=1
            go get github.com/runabove/sail
            cd $GOPATH/src/github.com/runabove/sail
            go build
              
            Sailabove client,Usage
            Godot img3Lines of Code : 4dot img3License : Non-SPDX (NOASSERTION)
            copy iconCopy
            sail service add my-app/my-redis-image my-app/redis-service
            
            sail service ps
            
            sail service scale my-app/redis-service --number 2
            
            sail service rm my-app/redis-service
              

            Community Discussions

            QUESTION

            Laravel Sail how to change local dev domain
            Asked 2021-Jun-14 at 12:29

            I have recently decided to try out Laravel Sail instead of my usual setup with Vagrant/Homestead. Everything seems to be beautifully and easily laid out but I cannot seem to find a workaround for changing domain names in the local environment.

            I tried serving the application on say port 89 with the APP_PORT=89 sail up command which works fine using localhost:89 however it seems cumbersome to try and remember what port was which project before starting it up.

            I am looking for a way to change the default port so that I don't have to specify what port to serve every time I want to sail up. Then I can use an alias like laravel.test for localhost:89 so I don't have to remember ports anymore I can just type the project names.

            I tried changing the etc/hosts file but found out it doesn't actually help with different ports

            I essentially am trying to access my project by simply typing 'laravel.test' on the browser for example.

            Also open for any other suggestions to achieve this. Thanks

            **Update ** After all this search I actually decided to change my workflow to only have one app running at a time so now I am just using localhost and my CPU and RAM loves it, so if you are here moving from homestead to docker, ask yourself do you really need to run all these apps at the same time. If answer is yes research on, if not just use localhost, there is nothing wrong with it

            ...

            ANSWER

            Answered 2021-Feb-12 at 20:06

            To change the local name in Sail from the default 'laravel.test' and the port, add the following to your .env file:
            APP_SERVICE="yourProject.local"
            APP_PORT=89
            This will take effect when you build (or rebuild using sail build --no-cache) your Sail container.

            And to be able to type in 'yourProject.local' in your web browser and have it load your web page, ensure you have your hosts file updated by adding
            127.0.0.1 yourProject.local
            to your hosts file. This file is located:

            • Windows 10 – “C:\Windows\System32\drivers\etc\hosts”
            • Linux – “/etc/hosts”
            • Mac OS X – “/private/etc/hosts”

            You'll need to close all browser instances and reopen after making chnages to the hosts file. With this, try entering the alias both with and without the port number to see which works. Since you already set the port via .env you may not need to include it in your alias.

            If this doesn't work, change the .env APP_URL=http://yourProject.local:89

            Ok another option, in /routes/web.php I assume you have a route set up that may either return a view or call a controller method. You could test to see if you can have this ‘return redirect('http://yourProject.local:89');’ This may involve a little playing around with the routes/controller, but this may be worth looking into.

            Source https://stackoverflow.com/questions/66171148

            QUESTION

            Unable to set the APP_PORT on .env for Laravel Sail
            Asked 2021-Jun-12 at 17:14

            I have the following problem in Windows 10 (in Ubuntu works properly):

            I'm working in Laravel 8 with Sail When I create the APP_PORT variable on .env...

            ...

            ANSWER

            Answered 2021-May-29 at 09:44

            QUESTION

            How to choose multiple service when installing laravel/sail on existing laravel project
            Asked 2021-Jun-11 at 09:22

            How can I choose multiple services when running php artisan sail:install. When I run it, I get this prompt asking me to choose services but I can't select more than one option, when I chose redis, it only scaffolded the app with redis only.

            I tried using [0,3,5,7,8] but it never worked. How can I choose multiple options? Am using Ubuntu 20.04.

            Thank you in advance.

            ...

            ANSWER

            Answered 2021-Jun-11 at 09:22

            You don't nee to specify the service options as an array, just a comma separated string.

            So in your example, you only need to do:

            Source https://stackoverflow.com/questions/67934222

            QUESTION

            Creating a docker container for postgresql with laravel sail
            Asked 2021-Jun-10 at 11:50

            I created a docker container using the standard "image: postgres:13", but inside the container it doesn't start postgresql because there is no cluster. What could be the problem? Thx for answers!

            My docker-compose:

            ...

            ANSWER

            Answered 2021-Jun-10 at 11:50

            You should not connect through localhost but by the container name as host name.

            So change your .env to contain

            Source https://stackoverflow.com/questions/67920143

            QUESTION

            How to change mysql version from 8.0 to 5.6 in docker-compose.yml of laravel 8 project?
            Asked 2021-Jun-06 at 13:56

            I installed laravel 8 via sail. By default docker-compose.yml use mysql:8. But I need to change mysql version to 5.6 or 5.7.

            When I run sail up -d and than run docker-compose ps I see that mysql container not running:

            ...

            ANSWER

            Answered 2021-Jun-06 at 13:56

            Use command:

            sail down --rmi all -v

            Old volumes was deleted and ploblem was solved.

            Source https://stackoverflow.com/questions/67829200

            QUESTION

            Can't enter my password when trying to create a Laravel project with Sail on Windows
            Asked 2021-May-29 at 17:50

            I want to create a new Laravel 8 project and I followed the documentation with docker and Sail on Windows: https://laravel.com/docs/8.x#getting-started-on-windows

            After I installed everything, I tried executing the command to create the project:

            ...

            ANSWER

            Answered 2021-May-29 at 17:50

            First of all you should create a folder called projects inside your home directory, then, go into that folder and execute sudo curl -s https://laravel.build/example-app | bash

            You could also do sudo su and then curl -s https://laravel.build/example-app | bash

            Source https://stackoverflow.com/questions/67754008

            QUESTION

            Add to PATH from Laravel Sail Dockerfile
            Asked 2021-May-27 at 17:59

            I'm trying to add sqlpackage to a Laravel Sail Docker. While this is normally not really difficult, Sail makes it kinda hard.

            I have the following section in my Dockerfile

            ...

            ANSWER

            Answered 2021-May-27 at 17:59

            cannot create /home/sail/.bashrc: Directory nonexistent

            It looks like user sail doesn't exist so

            before

            Source https://stackoverflow.com/questions/67726231

            QUESTION

            Composer error deploying laravel application on elasticbeanstalk
            Asked 2021-May-26 at 10:38

            I have a laravel app hosted on elastic beanstalk and it is also connected with code pipeline. When I deployed the application I got this error on ebs panel:

            ERROR: During an aborted deployment, some instances may have deployed the new application version. To ensure all instances are running the same version, re-deploy the appropriate application version.

            I don't know if it is related but when I downloaded the logs I found this:

            ...

            ANSWER

            Answered 2021-May-26 at 06:38

            It seems that you have some typos. The special character "\" must be "\\" for folder separation. try this composer.json:

            Source https://stackoverflow.com/questions/67692660

            QUESTION

            Laravel Sail/Docker - Unable to locate package msodbcsql17
            Asked 2021-May-25 at 06:27

            I'm trying to get a Laravel Sail Docker to be compatible with sqlsrv (MSSQL). I've come a long way with the config and got it to install sqlsrv and the pdo_sqlsrv. So now I need to install msodbcsql17. For that I'm following the microsoft guide (https://docs.microsoft.com/nl-nl/sql/connect/odbc/linux-mac/installing-the-microsoft-odbc-driver-for-sql-server?view=sql-server-ver15) for Ubuntu 20.04 (as that is my version).

            That specific documentation says to download and run. Translating that to the Sail Dockerfile, that part of my Dockerfile looks like this:

            ...

            ANSWER

            Answered 2021-May-21 at 06:34

            By default most docker images have an empty package lists to save on image size. This is why you need to apt-get update first. This will not update any software (that would be apt-get upgrade) but just updates the package list. The command is actually also in Microsoft's instructions you linked.

            Source https://stackoverflow.com/questions/67618911

            QUESTION

            Laravel Sail - SQLSTATE[HY000] [2002] No such file or directory
            Asked 2021-May-23 at 17:03

            I followed the tutorial of Laravel Sail and it is working fine, but if I clone the repo (docker-compose up), in another machine, I get the following error when trying to run migrations inside the container:

            SQLSTATE[HY000] [2002] No such file or directory (SQL: create table migrations (id int unsigned not null auto_increment primary key, migration varchar(255) not null, batch int not null) default character set utf8mb4 collate 'utf8mb4_unicode_ci')

            Already tried some solutions but nothing worked.

            My database.php file:

            ...

            ANSWER

            Answered 2021-May-23 at 13:31

            So, on database.php I removed the socket value:

            Source https://stackoverflow.com/questions/67659528

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install sail

            To update it, simply run.
            Grab lastest release for your platform from https://github.com/runabove/sail/releases
            Make it executable. chmod +x sail will do the trick on UNix based platforms

            Support

            Sign Up: http://labs.runabove.com/dockerRegistry: https://registry.sailabove.io/Get help: https://community.runabove.com/Get started: https://community.runabove.com/kb/en/docker/getting-started-with-sailabove-docker.htmlDocumentation: Reference documentation, GuidesOVH Docker mailing-list: docker-subscribe@ml.ovh.net
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/ovhlabs/sail.git

          • CLI

            gh repo clone ovhlabs/sail

          • sshUrl

            git@github.com:ovhlabs/sail.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link