Sign inSign up

skycop/elasticsearch

By skycop

•Updated over 7 years ago

Official ElasticSearch image with x-pack plugin (including configuration) removed

Image
0

10K+

skycop/elasticsearch repository overview

⁠skycop-core

CircleCI codecov

⁠Repositories accesses and permissions

  • First of all get permissions for all private bitbucket repositories, which can be found in composer.json file.
  • When you have granted permissions, then add your pub key in bitbucket settings. Docker is configured following: ~/.ssh:/root/.ssh, that means that your private key ~/.ssh/id_rsa will be used when checking out projects. No generic keys are used in this project!

⁠Get source, setup machine & project

⁠Docker setup & run

  • docker login
  • docker-compose up
  • docker-compose exec php bash

⁠Setup environment

  • Commands below must be ran in a docker container as a root user. You're already in a php container after running command docker-compose exec php bash.
  • cp /var/www/skycop-core/.env.dist /var/www/skycop-core/.env
  • sed -i 's/ENVIRONMENT/dev/g' /var/www/skycop-core/.env
  • sed -i 's/DEBUG/1/g' /var/www/skycop-core/.env
  • sed -i 's/CACHE/0/g' /var/www/skycop-core/.env
  • phing build

⁠Setup files/folders permissions

  • HTTPDUSER=ps axo user,comm | grep -E '[a]pache|[h]ttpd|[_]www|[w]ww-data|[n]ginx' | grep -v root | head -1 | cut -d\ -f1
  • setfacl -R -m u:"$HTTPDUSER":rwX -m u:whoami:rwX app/cache app/logs
  • setfacl -dR -m u:"$HTTPDUSER":rwX -m u:whoami:rwX app/cache app/logs

⁠Update database schema

  • php app/console doctrine:schema:update --force --dump-sql
  • php app/console doctrine:fixtures:load

⁠Project host

⁠Project admin logins

  • Admin logins can be found in a fixture file /app/DataFixtures/ORM/LoadAdminData.php

⁠XDebug

  • XDebug has custom port: 9001

⁠Settings light schema create

  • app/console doctrine:database:create --connection=settings
  • app/console settings_light:schema:init

⁠XDebug on OSX

  • use xdebug.remote_host= docker.for.mac.host.internal setting value in php.ini. Create file ./docker-compose/php/conf.d/docker-php-ext-xdebug.ini with that config param and add such line in docker-compose.yml file: - './docker-compose/php/conf.d/docker-php-ext-xdebug.ini:/usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini'

Tag summary

Content type

Image

Digest

Size

227.3 MB

Last updated

over 7 years ago

docker pull skycop/elasticsearch