Skip to content

Commit

Permalink
switch to using public dev container
Browse files Browse the repository at this point in the history
  • Loading branch information
reubenmiller committed Nov 26, 2024
1 parent ee4a190 commit dff88d2
Showing 1 changed file with 1 addition and 18 deletions.
19 changes: 1 addition & 18 deletions .devcontainer/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,10 @@
version: '3'
services:
tedge:
build:
context: .
dockerfile: Dockerfile
args:
VARIANT: bookworm
image: ${DEVCONTAINER_IMAGE:-ghcr.io/thin-edge/devcontainer:latest-bookworm}
environment:
- DOCKER_HOST=unix:///opt/run/docker.sock

# Option 1: Use privileged container (for dev purposes only!)
volumes:
# Mount docker socket to something other than /var/run as a
# a privileged container or with CAP_SYS_ADMIN overwrites this
Expand All @@ -21,18 +16,6 @@ services:
- ..:/workspace:cached
privileged: true

# Option 2: Only mount cgroup as readonly (but requires it to already exist)
# privileged: true
# volumes:
# # Mount docker socker to something other that /var/run as a
# # a privileged container or with CAP_SYS_ADMIN overwrites this
# - /var/run/docker.sock:/opt/run/docker.sock
# - tedge-bashhistory:/commandhistory
# - device-certs:/etc/tedge/device-certs
# - /sys/fs/cgroup:/sys/fs/cgroup:ro
# cap_add:
# - CAP_SYS_ADMIN

volumes:
tedge-bashhistory:
device-certs:

0 comments on commit dff88d2

Please sign in to comment.