Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save anyt/21645b53e953aff4842c55061375ffb1 to your computer and use it in GitHub Desktop.
Save anyt/21645b53e953aff4842c55061375ffb1 to your computer and use it in GitHub Desktop.
  1. Install PHP 7.4 with all required extensions.
sudo apt -y install php \
      php-fpm \
      php-cli \
      php-pdo \
      php-mysqlnd \
      php-xml \
      php-soap \
      php-gd \
      php-zip \
      php-intl \
      php-mbstring \
      php-opcache \
      php-curl \
      php-bcmath \
      php-ldap \
      php-pgsql
  1. Install NodeJs 12 LTS.
sudo apt -y install curl dirmngr apt-transport-https lsb-release ca-certificates
curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -
sudo apt -y install nodejs
  1. Install Docker & docker-compose.
sudo apt -y install docker.io docker-compose
sudo usermod -aG docker $(whoami)
sudo systemctl enable --now docker
  1. Install a composer.
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" && php composer-setup.php
php -r "unlink('composer-setup.php');"
sudo mv composer.phar /usr/bin/composer
  1. Install a Symfony Server and tls certificate for it.
sudo apt -y install libnss3-tools
wget https://get.symfony.com/cli/installer -O - | bash
echo 'PATH="$HOME/.symfony/bin:$PATH"' >> ~/.bashrc
source ~/.bashrc
symfony server:ca:install
  1. Install flex globally to improve the performance of composer operation for symfony based projects up to 10 times.
composer global require symfony/flex
  1. Configure GitHub auth token https://getcomposer.org/doc/articles/troubleshooting.md#api-rate-limit-and-oauth-tokens.
composer config -g github-oauth.github.com <oauthtoken>
  1. Create OroCommerce EE project with composer.
composer create-project oro/commerce-crm-enterprise-application oroapp --repository=https://satis.oroinc.com -n
  1. Copy docker configs from https://github.com/anyt/orocommerce-enterprise-services-docker to the project folder.
wget -c https://github.com/anyt/orocommerce-enterprise-services-docker/releases/download/0.1/docker-config.tar.gz -O - | tar -xz
  1. Install an application.
docker-compose up -d
time symfony console oro:install  --sample-data=y  --application-url=https://127.0.0.1:8000  --user-name=admin  --user-email=admin@example.com  --user-firstname=John  --user-lastname=Doe  --user-password=admin  --organization-name=Oro --timeout=0 --symlink -n;
  1. Start the symfony server and open the project in a browser.
symfony serve -d
symfony open:local
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment