Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,6 @@ RUN SNIPPET="export PROMPT_COMMAND='history -a' && export HISTFILE=/commandhisto
&& chown -R $USERNAME /commandhistory \
&& echo "$SNIPPET" >> "/home/$USERNAME/.bashrc"

USER ubuntu

# Section for interactive compilation during docker run

WORKDIR /sources
Expand Down
12 changes: 9 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,18 +121,24 @@ docker build -t infinisim-build .devcontainer

Afterwards you can build the simulator with:
```sh
docker run --rm -it -v ${PWD}:/sources infinisim-build
docker run --rm -it -v ${PWD}:/sources --user $(id -u):$(id -g) infinisim-build
```

Note: when using rootless `podman` instead of `docker` the `--user` part can be left out.
The command to build the simulator using `podman` is:
```sh
podman run --rm -it -v ${PWD}:/sources infinisim-build
```

By default this builds the simulator using the InfiniTime files from the submodule in your `${PWD}`.
If you want to use a different repository, you got to mount it and pass the path to the `INFINITIME_DIR` variable:
```sh
docker run --rm -it -v ${PWD}:/sources -v ${PWD}/../InfiniTime:/infinitime -e INFINITIME_DIR=/infinitime infinisim-build
docker run --rm -it -v ${PWD}:/sources -v ${PWD}/../InfiniTime:/infinitime -e INFINITIME_DIR=/infinitime --user $(id -u):$(id -g) infinisim-build
```

Other CMake generation and build arguments can be passed to the `GENERATE_ARGS` and `BUILD_ARGS` variables:
```sh
docker run --rm -it -v ${PWD}:/sources -e GENERATE_ARGS=-DENABLE_USERAPPS="Apps::Timer,Apps::Alarm" -e BUILD_ARGS=-j16 infinisim-build
docker run --rm -it -v ${PWD}:/sources -e GENERATE_ARGS=-DENABLE_USERAPPS="Apps::Timer,Apps::Alarm" -e BUILD_ARGS=-j16 --user $(id -u):$(id -g) infinisim-build
```


Expand Down
Loading