Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
623f5798
Unverified
Commit
623f5798
authored
Oct 13, 2021
by
Michal Rostecki
Committed by
GitHub
Oct 13, 2021
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #4192 from vadorovsky/vagrant-fixes
Various Vagrant improvements
parents
6b4d75d2
d6b6a3ee
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
27 additions
and
6 deletions
+27
-6
Vagrantfile
Vagrantfile
+6
-2
vagrant
scripts/provision/generic/ubuntu1804/vagrant
+19
-4
ubuntu2104
scripts/provision/generic/ubuntu2104
+2
-0
No files found.
Vagrantfile
View file @
623f5798
OS
=
(
ENV
[
'OS
'
]
||
"alpine312"
)
DISTRO
=
(
ENV
[
'DISTRO
'
]
||
"alpine312"
)
BOX_REPO
=
(
ENV
[
'BOX_REPO'
]
||
"generic"
)
HOME
=
ENV
[
'HOME'
]
PROJ_HOME
=
File
.
dirname
(
__FILE__
)
...
...
@@ -17,7 +17,7 @@ MOUNT_TYPE = ENV['MOUNT_TYPE'] || "virtualbox"
# --- May need to add terminal to System Preferences -> Security & Privacy -> Privacy -> Full Disk Access
def
provision
(
vm
,
node_num
)
node_os
=
(
ENV
[
"
OS_
#{
node_num
}
"
]
||
OS
)
node_os
=
(
ENV
[
"
DISTRO_
#{
node_num
}
"
]
||
DISTRO
)
vm
.
box
=
(
ENV
[
"BOX_
#{
node_num
}
"
]
||
ENV
[
"BOX"
]
||
"
#{
BOX_REPO
}
/
#{
node_os
}
"
)
vm
.
hostname
=
"
#{
PROJECT
}
-
#{
node_num
}
-
#{
vm
.
box
.
gsub
(
/^.*\//
,
""
)
}
"
vm
.
network
"private_network"
,
ip:
"
#{
NETWORK_PREFIX
}
.
#{
100
+
node_num
}
"
...
...
@@ -33,6 +33,10 @@ Vagrant.configure("2") do |config|
v
.
memory
=
NODE_MEMORY
v
.
customize
[
"modifyvm"
,
:id
,
"--audio"
,
"none"
]
end
config
.
vm
.
provider
"libvirt"
do
|
v
|
v
.
cpus
=
NODE_CPUS
v
.
memory
=
NODE_MEMORY
end
if
Vagrant
.
has_plugin?
(
"vagrant-timezone"
)
config
.
timezone
.
value
=
:host
end
...
...
scripts/provision/generic/ubuntu1804/vagrant
View file @
623f5798
...
...
@@ -9,17 +9,32 @@ export SELINUX=true
EOF
.
/etc/profile.d/build.sh
# ---
apt-get update
apt-get
install
-y
\
build-essential
\
pkg-config
\
ca-certificates
\
curl
\
docker.io
\
gcc
\
git
\
jq
\
libffi-dev
\
libseccomp-dev
\
libsqlite3-dev
\
libselinux1-dev
\
libuv1-dev
\
make
\
npm
\
pkg-config
\
python3
\
squashfs-tools
\
tar
\
wget
\
vim
\
zip
\
zlib1g-dev
\
zstd
# ---
sed
-E
's|apk( -U)?( --no-cache)?( --repository [^ ]*)? add|apt-get install -y|g'
-i
/tmp/docker-run
.
/tmp/docker-run
# ---
go get
-u
github.com/go-delve/delve/cmd/dlv
# ---
scripts/provision/generic/ubuntu2104
0 → 120000
View file @
623f5798
ubuntu1804
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment