Skip to content

Commit

Permalink
update(dev_container): run commands installing bat when dev container…
Browse files Browse the repository at this point in the history
… launches (#388)
  • Loading branch information
kyu08 authored Dec 12, 2024
1 parent d92c9ad commit abda553
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{
"name": "Rust",
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
"image": "mcr.microsoft.com/devcontainers/rust:1-1-bullseye"
"image": "mcr.microsoft.com/devcontainers/rust:1-1-bullseye",

// Use 'mounts' to make the cargo cache persistent in a Docker Volume.
// "mounts": [
Expand All @@ -21,7 +21,8 @@
// "forwardPorts": [],

// Use 'postCreateCommand' to run commands after the container is created.
// "postCreateCommand": "rustc --version",
// Workaround for namespace. See: https://github.com/sharkdp/bat?tab=readme-ov-file#on-ubuntu-using-apt
"postCreateCommand": "sudo apt update && sudo apt install -y bat && mkdir -p ~/.local/bin && ln -s /usr/bin/batcat ~/.local/bin/bat"

// Configure tool-specific properties.
// "customizations": {},
Expand Down

0 comments on commit abda553

Please sign in to comment.