Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

This is a bootstraping skeleton module generated from the prestashop module generator to start up develop a prestashop module over a dockerized environment.

NotificationsYou must be signed in to change notification settings

jonatanrs/PrestashopAddons.DockerizedDevelopmentEnvironment

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is a bootstraping skeleton module generated from the prestashop module generator to start up develop a prestashop module over a dockerized environment.

How to run

Deploy the docker environment

Executedocker compose up -d -p dockerizedtestmodule in a shell:

C:\repo>docker compose up -d -p dockerizedtestmoduleThe new'docker compose'command is currently experimental. To provide feedback or request new features please open issues at https://github.com/docker/compose-cli[+] Building 0.2s (12/12) FINISHED => [internal] load build definition from Dockerfile                                                               0.0s => => transferring dockerfile: 32B                                                                                0.0s => [internal] load .dockerignore                                                                                  0.0s => => transferring context: 2B                                                                                    0.0s => [internal] load metadatafor docker.io/prestashop/prestashop:latest                                            0.0s => [1/8] FROM docker.io/prestashop/prestashop:latest                                                              0.0s => CACHED [2/8] RUN pecl install xdebug                                                                           0.0s => CACHED [3/8] RUN docker-php-ext-enable xdebug                                                                  0.0s => CACHED [4/8] RUNecho'zend_extension=xdebug.so'>> /usr/local/etc/php/php.ini                                 0.0s => CACHED [5/8] RUNecho'[XDebug]'>> /usr/local/etc/php/php.ini                                                 0.0s => CACHED [6/8] RUNecho'xdebug.mode=debug'>> /usr/local/etc/php/php.ini                                        0.0s => CACHED [7/8] RUNecho'xdebug.start_with_request=yes'>> /usr/local/etc/php/php.ini                            0.0s => CACHED [8/8] RUNecho'xdebug.client_port=9000'>> /usr/local/etc/php/php.ini                                  0.0s => exporting to image                                                                                             0.1s => => exporting layers                                                                                            0.0s => => writing image sha256:068a3f6b75ab11270a17cb78c3f4d230036e2a1503bb0c9a70bf79aa99022289                       0.0s => => naming to docker.io/library/dockerizedtestmodule_web                                                        0.0s[+] Running 3/2 - Network"dockerizedtestmodule_default"  Created                         0.0s - dockerizedtestmodule_db                 Cr...                           0.1s - dockerizedtestmodule_web                C...                            0.0sC:\repo>

Customize

If you want to develop your own module from this skeleton, change the following:

  1. Rename the module folderdockerizedtestmodule and the filedockerizedtestmodule/dockerizedtestmodule.php forYOURMODULENAME
  2. Rename thedockerizedtestmodule class andname attribute:
    classYOURMODULENAMEextends Module{protected$config_form =false;publicfunction __construct()    {$this->name ='YOURMODULENAME';
  3. Change the environment variables in the docker compose environment file.env
    COMPOSE_PROJECT_NAME=YOURMODULENAMEPORT=8090
  4. Executedocker compose up -d -p YOURMODULENAME

About

This is a bootstraping skeleton module generated from the prestashop module generator to start up develop a prestashop module over a dockerized environment.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp