Explore Home Help
Sign In
starwels
/
gitian-builder
mirror of https://github.com/devrandom/gitian-builder
1
0
Fork
You've already forked gitian-builder
0
Code Issues Releases Wiki Activity
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
126 Commits
11 Branches
2 Tags
825 KiB
Tree: 5785dfc3ae
fix-fetch
fix-fetch1
fix-fetch2
git-archive
lxc
lxcbr
master
no-tobuild
redo121
updater
vbox
0.1
0.2
Branches Tags
${ item.name }
Create tag ${ searchTerm }
Create branch ${ searchTerm }
from '5785dfc3ae'
${ noResults }
gitian-builder/libexec/config-lxc

10 lines
216 B
Raw Normal View History Unescape Escape

First pass lxc support
10 years ago
#!/bin/bash
wd=`pwd`
Un-hardcode host/guest IP I was running into trouble using gitian LXC INSIDE a VirtualBox VM, because the 10.0.2.x IP range overlaps with the range that VirtualBox uses for its internal NAT network. This commit makes it possible to override the host and guest IP that is used during LXC image creation and the build, using environment variables: - `GITIAN_HOST_IP` (default=10.0.2.2, host IP from the viewpoint of the VM, can be used for both LXC and KVM) - `LXC_GUEST_IP` (default=10.0.2.5, guest IP from the viewpoint of the host, effective for LXC only) When these are not defined the behavior remains the same as before.
8 years ago
if [ -z "$LXC_GUEST_IP" ]; then
LXC_GUEST_IP=10.0.2.5
fi
sed "s;ROOTFS;$wd/target-$LXC_SUITE-$LXC_ARCH;;s;ARCH;$LXC_ARCH;g;;s;GUESTIP;$LXC_GUEST_IP;g" < etc/lxc.config.in > var/lxc.config
Powered by Gitea Version: 1.16.4 Page: 5386ms Template: 1108ms
English
bahasa Indonesia Deutsch English español français italiano latviešu magyar nyelv Nederlands polski Português de Portugal português do Brasil suomi svenska Türkçe čeština ελληνικά български русский српски Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API Website Go1.17.8