Giter Site home page Giter Site logo

tao-docker's Introduction

Docker set up for TAO

Ready to use docker set up for working with package-tao (or deploy-test-package version as well).

  • Php-fpm 7.1
  • Nginx
  • MariaDB
  • Blackfire

Set up

In your package-tao installation root folder, copy provided:

  • docker folder
  • docker-compose.yml file
  • .env file (for blackfire credentials)

Usage

Up the docker stack:

$ docker-compose up -d

You can then access:

  • TAO on http://localhost on port 80
  • the database on localhost on port 3306

Extra: If needed, this is the CLI needed to install TAO using this docker stack:

docker exec -it tao_phpfpm php tao/scripts/taoInstall.php \
    --db_driver pdo_mysql \
    --db_host tao_mariadb \
    --db_name tao \
    --db_user tao \
    --db_pass tao \
    --module_namespace http://sample/first.rdf \
    --module_url http://localhost \
    --user_login admin \
    --user_pass admin \
    -e taoCe

Running tests from container

This stack also permit to run integration / functional tests of TAO.

For this , you need to set up TAO config as follow in package-tao/config/generis.conf.php:

...
# paths
define('ROOT_PATH','/var/www/html/');
define('ROOT_URL','http://tao_nginx/');
...

And then run tests:

docker exec -it tao_phpfpm vendor/bin/phpunit anyTest

Blackfire usage

If you need to use blackfire, you can simply edit the .env file settings with your blackfire credentials.

tao-docker's People

Contributors

ekkinox avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

oatymart

tao-docker's Issues

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.