Commit graph

30 commits

Author SHA1 Message Date
Ribbon 49102f6332 Add explanation comments on the build system files 2024-07-09 12:58:07 +00:00
mattmadeofpasta b86622d73b
Add just to the build dependencies 2023-11-23 21:40:00 +00:00
Jeremy Soller 3c63648d19
Remove all references to xargo 2023-02-21 11:53:37 -07:00
Thiago Duarte Areias d8dae1dfd7 Removes the need to sudo since the script is already running as sudo 2019-06-20 07:47:09 +00:00
Thiago Duarte Areias 4c1086869e Fixes /dev/fuse permissions inside docker when host is running MacOS 2018-12-17 23:42:15 +00:00
Colleen 74dee0be2f Docker privileged flag to allow filesystem mount 2018-12-02 04:11:25 +00:00
Andrei Dziahel 1e314643d8 Fix error building netsurf in Docker 2018-10-28 11:59:35 +00:00
Caleb Boylan 40aa757e64 Change reference to github in docker README 2018-08-26 09:27:35 -07:00
Jeremy Soller bd470cc116 Add script for entering docker environment 2018-06-12 19:28:08 -06:00
fengalin 4a45dd4528 Docker: add autopoint
Needed by xz
2018-01-09 14:27:42 +01:00
Martin Lindhe 973402acd2 fix some typos 2017-11-05 06:57:41 +01:00
fengalin a24853cb3e Docker: add cmake as a dependency
uutils depends on onig which depends on onig-sys which uses cmake to compile.
2017-10-24 20:53:06 +02:00
Andre Richter 81559af69f
docker: Add troubleshooting section 2017-09-29 13:49:50 +02:00
Andre Richter f649cee4ed
docker: Adapt README for dockerhub usage
- Add `redoxos/` namespace
- Move container building to end of README as fallback.
2017-09-03 18:24:48 +02:00
Andre Richter 114de48b20
docker: Add interactive sessions
Provide a nice interface when using the container interactively.
2017-09-02 22:17:17 +02:00
Andre Richter 6e3c76ea23
docker: Switch to official Rust image as base and rework
1. Use the official Rust nightly docker image as base
2. Remove hardcoded user
3. Use named volumes to cache .rustup and .cargo toolchain folders
    - Changing file permissions to user (chown) only needed on first launch
4. Cleanup apt folders after installing
5. Make bash the default fallback command
6. README.md: Unify workflows for Linux and MacOS
2017-09-02 21:51:46 +02:00
Andre Richter a93a63a6b7
Docker: Cache cargo downloads with named volume
Currently, cargo downloads dependencies on every single run.
Get rid of this overhead by caching /home/user/.cargo in a
named volume.
2017-08-29 18:08:52 +02:00
fengalin 20a38979c4 Docker: allow building the container on MacOS and Linux (#1037)
On MacOS, while building the container, `useradd` returns with code 4 (UID already in use), even with option -o. On this platform, the access rights for a volume attached to the container are translated to the container's user and group. So, there is no need to handle UID and GID compliance like we do on Linux. See this for reference: https://docs.docker.com/docker-for-mac/osxfs/

This modification allows not specifying the UID and GID while building the container, keeping the defaults for `useradd`.
2017-08-29 11:12:59 +02:00
Bob Sun f6c3b992e7 Update docker script for SELinux, seccomp and AppArmor enabled systems 2017-08-23 13:09:24 -07:00
Bob Sun b70934506a Fix a typo in Docker script README.md. 2017-08-22 11:03:47 -07:00
Bob Sun 69134b167c Update the Docker script to disable security options
Disable seccomp and apparmor to compile Redox with Docker image.
2017-08-22 10:49:16 -07:00
fengalin 5f8fa86cce Docker: align APT key retrieval with Cookbook README
Use the same command as the Cookbook README for Redox OS APT key retrieval.
Keep adding the Redox OS repository in a dedicated file. This allows updating it specifically without updating the other repositories one more time.
2017-08-16 15:29:32 +02:00
fengalin c323f81b8c Update docker container build script and README
- Use https for redox apt repository
- Import the repository's key
- Update [toolchain packages' names](https://github.com/redox-os/cookbook/pull/59)
- Install `wget` which is needed by [coobook/recipes/xz](https://github.com/redox-os/cookbook/blob/master/recipes/xz/recipe.sh)
- Update README file to reflect the [discussion about when the submodules are needed](https://github.com/redox-os/redox/pull/1005#discussion_r129432929)
- Update README file to suggest using `make fetch all` in place of `make update all` since `Cargo.lock` files come with the sources now. See this [comment](https://github.com/redox-os/redox/issues/1021#issuecomment-320946322)

Note: current source tree generation requires runing the docker container with `bash -c RUSTFLAGS=\"-A unused_mut\" make fetch all` in place of `make fetch all`
2017-08-12 15:29:27 +02:00
fengalin 95915513ee Build docker container with ready to use user env
Prepare user environment at build time and update user and group id at runtime if necessary.
Update submodule sync step to avoid a dependency on cargo
Run `make update all` instead of just `make all`. The target `update` didn't update the container environment since it was executed on the host.
2017-07-26 00:18:27 +02:00
fengalin ff30f86664 Add a mention for selinux systems in Docker README
Selinux blocks the following:
- gosu execution labeling (no selinux policy).
- permission is denied to the container's user on the tree source binding
under /src. Using a different location doesn't solve the issue.

The workaround consists in disabling selinux labeling when running the container.
2017-07-24 00:29:33 +02:00
Agoston Szepessy dbaa2f370e Add dependencies to Dockerfile to build Redox 2017-07-22 19:56:20 -04:00
Jeremy Soller cbd126aa5c Update README.md 2017-06-25 20:21:19 -06:00
Jeremy Soller 1efa0c9c37 Update README.md 2017-06-25 20:20:54 -06:00
Egor Karavaev 84fdf1fd8f Add README.md on how to build Redox using docker images. 2017-06-24 16:40:55 +03:00
Egor Karavaev 93c8b92b75 Add Dockerfile for build system. 2017-06-21 10:32:40 +03:00