Skip to content

Commit

Permalink
Merge pull request #1 from Edge-Hill-Univeristy-Web/dev
Browse files Browse the repository at this point in the history
updated composer to address hang bug
  • Loading branch information
Danny2097 authored Mar 23, 2023
2 parents 4016e10 + da5ed3c commit b276e8d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@
"otherPortsAttributes": {"onAutoForward": "openBrowser"},

// Use 'postCreateCommand' to run commands after the container is created.
"onCreateCommand": "sudo apt update && sudo apt install software-properties-common -y && sudo apt install libarchive-tools -y && sudo apt install python2.7 -y && sudo apt install python-pip -y && sudo add-apt-repository ppa:ondrej/php -y && sudo apt update && sudo apt install php7.2 -y && apt-get install php7.2-mysql php7.2-curl php7.2-mbstring php7.2-json php7.2-xml php7.2-bcmath php7.2-ctype php7.2-fileinfo php7.2-pdo php7.2-tokenizer -y && php -r \"copy('https://getcomposer.org/installer', 'composer-setup.php');\" && php -r \"if (hash_file('sha384', 'composer-setup.php') === '55ce33d7678c5a611085589f1f3ddf8b3c52d662cd01d4ba75c0ee0459970c2200a51f492d557530c71c15d8dba01eae') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;\" && php composer-setup.php --version=1.6.5 --install-dir=/usr/local/bin --filename=composer && php -r \"unlink('composer-setup.php');\" && composer global require laravel/installer && composer require --dev phpunit/phpunit ^8.5 && touch ~/.bash_aliases && echo \"alias phpunit='/workspaces/CIS2167-Laravel-6/vendor/bin/phpunit'\" >> ~/.bashrc && echo \"alias mocha='/workspaces/CIS2167-Laravel-6/node_modules/mocha/bin/mocha.js'\" >> ~/.bashrc && cd ~ && curl -sL https://deb.nodesource.com/setup_14.x | sudo bash - && sudo apt -y install nodejs && sudo apt -y install gcc g++ make && curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add - && echo 'deb https://dl.yarnpkg.com/debian/ stable main' | sudo tee /etc/apt/sources.list.d/yarn.list && sudo apt update && sudo apt install yarn",

"onCreateCommand": "sudo apt update && sudo apt install software-properties-common -y && sudo apt install libarchive-tools -y && sudo apt install python2.7 -y && sudo apt install python-pip -y && sudo add-apt-repository ppa:ondrej/php -y && sudo apt update && sudo apt install php7.2 -y && apt-get install php7.2-mysql php7.2-curl php7.2-mbstring php7.2-json php7.2-xml php7.2-bcmath php7.2-ctype php7.2-fileinfo php7.2-pdo php7.2-tokenizer -y && php -r \"copy('https://getcomposer.org/installer', 'composer-setup.php');\" && php -r \"if (hash_file('sha384', 'composer-setup.php') === '55ce33d7678c5a611085589f1f3ddf8b3c52d662cd01d4ba75c0ee0459970c2200a51f492d557530c71c15d8dba01eae') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;\" && php composer-setup.php --version=2.0.5 --install-dir=/usr/local/bin --filename=composer && php -r \"unlink('composer-setup.php');\"&& composer global require laravel/installer && composer require --dev phpunit/phpunit ^8.5 && touch ~/.bash_aliases && echo \"alias phpunit='/workspaces/CIS2167-Laravel-6/vendor/bin/phpunit'\" >> ~/.bashrc && echo \"alias mocha='/workspaces/CIS2167-Laravel-6/node_modules/mocha/bin/mocha.js'\" >> ~/.bashrc && cd ~ && curl -sL https://deb.nodesource.com/setup_14.x | sudo bash - && sudo apt -y install nodejs && sudo apt -y install gcc g++ make && curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add - && echo 'deb https://dl.yarnpkg.com/debian/ stable main' | sudo tee /etc/apt/sources.list.d/yarn.list && sudo apt update && sudo apt install yarn",
// Configure tool-specific properties.
// "customizations": {},

Expand Down

0 comments on commit b276e8d

Please sign in to comment.