Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"name": "glazed developer container",
"build":{
"dockerfile": "../Dockerfile",
"target": "build"
},
"customizations": {
"vscode": {
"extensions": [
"ms-kubernetes-tools.vscode-kubernetes-tools",
"rust-lang.rust-analyzer",
"tamasfe.even-better-toml"
]
}
},
"features": {
"ghcr.io/devcontainers/features/common-utils:2.5.9": {
"username": "none",
"upgradePackages": false
}
},
"runArgs": [
// Allow the container to access the host X11 display and EPICS CA

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does glazed need x11 or epics?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is for when you run cargo serve you can access it outside

"--net=host",
// Make sure SELinux does not disable with access to host filesystems like tmp
"--security-opt=label=disable"
],
"workspaceMount": "source=${localWorkspaceFolder}/..,target=/workspaces,type=bind",
"postStartCommand": "rustup component add --toolchain nightly-x86_64-unknown-linux-gnu rustfmt && rustup component add clippy"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is the full triple needed or is --toolchain nightly enough?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you would still need clippy

}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
/target
.devcontainer/devcontainer-lock.json
Loading