1
0
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:
Sven Dowideit 2017-03-13 18:44:20 +10:00
parent 23edbd05e8
commit a8ade0f873
2 changed files with 12 additions and 1 deletions

10
Makefile Normal file → Executable file
View 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
View 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