Skip to content

Commit

Permalink
Refactor Dev Container setup & Dockerfile
Browse files Browse the repository at this point in the history
- Symlink `/.devcontainer/devcontainer.json` => `/.devcontainer.json`.
- Symlink `/Dockerfile` => `/.devcontainer/Dockerfile`.
- Add `ps` command to `Dockerfile` for JetBrains to function.
- Sort packages in `Dockerfile`

Signed-off-by: Dom Rodriguez <[email protected]>
  • Loading branch information
shymega committed May 12, 2024
1 parent 0751b1c commit 9053594
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 5 deletions.
1 change: 1 addition & 0 deletions .devcontainer.json
1 change: 1 addition & 0 deletions .devcontainer/Dockerfile
6 changes: 3 additions & 3 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "Open PineBuds Pro - VS Code Development Environment",
"image": "ghcr.io/pine64/openpinebuds:latest-sdk",
"build": {
"dockerfile": "../Dockerfile",
"context": ".."
"build": "Dockerfile"
},
"extensions": [
"ms-vscode.cmake-tools",
Expand All @@ -13,4 +13,4 @@
],
"userEnvProbe": "loginInteractiveShell",
"remoteUser": "root"
}
}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
!.mailmap
!.github
!.devcontainer
!.devcontainer.json

# Backup files
*~
Expand Down
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,12 @@ RUN apt-get update \
bash \
bc \
bzip2 \
clang-format \
curl \
ffmpeg \
clang-format \
git \
make \
procps \
tar \
xxd \
&& git config --global --add safe.directory /src \
Expand All @@ -50,4 +51,4 @@ ENV PATH="${PATH}:/src/gcc-arm-none-eabi-9-2019-q4-major/bin"
COPY --from=rust_build /usr/src/bestool/bestool/target/release/bestool /usr/local/bin/bestool
COPY . /usr/src

ENTRYPOINT ["/bin/bash"]
ENTRYPOINT ["/bin/bash", "-l", "-c"]

0 comments on commit 9053594

Please sign in to comment.