-
Notifications
You must be signed in to change notification settings - Fork 84
/
Vagrantfile
38 lines (31 loc) · 1.04 KB
/
Vagrantfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.box = "ubuntu/focal64"
config.vm.hostname = "hexlet-correction"
config.vm.define "hexlet-correction"
config.vm.network "forwarded_port", guest: 8080, host: 8080
config.vm.provider "virtualbox" do |vb|
vb.name = "hexlet-correction"
vb.memory = "1024"
end
config.vm.provision "shell", inline: <<-SHELL
apt update
apt install -y make
curl -fsSL https://get.docker.com -o get-docker.sh
sh get-docker.sh
groupadd docker
usermod -aG docker vagrant
docker run hello-world
curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose
apt update
apt install -y software-properties-common
# Java
add-apt-repository ppa:openjdk-r/ppa
apt install -y openjdk-17-jdk
# Сборщик проектов
add-apt-repository ppa:cwchien/gradle
apt install -y gradle
SHELL
end