Skip to content

Instantly share code, notes, and snippets.

@hprobotic
Created May 4, 2020 13:27
Show Gist options
  • Save hprobotic/8799ddeaf2ad373b45d509051d1b3381 to your computer and use it in GitHub Desktop.
Save hprobotic/8799ddeaf2ad373b45d509051d1b3381 to your computer and use it in GitHub Desktop.
commands:
00_install_epel:
cwd: /tmp
command: 'sudo yum install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm && sudo yum-config-manager --enable epel'
01_node_install:
cwd: /tmp
test: '[ ! -f /usr/bin/node ] && echo "node not installed"'
command: 'sudo yum install -y nodejs --enablerepo=epel'
02_npm_install:
cwd: /tmp
test: '[ ! -f /usr/bin/npm ] && echo "npm not installed"'
command: 'curl -L http://npmjs.org/install.sh | sudo sh'
03_node_update:
cwd: /tmp
test: '[ ! -f /usr/bin/n ] && echo "node not updated"'
command: 'npm install -g n && n stable'
07_install_php_zip:
cwd: /tmp
command: 'yum install -y zip unzip php70-zip --enablerepo=epel'
08_install_php_composer:
command: "sudo curl -sS https://getcomposer.org/installer | sudo php -- --install-dir=/usr/local/bin --filename=composer"
09_install_gulp_and_bower:
command: "sudo npm install -g inherits bower gulp"
container_commands:
01_install_composer_packages:
command: "composer update"
env:
"COMPOSER_HOME": "/tmp"
02_remove_node_packages:
command: "sudo rm -rf web/app/themes/mytheme/node_modules"
03_install_node_packages:
command: "cd web/app/themes/mytheme && sudo npm install"
04_install_bower_packages:
command: "cd web/app/themes/mytheme && bower update --allow-root"
env:
"PATH": "/usr/bin"
05_run_gulp:
command: "cd web/app/themes/mytheme && gulp --production"
option_settings:
- namespace: 'aws:elasticbeanstalk:container:php:phpini'
option_name: document_root
value: /web
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment