blob: 9630c99dbeac7de9af70a34f05d16b34b6fcb4d1 [file] [log] [blame]
FROM learning-gem5/base
MAINTAINER Jason Lowe-Power <jason@lowepower.com>
WORKDIR /usr/local/src/gem5
RUN mkdir -p /usr/local/src/gem5/configs/learning/part2/ && \
mkdir -p /usr/local/src/gem5/src/learning/
# Copy script
COPY _static/scripts/part2/helloobject/run_hello.py \
/usr/local/src/gem5/configs/learning/part2/
# Copy code
COPY _static/scripts/part2/helloobject/HelloObject.py \
_static/scripts/part2/helloobject/SConscript \
_static/scripts/part2/helloobject/hello_object.cc \
_static/scripts/part2/helloobject/hello_object.hh \
/usr/local/src/gem5/src/learning_gem5/
RUN scons build/X86/gem5.opt -j5
# Run with the script
CMD ["build/X86/gem5.opt", \
"configs/learning/part2/run_hello.py"]