mirror of
https://github.com/vyos/vyos-build.git
synced 2025-10-01 20:28:40 +02:00
Add build command for AWS
This commit is contained in:
parent
16cc9be3ba
commit
a0cdf15c5e
14
Makefile
14
Makefile
@ -100,6 +100,20 @@ GCE: clean prepare
|
||||
cd $(build_dir)
|
||||
@../scripts/build-GCE-image
|
||||
|
||||
.PHONY: AWS
|
||||
.ONESHELL:
|
||||
AWS: clean prepare
|
||||
@set -e
|
||||
@echo "It's not like I'm building this specially for you or anything!"
|
||||
mkdir -p build/config/includes.chroot/etc/cloud/cloud.cfg.d
|
||||
cp tools/cloud-init/AWS/90_dpkg.cfg build/config/includes.chroot/etc/cloud/cloud.cfg.d/
|
||||
cp tools/cloud-init/cloud-init.list.chroot build/config/package-lists/
|
||||
cp -f tools/cloud-init/AWS/config.boot.default build/config/includes.chroot/opt/vyatta/etc/
|
||||
cd $(build_dir)
|
||||
lb build 2>&1 | tee build.log
|
||||
cd ..
|
||||
@scripts/copy-image
|
||||
|
||||
.PHONY: clean
|
||||
.ONESHELL:
|
||||
clean:
|
||||
|
||||
2
tools/cloud-init/AWS/90_dpkg.cfg
Normal file
2
tools/cloud-init/AWS/90_dpkg.cfg
Normal file
@ -0,0 +1,2 @@
|
||||
# to update this file, run dpkg-reconfigure cloud-init
|
||||
datasource_list: [ Ec2 ]
|
||||
30
tools/cloud-init/AWS/config.boot.default
Normal file
30
tools/cloud-init/AWS/config.boot.default
Normal file
@ -0,0 +1,30 @@
|
||||
system {
|
||||
syslog {
|
||||
global {
|
||||
facility all {
|
||||
level info
|
||||
}
|
||||
facility protocols {
|
||||
level debug
|
||||
}
|
||||
}
|
||||
}
|
||||
ntp {
|
||||
server "0.pool.ntp.org"
|
||||
server "1.pool.ntp.org"
|
||||
server "2.pool.ntp.org"
|
||||
}
|
||||
console {
|
||||
device ttyS0 {
|
||||
speed 9600
|
||||
}
|
||||
}
|
||||
config-management {
|
||||
commit-revisions 100
|
||||
}
|
||||
}
|
||||
|
||||
interfaces {
|
||||
loopback lo {
|
||||
}
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user