mirror of
https://github.com/phil-opp/blog_os.git
synced 2025-12-16 22:37:49 +00:00
Docker: Add a Dockerfile and Makefile targets (#373)
* add docker build option * add docker section in makefile * add bash_aliases to get different prompt
This commit is contained in:
committed by
Philipp Oppermann
parent
cf2c5550aa
commit
2e8da22b32
18
docker/README.md
Normal file
18
docker/README.md
Normal file
@@ -0,0 +1,18 @@
|
||||
# Building Blog OS using Docker
|
||||
Inspired by [redox].
|
||||
You just need `git`, `make`, and `docker`.
|
||||
It is beter to use a non-privileged user to run the `docker` command, which is usually achieved by adding the user to the `docker` group.
|
||||
|
||||
## Run the container to build Blog OS
|
||||
You can build the docker image using `make docker_build` and run it using `make docker_run`.
|
||||
|
||||
## Run the container interactively
|
||||
You can use the `make` target `docker_interactive` to get a shell in the container.
|
||||
|
||||
## Clear the toolchain caches (Cargo & Rustup)
|
||||
To clean the docker volumes used by the toolchain, you just need to run `make docker_clean`.
|
||||
|
||||
[redox]: https://github.com/redox-os/redox
|
||||
|
||||
## License
|
||||
The source code is dual-licensed under MIT or the Apache License (Version 2.0). This excludes the `blog` directory.
|
||||
Reference in New Issue
Block a user