Skip to content

Commit 6d4443f

Browse files
committed
Update Dockerfile and devcontainer.json for Maven configuration and cache path
Signed-off-by: Vladislav Polyakov <[email protected]>
1 parent 6ab4b33 commit 6d4443f

File tree

3 files changed

+10
-11
lines changed

3 files changed

+10
-11
lines changed

.devcontainer/Dockerfile

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
FROM mcr.microsoft.com/devcontainers/java:1-21-bullseye
22

3+
ENV MAVEN_CONFIG=/var/maven/.m2
4+
35
# [Optional] Uncomment if you want to install more tools
46
RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
5-
&& apt-get -y install --no-install-recommends maven
6-
7-
# [Optional] Uncomment if you want to install yc cli
8-
RUN curl -fsSL https://storage.yandexcloud.net/yandexcloud-yc/install.sh | bash
9-
10-
# [Optional] Uncomment if you want to install ydb cli
11-
RUN curl -fsSL https://raw.githubusercontent.com/ydb-platform/ydb/refs/heads/main/ydb/apps/ydb/install/install.sh | bash
7+
&& apt-get -y install --no-install-recommends maven \
8+
&& mkdir -p /var/maven/.m2 \
9+
&& chown -R vscode:vscode /var/maven/.m2

.devcontainer/devcontainer.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,8 @@
2828
]
2929
}
3030
},
31-
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
32-
"remoteUser": "root",
3331
// Maven cache volume configuration.
3432
"mounts": [
35-
"source=maven-cache,target=/root/.m2,type=volume",
33+
"source=maven-cache,target=/var/maven/.m2,type=volume"
3634
]
3735
}

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,7 @@
99
**/.idea/
1010
**/*.iml
1111
**/*.iws
12-
**/*.ipr
12+
**/*.ipr
13+
14+
# VS Code
15+
.vscode

0 commit comments

Comments
 (0)