-
Notifications
You must be signed in to change notification settings - Fork 202
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into feat/dashboard-supports-random-port
- Loading branch information
Showing
69 changed files
with
3,524 additions
and
1,545 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 |
---|---|---|
@@ -0,0 +1,66 @@ | ||
{ | ||
"name": "Dapr CLI Dev Environment", | ||
// Update the container version when you publish dev-container | ||
"image": "docker.io/daprio/dapr-dev:0.1.7", | ||
// Replace with uncommented line below to build your own local copy of the image | ||
// "dockerFile": "../docker/Dockerfile-dev", | ||
"containerEnv": { | ||
// Uncomment to overwrite devcontainer .kube/config and .minikube certs with the localhost versions | ||
// each time the devcontainer starts, if the respective .kube-localhost/config and .minikube-localhost | ||
// folders respectively are bind mounted to the devcontainer. | ||
// "SYNC_LOCALHOST_KUBECONFIG": "true", | ||
|
||
// Uncomment to disable docker-in-docker and automatically proxy default /var/run/docker.sock to | ||
// the localhost bind-mount /var/run/docker-host.sock. | ||
// "BIND_LOCALHOST_DOCKER": "true" | ||
}, | ||
"extensions": [ | ||
"davidanson.vscode-markdownlint", | ||
"golang.go", | ||
"ms-azuretools.vscode-dapr", | ||
"ms-azuretools.vscode-docker", | ||
"ms-kubernetes-tools.vscode-kubernetes-tools" | ||
], | ||
"mounts": [ | ||
// Mount docker-in-docker library volume | ||
"type=volume,source=dind-var-lib-docker,target=/var/lib/docker", | ||
|
||
// Bind mount docker socket under an alias to support docker-from-docker | ||
"type=bind,source=/var/run/docker.sock,target=/var/run/docker-host.sock", | ||
|
||
// Uncomment to clone local .kube/config into devcontainer | ||
// "type=bind,source=${env:HOME}${env:USERPROFILE}/.kube,target=/home/dapr/.kube-localhost", | ||
|
||
// Uncomment to additionally clone minikube certs into devcontainer for use with .kube/config | ||
// "type=bind,source=${env:HOME}${env:USERPROFILE}/.minikube,target=/home/dapr/.minikube-localhost" | ||
], | ||
// Always run image-defined default command | ||
"overrideCommand": false, | ||
// On Linux, this will prevent new files getting created as root, but you | ||
// may need to update the USER_UID and USER_GID in docker/Dockerfile-dev | ||
// to match your user if not 1000. | ||
"remoteUser": "dapr", | ||
"runArgs": [ | ||
// Enable ptrace-based debugging for go | ||
"--cap-add=SYS_PTRACE", | ||
"--security-opt", | ||
"seccomp=unconfined", | ||
|
||
// Uncomment to bind to host network for local devcontainer; this is necessary if using the | ||
// bind-mounted /var/run/docker-host.sock directly. | ||
// "--net=host", | ||
|
||
// Enable docker-in-docker configuration. Comment out if not using for better security. | ||
"--privileged", | ||
|
||
// Run the entrypoint defined in container image. | ||
"--init" | ||
], | ||
"settings": { | ||
"go.toolsManagement.checkForUpdates": "local", | ||
"go.useLanguageServer": true, | ||
"go.gopath": "/go" | ||
}, | ||
"workspaceFolder": "/workspaces/cli", | ||
"workspaceMount": "type=bind,source=${localWorkspaceFolder},target=/workspaces/cli", | ||
} |
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 |
---|---|---|
@@ -0,0 +1,48 @@ | ||
# | ||
# Copyright 2021 The Dapr Authors | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
# | ||
|
||
name: fossa | ||
on: | ||
push: | ||
branches: | ||
- master | ||
- release-* | ||
- feature/* | ||
tags: | ||
- v* | ||
pull_request: | ||
branches: | ||
- master | ||
- release-* | ||
- feature/* | ||
workflow_dispatch: {} | ||
jobs: | ||
fossa-scan: | ||
if: github.repository_owner == 'dapr' # FOSSA is not intended to run on forks. | ||
runs-on: ubuntu-latest | ||
env: | ||
FOSSA_API_KEY: b88e1f4287c3108c8751bf106fb46db6 # This is a push-only token that is safe to be exposed. | ||
steps: | ||
- name: "Checkout code" | ||
uses: actions/checkout@v2 | ||
|
||
- name: "Run FOSSA Scan" | ||
uses: fossas/fossa-action@v1.1.0 # Use a specific version if locking is preferred | ||
with: | ||
api-key: ${{ env.FOSSA_API_KEY }} | ||
|
||
- name: "Run FOSSA Test" | ||
uses: fossas/fossa-action@v1.1.0 # Use a specific version if locking is preferred | ||
with: | ||
api-key: ${{ env.FOSSA_API_KEY }} | ||
run-tests: true |
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.