mirror of
https://github.com/jessfraz/dockerfiles.git
synced 2024-11-27 04:16:45 +01:00
add openbmc
Signed-off-by: Jess Frazelle <acidburn@jessfraz.com>
This commit is contained in:
parent
54c5cdb6c0
commit
4e1f52cf4d
36
openbmc/Dockerfile
Normal file
36
openbmc/Dockerfile
Normal file
|
@ -0,0 +1,36 @@
|
||||||
|
FROM debian:buster-slim
|
||||||
|
|
||||||
|
RUN apt-get update && apt-get install -y \
|
||||||
|
bash \
|
||||||
|
build-essential \
|
||||||
|
ca-certificates \
|
||||||
|
chrpath \
|
||||||
|
curl \
|
||||||
|
diffstat \
|
||||||
|
gawk \
|
||||||
|
git \
|
||||||
|
libpixman-1-0 \
|
||||||
|
libsdl1.2-dev \
|
||||||
|
texinfo \
|
||||||
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
|
# Download the latest qemu build from openBMC's fork
|
||||||
|
RUN curl -sSL -o /usr/bin/qemu-system-arm https://openpower.xyz/job/openbmc-qemu-build-merge-x86/lastSuccessfulBuild/artifact/qemu/arm-softmmu/qemu-system-arm \
|
||||||
|
&& chmod +x /usr/bin/qemu-system-arm
|
||||||
|
|
||||||
|
# Download the latest romulus image
|
||||||
|
RUN mkdir -p /usr/src/openbmc
|
||||||
|
RUN curl -sSL -o /usr/src/openbmc/obmc-phosphor-image-romulus.static.mtd https://openpower.xyz/job/openbmc-build/distro=ubuntu,label=builder,target=romulus/lastSuccessfulBuild/artifact/deploy/images/romulus/obmc-phosphor-image-romulus.static.mtd
|
||||||
|
|
||||||
|
#ENV OPENBMC_VERSION 2.7.0
|
||||||
|
|
||||||
|
#RUN git clone --depth 1 --branch "${OPENBMC_VERSION}" https://github.com/openbmc/openbmc /usr/src/openbmc
|
||||||
|
|
||||||
|
#WORKDIR /usr/src/openbmc
|
||||||
|
|
||||||
|
#ENV TEMPLATECONF=meta-ibm/meta-palmetto/conf
|
||||||
|
|
||||||
|
#RUN bash ./openbmc-env \
|
||||||
|
# && bitbake obmc-phosphor-image
|
||||||
|
|
||||||
|
ENTRYPOINT ["qemu-system-arm", "-m", "256", "-M", "romulus-bmc", "-nographic", "-drive", "file=/usr/src/openbmc/obmc-phosphor-image-romulus.static.mtd,format=raw,if=mtd", "-net", "nic", "-net", "user,hostfwd=:127.0.0.1:2222-:22,hostfwd=:127.0.0.1:2443-:443,hostname=qemu"]
|
Loading…
Reference in New Issue
Block a user