Skip to content

Commit

Permalink
[Enhancement] Add devcontainer
Browse files Browse the repository at this point in the history
  • Loading branch information
void-mian committed Oct 17, 2024
1 parent 6b105ce commit a940e47
Show file tree
Hide file tree
Showing 5 changed files with 45 additions and 1 deletion.
3 changes: 3 additions & 0 deletions be/.devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
FROM starrocks/dev-env-ubuntu:latest

RUN apt update && apt install -y binutils-dev build-essential ninja-build clang gdb lldb
15 changes: 15 additions & 0 deletions be/.devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"name": "StarRocks BE",
"build": {
"dockerfile": "Dockerfile"
},
"features": {
"ghcr.io/devcontainers/features/common-utils:2": {}
},
"workspaceMount": "source=${localWorkspaceFolder}/..,target=/workspace,type=bind",
"workspaceFolder": "/workspace/be",
"runArgs": [
"--network=host"
],
"remoteUser": "root"
}
3 changes: 2 additions & 1 deletion be/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@
!src/
!test/
!CMakeLists.txt
!extension/
!extension/
!.devcontainer/
3 changes: 3 additions & 0 deletions fe/.devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
FROM mcr.microsoft.com/devcontainers/base:ubuntu-22.04

RUN apt update && apt install -y thrift-compiler
22 changes: 22 additions & 0 deletions fe/.devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"name": "StarRocks FE",
"build": {
"dockerfile": "Dockerfile"
},
"features": {
"ghcr.io/devcontainers/features/java:1": {
"version": "11",
"installMaven": "true"
},
"ghcr.io/devcontainers/features/python:1": {
"version": "3.12",
"installTools": "false"
}
},
"workspaceMount": "source=${localWorkspaceFolder}/..,target=/workspace,type=bind",
"workspaceFolder": "/workspace/fe",
"runArgs": [
"--network=host"
],
"remoteUser": "root"
}

0 comments on commit a940e47

Please sign in to comment.