Skip to content

Commit

Permalink
fix: problème d'indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
jenovateurs authored and Shamzic committed Aug 12, 2024
1 parent f563956 commit 1444bb6
Showing 1 changed file with 18 additions and 19 deletions.
37 changes: 18 additions & 19 deletions local/Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,25 +12,24 @@ Vagrant.configure("2") do |config|
end

config.vm.provider "docker" do |docker, override|
override.vm.box = nil
docker.build_dir = "."

platform = `uname -m`.strip
is_arm64 = platform == "arm64" || platform == "aarch64"

# Conditional arguments for ARM64 platform
if is_arm64
docker.build_args = "--platform=linux/arm64"
docker.create_args = ["--platform=linux/arm64"]
end

docker.build_args = "--platform=linux/arm64"
docker.name = "ctn_aides_jeunes"
override.ssh.insert_key = true
docker.has_ssh = true
docker.privileged = true
docker.ports = ["8001:8001", "2001:2001", "8002:8002", "2002:2002", "8887:8887"]
end
override.vm.box = nil
docker.build_dir = "."

platform = `uname -m`.strip

# Conditional arguments for ARM64 platform
if platform == "arm64" || platform == "aarch64"
docker.build_args = "--platform=linux/arm64"
docker.create_args = ["--platform=linux/arm64"]
end

docker.build_args = "--platform=linux/arm64"
docker.name = "ctn_aides_jeunes"
override.ssh.insert_key = true
docker.has_ssh = true
docker.privileged = true
docker.ports = ["8001:8001", "2001:2001", "8002:8002", "2002:2002", "8887:8887"]
end

# Faster startup
config.vm.synced_folder ".", "/vagrant", disabled: true
Expand Down

0 comments on commit 1444bb6

Please sign in to comment.