我已经构建了一个 Azure 函数。我可以直接从 Visual Studio(右键单击项目,然后“发布”)将其部署到我的 Azure FunctionApps,没有任何问题。但是,当我尝试使用 Azure DevOps 构建和部署它时,我收到以下错误,但我不知道这意味着什么。我什至不知道什么是Kudu?
The network path was not found.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.IO.IOException: The network path was not found.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception …Run Code Online (Sandbox Code Playgroud) 每次登录时,我都会通过 Visual Studio Pro 2019 连接到 DevOps。它要求输入凭据。有没有办法保存它们并将它们直接连接到DevOps服务器?
我想将这个逻辑包含在我的角色中
- name: i want to check that NFS share is accessible and R/W
module_to_check_nfs_share: touch {{ nfs_share_path }} ( for example , or cd to it)
- name: add NFS share path to elasticsearch config
template: ...
when: nfs_module == success
Run Code Online (Sandbox Code Playgroud)
如何使用ansible做这样的事情?所以我的情况是,尝试写入某些内容或 cd 到 NFS 共享并确保 NFS 文件系统可访问并且正常
我尝试同时在多个 lambda 中部署和更新代码,但是当推送到我的分支并部署 CodeBuild 时,出现以下错误:
调用UpdateFunctionCode操作时发生错误(InvalidParameterValueException):解压大小必须小于350198字节
[容器] 2021/04/24 00:09:31 命令未成功退出 aws lambda update-function-code --function-name my_lambda_03 --zip-file fileb://my_lambda_03.zip 退出状态 254 [容器] 2021 /04/24 00:09:31 阶段完成:POST_BUILD 状态:FAILED [Container] 2021/04/24 00:09:31 阶段上下文状态代码:COMMAND_EXECUTION_ERROR 消息:执行命令时出错:aws lambda update-function-code - -函数名称 my_lambda_03 --zip 文件 fileb://my_lambda_03.zip。原因:退出状态254
这是buildspec.yml:
version: 0.2
phases:
install:
runtime-versions:
python: 3.x
commands:
- echo "Installing dependencies..."
build:
commands:
- echo "Zipping all my functions....."
- cd my_lambda_01/
- zip -r9 ../my_lambda_01.zip .
- cd ..
- cd my_lambda_02/
- zip -r9 ../my_lambda_02.zip . …Run Code Online (Sandbox Code Playgroud) 我有一个独立的 DNS 测试台,其中所有需要互联网的工具都通过 SOCKS5 代理并使用它来解析 DNS (SOCKS5h)。git,apt并且curl没有问题;go做。即使设置http_proxy=socks5h://user1:pass1@192.168.0.1:8100 go mod tidygo 不使用代理来解析 DNS,所以我也会收到查找错误。
那么有没有办法解决这个问题呢?我愿意添加另一种代理类型,我只是真的需要保持第 3 层隔离。
我正在尝试在我的 mac 操作系统计算机上部署自托管代理。我下载了代理存档并将其解压。所有尝试运行均config.sh失败并出现错误:
config.sh:第 85 行:./bin/Agent.Listener:没有这样的文件或目录
不知道我哪里做错了。
UPD 我第一次收到另一条错误消息,但只有一次。
无法打开agent.listener,因为无法验证开发者
我们已经在 Redhat 服务器上安装了 gitlab runner,但我们无法在 gitlab 实例中注册它,因为它受到保护(我们需要在显示 HTTPS 之前登录)。
当我们克隆项目存储库时:
git clone https://domain\.com/project.git
Run Code Online (Sandbox Code Playgroud)
它要求输入用户名和密码,以及我们是否将凭据存储在文件或缓存中,例如
git config --global credential.helper 'store --file ~/.my-credentials'
Run Code Online (Sandbox Code Playgroud)
仅当 cloning => my-credentials 将包含原始用户名/密码时,它才会第一次要求身份验证,但它解决了每次都要求身份验证的问题。
我们如何对跑步者做同样的事情,以便将其注册到我们的 gitlab :当我们跑步时
gitlab-runner register --url http://domain\.com/gitlab/ -r 1TqfdYFsJsdsdLNc-7J
Run Code Online (Sandbox Code Playgroud)
在没有询问我们用户名/密码的情况下,我们立即收到以下错误:
ERROR: Registering runner... failed runner=1TqfdYFs status=401 Unauthorized
PANIC: Failed to register the runner. You may be having network problems.
Run Code Online (Sandbox Code Playgroud)
我们知道,由于需要身份验证,运行程序无法访问我们的 gitlab,但我们不知道如何解决它,我们尝试了很多方法,例如将凭据保存在 git 缓存中,但似乎它们没有连接或使用相同的东西。
有什么想法吗?
尝试使用docker-compose该模块在 ansible 剧本中使用docker_compose。请注意,我可以在 ansible 中成功使用 docker 模块,但遇到docker_compose模块问题。我使用纯文本变量进行本地测试,使用 ansible-vault 来存储机密。
在 ansible 文档中,它解释说他们的 docker-compose 模块仅支持 docker-compose 的版本 1 和 2。
这是我的docker-compose.yml:
---
version: "2.4"
services:
my_demo:
build: .
networks:
demo_net:
ipv4_address: 172.0.1.2
ports:
- 8080:8080
image: demo_image
networks:
demo_net:
driver: bridge
ipam:
driver: default
config:
- subnet: 172.0.1.0/30
gateway: 172.0.1.1
Run Code Online (Sandbox Code Playgroud)
这是我的main.yml:
---
- hosts: localhost
connection: local
become: true
vars:
- ansible_sudo_pass: password
- ansible_python_interpreter: /usr/bin/python3
tasks:
- name: Docker compose …Run Code Online (Sandbox Code Playgroud) branches:
main:
regex: ^master$|^main$
mode: ContinuousDelivery
tag: ''
increment: Patch
prevent-increment-of-merged-branch-version: true
track-merge-target: false
tracks-release-branches: false
is-release-branch: false
release:
regex: ^releases?[/-]
mode: ContinuousDelivery
tag: beta
increment: Patch
prevent-increment-of-merged-branch-version: true
track-merge-target: false
tracks-release-branches: false
is-release-branch: true
pre-release-weight: 1000
feature:
regex: ^features?[/-]
mode: ContinuousDelivery
tag: useBranchName
increment: Inherit
prevent-increment-of-merged-branch-version: false
track-merge-target: false
tracks-release-branches: false
is-release-branch: false
pull-request:
regex: ^(pull|pull\-requests|pr)[/-]
mode: ContinuousDelivery
tag: PullRequest
increment: Inherit
prevent-increment-of-merged-branch-version: false
tag-number-pattern: '[/-](?<number>\d+)[-/]'
track-merge-target: false
tracks-release-branches: false
is-release-branch: false
hotfix:
regex: ^hotfix(es)?[/-]
mode: ContinuousDelivery
tag: beta …Run Code Online (Sandbox Code Playgroud) 我正在尝试使用 Keycloak 在 ArgoCD 中进行身份验证。我正在遵循本指南,但有一个问题。ArgoCD 将我重定向到 http://URL/ auth /login?return_url=... ,这会抛出此错误请求 400 - 无效的 return_url。正确的链接是 http://URL/login?return_url=...,但我不知道应该在哪里更改它,因此它不会将身份验证附加到路径中。
在 ArgoCD 的 Keycloak 客户端中,有效重定向 URI字段设置为* 。
devops ×10
ansible ×2
argocd ×1
automation ×1
aws-lambda ×1
azure ×1
azure-devops ×1
azure-devops-self-hosted-agent ×1
docker ×1
git ×1
gitlab ×1
gitlab-ci ×1
gitversion ×1
go ×1
https ×1
keycloak ×1
kubernetes ×1
macos ×1
redirect ×1
version ×1