Update devcontainer config to work on Fedora

Fedora uses SELinux. Also I needed to explicitly expose the ports.
This commit is contained in:
Arjan Molenaar 2022-08-16 17:13:37 +02:00
parent f11e8bf766
commit 944d7668f6
No known key found for this signature in database
GPG Key ID: BF977B918996CB13

View File

@ -7,6 +7,8 @@
"context": "..", "context": "..",
"args": { "VARIANT": "jammy" } "args": { "VARIANT": "jammy" }
}, },
"workspaceMount": "",
"runArgs": ["--volume=${localWorkspaceFolder}:/workspaces/${localWorkspaceFolderBasename}:Z"],
// Configure tool-specific properties. // Configure tool-specific properties.
"customizations": { "customizations": {
@ -38,8 +40,7 @@
} }
}, },
// Use 'forwardPorts' to make a list of ports inside the container available locally. "forwardPorts": [5901, 6080],
// "forwardPorts": [],
// Use 'postCreateCommand' to run commands after the container is created. // Use 'postCreateCommand' to run commands after the container is created.
"postCreateCommand": "pipx install poetry && poetry config virtualenvs.in-project true && poetry install", "postCreateCommand": "pipx install poetry && poetry config virtualenvs.in-project true && poetry install",