mirror of
https://github.com/rancher/os.git
synced 2025-06-26 15:01:34 +00:00
Add building and running openstack image to Makefile
Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>
This commit is contained in:
parent
23edbd05e8
commit
a8ade0f873
10
Makefile
Normal file → Executable file
10
Makefile
Normal file → Executable file
@ -37,6 +37,16 @@ clean:
|
||||
itest:
|
||||
./.dapper integration-test 2>&1 | tee dist/itest.log
|
||||
|
||||
openstack:
|
||||
cp dist/artifacts/rancheros.iso scripts/images/openstack/
|
||||
cd scripts/images/openstack && ../../../.dapper
|
||||
|
||||
openstack-run:
|
||||
qemu-system-x86_64 -curses \
|
||||
-net nic -net user \
|
||||
-m 2048M \
|
||||
--hdc scripts/images/openstack/dist/rancheros-openstack.img
|
||||
|
||||
help:
|
||||
@./scripts/help
|
||||
|
||||
|
3
scripts/images/openstack/Dockerfile.dapper
Normal file → Executable file
3
scripts/images/openstack/Dockerfile.dapper
Normal file → Executable file
@ -6,7 +6,8 @@ RUN mkdir -p /source/assets
|
||||
# Change here to build a specific version
|
||||
ENV VERSION latest
|
||||
|
||||
RUN curl -fL https://releases.rancher.com/os/${VERSION}/rancheros.iso > /source/assets/rancheros.iso
|
||||
#RUN curl -fL https://releases.rancher.com/os/${VERSION}/rancheros.iso > /source/assets/rancheros.iso
|
||||
COPY rancheros.iso /source/assets/rancheros.iso
|
||||
CMD ["/source/scripts/build.sh"]
|
||||
|
||||
ENV DAPPER_RUN_ARGS --device /dev/kvm
|
||||
|
Loading…
Reference in New Issue
Block a user