-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'argoproj:master' into fix-executor-permission
- Loading branch information
Showing
64 changed files
with
1,616 additions
and
531 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,10 @@ | ||
# See here for image contents: https://github.com/microsoft/vscode-dev-containers/tree/v0.234.0/containers/debian/.devcontainer/base.Dockerfile | ||
|
||
ARG VARIANT="bullseye" | ||
FROM --platform=linux/amd64 mcr.microsoft.com/vscode/devcontainers/base:0-${VARIANT} | ||
|
||
ARG NEW_USERNAME="" | ||
ARG HOME="" | ||
ARG OLD_USERNAME="vscode" | ||
ARG VSCODE_SCRIPT_VERSION="" | ||
FROM mcr.microsoft.com/vscode/devcontainers/universal | ||
|
||
ARG PROTOC_ZIP="protoc-3.14.0-linux-x86_64.zip" | ||
RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \ | ||
&& apt-get install -y apt-transport-https ca-certificates git sudo \ | ||
# use new user instead of vscode user | ||
&& usermod -l $NEW_USERNAME -d /home/$NEW_USERNAME -m $OLD_USERNAME \ | ||
&& groupmod -n $NEW_USERNAME $OLD_USERNAME \ | ||
&& echo $NEW_USERNAME ALL=\(root\) NOPASSWD:ALL > /etc/sudoers.d/$NEW_USERNAME \ | ||
&& chmod 0440 /etc/sudoers.d/$NEW_USERNAME \ | ||
# kubectl | ||
&& curl -fsSLo /usr/share/keyrings/kubernetes-archive-keyring.gpg https://packages.cloud.google.com/apt/doc/apt-key.gpg \ | ||
&& echo "deb [signed-by=/usr/share/keyrings/kubernetes-archive-keyring.gpg] https://apt.kubernetes.io/ kubernetes-xenial main" | sudo tee /etc/apt/sources.list.d/kubernetes.list \ | ||
&& apt-get update \ | ||
&& apt-get install -y kubectl \ | ||
# protobuf | ||
&& curl -OL https://github.com/protocolbuffers/protobuf/releases/download/v3.14.0/${PROTOC_ZIP} \ | ||
|
||
RUN curl -OL https://github.com/protocolbuffers/protobuf/releases/download/v3.14.0/${PROTOC_ZIP} \ | ||
&& unzip -o ${PROTOC_ZIP} -d /usr/local bin/protoc \ | ||
&& unzip -o ${PROTOC_ZIP} -d /usr/local 'include/*' \ | ||
&& rm -f ${PROTOC_ZIP} \ | ||
&& chmod 755 /usr/local/bin/protoc \ | ||
&& chmod -R 755 /usr/local/include/ \ | ||
# k3d | ||
&& wget -q -O - https://raw.githubusercontent.com/k3d-io/k3d/main/install.sh | bash \ | ||
# go | ||
&& bash -ec "$(curl -fsSL "https://raw.githubusercontent.com/microsoft/vscode-dev-containers/$VSCODE_SCRIPT_VERSION/script-library/go-debian.sh")" -- "1.18" "/usr/local/go" "$HOME/go" "automatic" "true" "false" \ | ||
# dind | ||
&& bash -ec "$(curl -fsSL "https://raw.githubusercontent.com/microsoft/vscode-dev-containers/$VSCODE_SCRIPT_VERSION/script-library/docker-in-docker-debian.sh")" -- "true" "automatic" "true" "20.10" "v1" \ | ||
# node | ||
&& bash -ec "$(curl -fsSL "https://raw.githubusercontent.com/microsoft/vscode-dev-containers/$VSCODE_SCRIPT_VERSION/script-library/node-debian.sh")" -- "/usr/local/share/nvm" "16" "automatic" "true" "true" \ | ||
# python | ||
&& bash -ec "$(curl -fsSL "https://raw.githubusercontent.com/microsoft/vscode-dev-containers/$VSCODE_SCRIPT_VERSION/script-library/python-debian.sh")" -- "3.9" \ | ||
&& apt-get clean -y && rm -rf /var/lib/apt/lists/* | ||
&& chmod -R 755 /usr/local/include/ |
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 |
---|---|---|
@@ -1,30 +1,7 @@ | ||
// For format details, see https://aka.ms/devcontainer.json. For config options, see the README at: | ||
// https://github.com/microsoft/vscode-dev-containers/tree/v0.234.0/containers/debian | ||
{ | ||
"name": "Debian", | ||
"build": { | ||
"dockerfile": "Dockerfile", | ||
"args": { | ||
"VARIANT": "bullseye", | ||
"NEW_USERNAME": "${localEnv:USER}", | ||
"HOME": "${localEnv:HOME}", | ||
"VSCODE_SCRIPT_VERSION": "v0.234.0" | ||
} | ||
}, | ||
|
||
"settings": {}, | ||
|
||
"extensions": [], | ||
|
||
"mounts": [ "source=/var/run/docker.sock,target=/var/run/docker.sock,type=bind" ], | ||
|
||
"runArgs": [ "--cap-add=SYS_PTRACE", "--security-opt", "seccomp=unconfined" ], | ||
|
||
"remoteUser": "${localEnv:USER}", | ||
"features": {}, | ||
|
||
"workspaceMount": "source=${localWorkspaceFolder},target=${localEnv:HOME}/go/src/github.com/argoproj/argo-workflows,type=bind", | ||
"workspaceFolder": "${localEnv:HOME}/go/src/github.com/argoproj/argo-workflows", | ||
|
||
"postStartCommand": "bash -i .devcontainer/startup.sh" | ||
} | ||
"build": { "dockerfile": "Dockerfile" }, | ||
"hostRequirements": {"cpus": 4}, | ||
"onCreateCommand": ".devcontainer/pre-build.sh", | ||
"workspaceMount": "source=${localWorkspaceFolder},target=${localEnv:HOME}/go/src/github.com/argoproj/argo-workflows,type=bind", | ||
"workspaceFolder": "${localEnv:HOME}/go/src/github.com/argoproj/argo-workflows" | ||
} |
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/usr/bin/env sh | ||
set -eux | ||
|
||
# install kubernetes | ||
wget -q -O - https://raw.githubusercontent.com/k3d-io/k3d/main/install.sh | bash | ||
k3d cluster get k3s-default || k3d cluster create --wait | ||
k3d kubeconfig merge --kubeconfig-merge-default | ||
|
||
# install kit | ||
curl -q https://raw.githubusercontent.com/kitproj/kit/main/install.sh | sh | ||
|
||
# do time consuming tasks, e.g. download deps and initial build | ||
kit build |
This file was deleted.
Oops, something went wrong.
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
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 |
---|---|---|
@@ -1,14 +1,25 @@ | ||
TODO: Say why you made your changes. | ||
TODO: Say what changes you made. | ||
TODO: Say how you tested your changes. | ||
TODO: Attach screenshots if you changed the UI. | ||
|
||
Fixes #TODO | ||
|
||
Please do not open a pull request until you have checked ALL of these: | ||
<!-- | ||
Do not open a PR until you have: | ||
* Run `make pre-commit -B` to fix codegen and lint problems (build will fail). | ||
* [Signed-off your commits](https://github.com/apps/dco/) (otherwise the DCO check will fail). | ||
* Used [a conventional commit message](https://www.conventionalcommits.org/en/v1.0.0/). | ||
When you open your PR | ||
* "Fixes #" is in both the PR title (for release notes) and this description (to automatically link and close the issue). | ||
* Create the PR as draft. | ||
* Once builds are green, mark your PR "Ready for review". | ||
* [ ] Create the PR as draft . | ||
* [ ] Run `make pre-commit -B` to fix codegen and lint problems. | ||
* [ ] Sign-off your commits (otherwise the DCO check will fail). | ||
* [ ] Use [a conventional commit message](https://www.conventionalcommits.org/en/v1.0.0/) (otherwise the commit message check will fail). | ||
* [ ] "Fixes #" is in both the PR title (for release notes) and this description (to automatically link and close the issue). | ||
* [ ] Add unit or e2e tests. Say how you tested your changes. If you changed the UI, attach screenshots. | ||
* [ ] Github checks are green. | ||
* [ ] Once required tests have passed, mark your PR "Ready for review". | ||
When changes are requested, please address them and then dismiss the review to get it reviewed again. | ||
If changes were requested, and you've made them, dismiss the review to get it reviewed again. | ||
--> |
This file was deleted.
Oops, something went wrong.
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
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
Oops, something went wrong.