1
0
mirror of https://github.com/rancher/os.git synced 2025-07-01 09:11:48 +00:00

Merge pull request #1685 from SvenDowideit/add-build-openstack-to-openstack

Add building and running openstack image to Makefile
This commit is contained in:
Sven Dowideit 2017-03-13 20:49:14 +10:00 committed by GitHub
commit d1d0c30924
2 changed files with 12 additions and 1 deletions

10
Makefile Normal file → Executable file
View File

@ -37,6 +37,16 @@ clean:
itest: itest:
./.dapper integration-test 2>&1 | tee dist/itest.log ./.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: help:
@./scripts/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 # Change here to build a specific version
ENV VERSION latest 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"] CMD ["/source/scripts/build.sh"]
ENV DAPPER_RUN_ARGS --device /dev/kvm ENV DAPPER_RUN_ARGS --device /dev/kvm