Last active
May 26, 2020 14:29
-
-
Save kaityo256/fa963c940ea8f14ddc91df2de1c8979f to your computer and use it in GitHub Desktop.
Dockerfile for Riken Simulator
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM ubuntu:18.04 | |
| MAINTAINER kaityo256 | |
| ENV USER user | |
| ENV HOME /home/${USER} | |
| ENV SHELL /bin/bash | |
| RUN useradd -m ${USER} | |
| RUN gpasswd -a ${USER} sudo | |
| RUN echo 'user:userpass' | chpasswd | |
| RUN apt-get update && apt-get install -y \ | |
| g++ \ | |
| g++-8-aarch64-linux-gnu \ | |
| git \ | |
| m4 \ | |
| python-dev \ | |
| scons \ | |
| sudo \ | |
| vim \ | |
| zlib1g-dev | |
| USER ${USER} | |
| RUN cd ${HOME} \ | |
| && mkdir build \ | |
| && cd build \ | |
| && git clone --depth 1 https://github.com/RIKEN-RCCS/riken_simulator.git | |
| RUN cd ${HOME} \ | |
| && cd build/riken_simulator \ | |
| && sed -i "369,372s:^:#:" SConstruct \ | |
| && scons build/ARM/gem5.opt -j 20 |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You may change the number of processes used for the build.
scons build/ARM/gem5.opt -j 20 ^^Build & Run.
docker build --t kaityo256/rikensimulator . docker run -it kaityo256/rikensimulator /bin/bashThen you can use Riken Simulator as follows.
You will obtain the following outputs.