-
Notifications
You must be signed in to change notification settings - Fork 77
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert dev Dockerfile to use official devcontainer image (#2335)
* Update Dockerfile to use official debian based image for devcontainer * Use debian as base * Update comment
- Loading branch information
Showing
2 changed files
with
46 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,7 +18,8 @@ | |
ARG MAINTAINER="vdaas.org vald team <[email protected]>" | ||
|
||
# skipcq: DOK-DL3026 | ||
FROM --platform=${BUILDPLATFORM} ubuntu:devel AS builder | ||
# we should stick to official devcontainers as a base image because it is well tested to be used with the vscode devcontainer extension. | ||
FROM --platform=${BUILDPLATFORM} mcr.microsoft.com/vscode/devcontainers/base:debian | ||
LABEL maintainer="${MAINTAINER}" | ||
|
||
ARG GO_VERSION | ||
|
@@ -71,7 +72,6 @@ COPY rust rust | |
COPY hack/go.mod.default hack/go.mod.default | ||
COPY example/client/go.mod.default example/client/go.mod.default | ||
|
||
# basic deps | ||
RUN --mount=type=cache,target="${GOPATH}/pkg",id="go-build-${TARGETARCH}" \ | ||
--mount=type=cache,target="${HOME}/.cache/go-build",id="go-build-${TARGETARCH}" \ | ||
make GOARCH=${TARGETARCH} GOOS=${TARGETOS} deps GO_CLEAN_DEPS=false \ | ||
|
@@ -89,4 +89,11 @@ RUN --mount=type=cache,target="${GOPATH}/pkg",id="go-build-${TARGETARCH}" \ | |
&& make k9s/install \ | ||
&& make minikube/install \ | ||
&& make stern/install \ | ||
&& make telepresence/install | ||
&& make telepresence/install \ | ||
&& echo "installing golang vscode extension dependencies" \ | ||
&& make gopls/install \ | ||
&& make gotests/install \ | ||
&& make gomodifytags/install \ | ||
&& make impl/install \ | ||
&& make delve/install \ | ||
&& make staticcheck/install |