Bagisto with Docker



  • Hello, I am not fluent in English, so I will try to be as clear as possible in my question.

    I am Laravel programmer and I am very curious about Bagisto, because I think is perfect to my project.
    I checked in the software documentation taht it has a very easy and pratical web api to be used.

    In my development environment I don't have php, nginx, mysql or composer installed, only Docker version 19.03.8 and docker-compose version 1.21.2, installed.

    I downloaded Bagisto and ran the composer and the following message came out.

    $ ▶ docker run --rm -v $(pwd):/app composer install
    Loading composer repositories with package information
    Installing dependencies (including require-dev) from lock file
    Your requirements could not be resolved to an installable set of packages.
    
      Problem 1
        - The requested PHP extension ext-intl * is missing from your system. Install or enable PHP's intl extension.
      Problem 2
        - The requested PHP extension ext-pdo_mysql * is missing from your system. Install or enable PHP's pdo_mysql extension.
      Problem 3
        - Installation request for phpoffice/phpspreadsheet 1.11.0 -> satisfiable by phpoffice/phpspreadsheet[1.11.0].
        - phpoffice/phpspreadsheet 1.11.0 requires ext-gd * -> the requested PHP extension gd is missing from your system.
      Problem 4
        - phpoffice/phpspreadsheet 1.11.0 requires ext-gd * -> the requested PHP extension gd is missing from your system.
        - maatwebsite/excel 3.1.18 requires phpoffice/phpspreadsheet ^1.10 -> satisfiable by phpoffice/phpspreadsheet[1.11.0].
        - Installation request for maatwebsite/excel 3.1.18 -> satisfiable by maatwebsite/excel[3.1.18].
    
      To enable extensions, verify that they are enabled in your .ini files:
        - /usr/local/etc/php/php-cli.ini
        - /usr/local/etc/php/conf.d/docker-php-ext-opcache.ini
        - /usr/local/etc/php/conf.d/docker-php-ext-sodium.ini
        - /usr/local/etc/php/conf.d/docker-php-ext-zip.ini
      You can also run `php --ini` inside terminal to see which files are used by PHP in CLI mode.
    
    

    If somebody could give me a tip about solve this problem I would appreciate it very much.
    I am not an expert on docker or docker-compose either, but I use them in my Laravel projects without any problems.
    Thank you



  • Hi @William-Hatanaka

    Here is the Bagisto Docker Guide, please check it out. https://github.com/bagisto/bagisto-docker

    Thanks.



  • Thank you ! I will check it !



  • Hey @Vaishali-Agarwal
    Sorry for taking so long to answer your email.
    I did it all process again and all thing doing well !
    Thank you very much!
    But now I am trying to translate Bagisto to Japanese so I need to customize some things inside the Vue scrips to translate some validation messages to Japanese, and to do it i need to have a npm and node inside the docker-compose.
    Do you know how to do it?
    Thank you



  • Hi @William-Hatanaka
    It's nice to hear that Bagisto has been setup on Docker.
    To loads scripts, you don't need to mention npm in docker-composer
    you can just run command like

    docker exec -i apache2 bash -c "su - www-data -s /bin/bash -c 'npm i'"
    

Log in to reply