Dockerized development environment
This commit introduces a fully dockerized dev env you can start on any machine that has docker without installing any direct OAI dependencies on host. This allows to migrate development environments between machines easily. Several complementary scripts were added to enable smooth transition between your docker environment and host environment. Your user and sudo should work inside the environment.
This commit is contained in:
committed by
Robert Schmidt
parent
e0549de9ea
commit
8ca0a80d17
@@ -0,0 +1,21 @@
|
||||
services:
|
||||
openair-dev-env:
|
||||
container_name: "openair-dev-${USER}"
|
||||
image: openair-dev:${USER}
|
||||
command: "sleep infinity"
|
||||
privileged: false
|
||||
cap_add:
|
||||
- NET_ADMIN
|
||||
- SYS_ADMIN
|
||||
- NET_RAW
|
||||
- SYS_NICE
|
||||
# CAPS for sudo to work
|
||||
- CAP_SETUID
|
||||
- CAP_SETGID
|
||||
- CAP_SETFCAP
|
||||
- CAP_AUDIT_WRITE
|
||||
- CAP_MKNOD
|
||||
volumes:
|
||||
- /home/${USER}:/home/${USER}
|
||||
working_dir: /home/${USER}
|
||||
hostname: oai-dev-env
|
||||
Reference in New Issue
Block a user