diff --git a/.devcontainer.json b/.devcontainer.json index 63cd895..e195b64 100644 --- a/.devcontainer.json +++ b/.devcontainer.json @@ -2,5 +2,5 @@ "name": "dsm", "service": "dsm", "forwardPorts": [5000], - "dockerComposeFile": "compose.yml" + "dockerComposeFile": ".github/codespaces.yml" } diff --git a/.github/codespaces.yml b/.github/codespaces.yml new file mode 100644 index 0000000..bf559b6 --- /dev/null +++ b/.github/codespaces.yml @@ -0,0 +1,19 @@ +services: + dsm: + container_name: dsm + image: vdsm/virtual-dsm + environment: + RAM_SIZE: "max" + DISK_SIZE: "max" + CPU_CORES: "max" + devices: + - /dev/kvm + - /dev/net/tun + cap_add: + - NET_ADMIN + ports: + - 5000:5000 + volumes: + - ./dsm:/storage + restart: on-failure + stop_grace_period: 2m