forked from NationTech/harmony
Try out bifrost and see if we want to use it as bare metal provisionner
This commit is contained in:
commit
7d69ac447a
4
.gitattributes
vendored
Normal file
4
.gitattributes
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
bootx64.efi filter=lfs diff=lfs merge=lfs -text
|
||||
grubx64.efi filter=lfs diff=lfs merge=lfs -text
|
||||
initrd filter=lfs diff=lfs merge=lfs -text
|
||||
linux filter=lfs diff=lfs merge=lfs -text
|
23
bifrost-docker/Dockerfile
Normal file
23
bifrost-docker/Dockerfile
Normal file
@ -0,0 +1,23 @@
|
||||
FROM ubuntu:22.04
|
||||
|
||||
ENV DEBIAN_FRONTEND=noninteractive
|
||||
|
||||
# ansible does not work without it
|
||||
ENV LC_ALL=C.UTF-8
|
||||
|
||||
RUN apt-get update && apt-get install -y \
|
||||
git \
|
||||
python3 \
|
||||
sudo
|
||||
|
||||
RUN git clone https://opendev.org/openstack/bifrost.git /opt/bifrost
|
||||
|
||||
WORKDIR /opt/bifrost
|
||||
|
||||
RUN ./bifrost-cli install\
|
||||
--network-interface wlp0s20f3\
|
||||
--dhcp-pool 192.168.12.180-192.168.12.200
|
||||
|
||||
RUN pip3 install -r requirements.txt
|
||||
|
||||
CMD ["/bin/bash"]
|
9
bifrost-docker/docker-compose.yml
Normal file
9
bifrost-docker/docker-compose.yml
Normal file
@ -0,0 +1,9 @@
|
||||
version: '3'
|
||||
services:
|
||||
bifrost:
|
||||
build: .
|
||||
volumes:
|
||||
- ./bifrost_data:/opt/bifrost/data
|
||||
network_mode: "host"
|
||||
privileged: true
|
||||
tty: true
|
Loading…
Reference in New Issue
Block a user