Created
October 8, 2019 21:44
-
-
Save DragonBe/99e8e35b4e15862d1caeb33664c68dbc to your computer and use it in GitHub Desktop.
Quickly set up a Vagrantbox with Debian 8 and PHP 7.3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Vagrant.configure("2") do |config| | |
config.vm.box = "debian/jessie64" | |
config.vm.hostname = "jenkins-php7" | |
config.vm.network "private_network", ip: "192.168.121.4" | |
config.vm.synced_folder ".", "/vagrant", disabled: true | |
config.vm.provision "shell", inline: <<-SCRIPT | |
apt-get update | |
apt-get upgrade -y | |
apt-get install -y \ | |
ca-certificates \ | |
apt-transport-https \ | |
curl | |
curl -sSL https://packages.sury.org/php/apt.gpg | apt-key add - | |
rm -f /etc/apt/sources.list.d/php.list | |
echo "deb https://packages.sury.org/php/ jessie main" | tee /etc/apt/sources.list.d/php.list | |
apt-get update | |
apt-get install -y \ | |
php7.3 \ | |
php7.3-bcmath \ | |
php7.3-bz2 \ | |
php7.3-cgi \ | |
php7.3-cli \ | |
php7.3-common \ | |
php7.3-curl \ | |
php7.3-dba \ | |
php7.3-dev \ | |
php7.3-enchant \ | |
php7.3-fpm \ | |
php7.3-gd \ | |
php7.3-gmp \ | |
php7.3-imap \ | |
php7.3-interbase \ | |
php7.3-intl \ | |
php7.3-json \ | |
php7.3-ldap \ | |
php7.3-mbstring \ | |
php7.3-mysql \ | |
php7.3-odbc \ | |
php7.3-opcache \ | |
php7.3-pgsql \ | |
php7.3-phpdbg \ | |
php7.3-pspell \ | |
php7.3-readline \ | |
php7.3-recode \ | |
php7.3-snmp \ | |
php7.3-soap \ | |
php7.3-sqlite3 \ | |
php7.3-sybase \ | |
php7.3-tidy \ | |
php7.3-xml \ | |
php7.3-xmlrpc \ | |
php7.3-xsl \ | |
php7.3-zip | |
apt-get autoremove -y | |
SCRIPT | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment