-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add docker support #369
Comments
Hi phil, thanks for opening. Short summary from previous discussions: As a first shot, I would envision providing a docker image that the user can use interactively like shown in The advantage of this approach is that it is a transparent add-on to the native file structure of the project. Once a console into the docker container has been spawned, there is no difference to native setup in which the rust toolchain was installed locally. I will be on vacation soon, so I guess I cannot start working on this before January. |
I added Docker support to my kernel recently, using @andre-richter's kernel for reference. I found that adding these Makefile rules simplified the process most for me. When you publish the Docker image, the steps to have a functional development enviroment are simply: wget -qO- https://get.docker.com/ | sh
# Hosts with systemctl: systemctl start docker
make docker_run
make run # Inside of container Note that docker needs root privileges to run out of the box. It's possible to run with non-root, but it needs additional steps |
Hey! I did a PR #373 adding Docker support :) Cheers :) |
@Sh4d1 Nice work! My two cents regarding the Makefile rules, the docker image default should be called |
You are right :) changed it to blog_os! |
Awesome! Some remarks from inspecting the code:
BR, |
Hey! Okay, so I'll
Sounds good? Patrik |
Okay, so now there are five rules concerning Docker in the Makefile
Do you think it belongs in the Makefile? Or somewhere else? Cheers, Patrik |
Looks good to me. Provided two nitpick comments in the PR itself. When using an interactive shell, I found it useful to have an indication via $PS1 that I am running in a Docker container. Otherwise you can easily get confused if you have several terminals open. For redox, I pulled in a Kindly have a look if you think it is useful here too. |
Yep, I did not think about that! Pushed as well, but still the issue with the Makefile targets |
Is this obsolete now? |
Continuing the discussion from #368 and #222. Relevant comments: [1] [2] [3] [4]
Required steps for docker support:
The text was updated successfully, but these errors were encountered: