This commit is contained in:
jm.dupuy 2024-06-13 10:48:35 +02:00
parent 43197a4398
commit 8f35b3bfaf
13 changed files with 13 additions and 40 deletions

View File

@ -1 +0,0 @@
1.5:e07e5080-8cae-4adc-b68c-2122731d3bf0

View File

@ -1 +0,0 @@
1718192131

View File

@ -1 +0,0 @@
{"name":"laravel/homestead","version":"14.0.2","provider":"virtualbox","directory":"boxes/laravel-VAGRANTSLASH-homestead/14.0.2/amd64/virtualbox"}

View File

@ -1 +0,0 @@
e07e5080-8cae-4adc-b68c-2122731d3bf0

View File

@ -1 +0,0 @@
f351545ca24d4b3aa820df6fab400c8f

View File

@ -1,8 +0,0 @@
-----BEGIN OPENSSH PRIVATE KEY-----
b3BlbnNzaC1rZXktdjEAAAAABG5vbmUAAAAEbm9uZQAAAAAAAAABAAAAMwAA
AAtzc2gtZWQyNTUxOQAAACCqfmPOFUpgjMsECLWXz9jJcQwqUlxVbDzPMVzL
sM5qjQAAAJCe1FGtntRRrQAAAAtzc2gtZWQyNTUxOQAAACCqfmPOFUpgjMsE
CLWXz9jJcQwqUlxVbDzPMVzLsM5qjQAAAEBps9392BKcZ1K1ZWOUSai9H3PN
dLpY0W3jyM85QSpBRqp+Y84VSmCMywQItZfP2MlxDCpSXFVsPM8xXMuwzmqN
AAAAB3ZhZ3JhbnQBAgMEBQY=
-----END OPENSSH PRIVATE KEY-----

View File

@ -1 +0,0 @@
{"virtualbox":{"/home/vagrant/code":{"type":null,"mount_options":["uid=1000","gid=1000","_netdev"],"guestpath":"/home/vagrant/code","hostpath":"C:/Users/sio/Desktop/Homestead/Code","disabled":false,"__vagrantfile":true},"/vagrant":{"guestpath":"/vagrant","hostpath":"C:/Users/sio/Desktop/Homestead/Laravel_pc_lycee","disabled":false,"__vagrantfile":true}}}

View File

@ -1 +0,0 @@
C:/Users/sio/Desktop/Homestead/Laravel_pc_lycee

View File

@ -1,12 +0,0 @@
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: BUSL-1.1
# This file loads the proper rgloader/loader.rb file that comes packaged
# with Vagrant so that encoded files can properly run with Vagrant.
if ENV["VAGRANT_INSTALLER_EMBEDDED_DIR"]
require File.expand_path(
"rgloader/loader", ENV["VAGRANT_INSTALLER_EMBEDDED_DIR"])
else
raise "Encoded files can't be read outside of the Vagrant installer."
end

View File

@ -13,15 +13,6 @@ provider: virtualbox
# - map: Path\Code
# to: /home/vagrant/code
authorize: C:\Users\sio\.ssh\id_rsa.pub
keys:
- C:\Users\sio\.ssh\id_rsa
folders:
- map: C:\Users\sio\Desktop\Homestead\Code
to: /home/vagrant/code
sites:
- map: homestead.test
to: /home/vagrant/code/public

View File

@ -23,8 +23,7 @@ folders:
## Création de la VM
Depuis la racine du dépôt, lancer l'import de la box et son provisionning avec `vagrant up`
Depuis la racine du dépôt, lancer l'import de la box et son provisionning avec : `vagrant up`
## Création d'un projet Laravel

View File

@ -19,7 +19,7 @@ class Homestead
config.vm.define settings['name'] ||= 'homestead'
config.vm.box = settings['box'] ||= 'laravel/homestead'
unless settings.has_key?('SpeakFriendAndEnter')
config.vm.box_version = settings['version'] ||= '>= 14.0.2, < 15.0.0'
config.vm.box_version = settings['version'] ||= '14.0.2'
end
config.vm.hostname = settings['hostname'] ||= 'homestead'
@ -187,6 +187,9 @@ class Homestead
end
end
##### REGLAGES PROXY ###########
#Add proxy to apt
config.vm.provision 'shell' do |s|
s.inline = "sudo echo 'Acquire::http::proxy \"http://10.121.38.1:8080\";' > /etc/apt/apt.conf ; sudo echo 'Acquire::https::proxy \"http://10.121.38.1:8080\";' >> /etc/apt/apt.conf"
@ -197,6 +200,11 @@ class Homestead
s.inline = "sudo echo 'http_proxy http://10.121.38.1:8080' >> /etc/environment ; sudo echo 'https_proxy http://10.121.38.1:8080' >> /etc/environment ; sudo echo 'no_proxy localhost,127.0.0.1' >> /etc/environment ; sudo echo 'HTTP_PROXY http://10.121.38.1:8080' >> /etc/environment ; sudo echo 'HTTPS_PROXY http://10.121.38.1:8080' >> /etc/environment ; sudo echo 'NO_PROXY localhost,127.0.0.1' >> /etc/environment"
end
#Add proxy to vagrant user
config.vm.provision 'shell' do |s|
s.inline = "sudo echo 'export http_proxy http://10.121.38.1:8080' >> /home/vagrant/.bashrc ; sudo echo 'export https_proxy http://10.121.38.1:8080' >> /home/vagrant/.bashrc"
end
# Copy User Files Over to VM
if settings.include? 'copy'
settings['copy'].each do |file|
@ -681,6 +689,9 @@ class Homestead
end
end
####### MODIF PROXY POUR UPDATE COMPOSER ###########
# Update Composer On Every Provision
config.vm.provision 'shell' do |s|
s.name = 'Update Composer'