Created
November 18, 2023 09:56
-
-
Save izmilia-prastika/617a0df5ac712ca3b1fb7d1c33599240 to your computer and use it in GitHub Desktop.
Contoh Ragam Server Tempating untuk melakukan instalasi dan menjalankan web server dengan aplikasi PHP
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
{ | |
"builders": [{ | |
"ami_name": "packer-example", | |
"instance_type": "t2.micro", | |
"region": "us-east-1", | |
"type": "amazon-ebs", | |
"source_ami": "ami-40d28157", | |
"ssh_username": "ubuntu" | |
}], | |
"provisioners": [{ | |
"type": "shell", | |
"inline": [ | |
"sudo apt-get update", | |
"sudo apt-get install -y php", | |
"sudo apt-get install -y apache2", | |
"sudo git clone https://github.com/brikis98/php-app.git /var/www/html/app" | |
] | |
}] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment