我想创建一个脚本,使用ktutil生成一个keytab.运行脚本时,我想使用[user] $ script.sh PASSWORD
#script.sh
echo "addent -password -p PRINCIPAL -k 1 -e aes256-cts-hmac-sha1-96" | ktutil
Run Code Online (Sandbox Code Playgroud)
Ktutil比需要密码,这里我想使用上面的PASSWORD参数.我如何通过密码辩论?
我有一个 Github Action 将我的静态 Web 应用程序部署到 Azure。
在构建和部署步骤中失败并显示
deployment_token was not provided.
下面是我的工作流程 yml 文件。我已经从我的完整 Azure 静态名称发布的文件中更改了 Secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_scrubbed 。
我创建了一个名为:Azure-new-host 的 Github 环境,其中包含一个秘密 AZURE_STATIC_WEB_APPS_API_TOKEN_scrubbed 以及来自 Azure 的部署令牌。
我查看了 Github 环境 secerts 和 Azure KeyVault
on:
push:
branches:
- main
pull_request:
types: [opened, synchronize, reopened, closed]
branches:
- main
jobs:
build_and_deploy_job:
if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.action != 'closed')
runs-on: ubuntu-latest
name: Build and Deploy Job
environment:
name:Azure-new-host
url:https://github.com
steps:
- uses: actions/checkout@v2
with:
submodules: true
- …Run Code Online (Sandbox Code Playgroud) github environment-variables github-actions azure-static-web-app
我的 docker 容器中需要用户。我的构建来自缺少 groupadd 的 busybox 映像,我尝试使用 apt-get 添加它,但也缺少它。我需要向我的 Dockerfile 添加什么才能获得 groupadd?
到目前为止我有
FROM busybox
RUN apt-get install bash
RUN groupadd -r postgres && useradd -r -g postgres postgres
CMD /bin/sh
Run Code Online (Sandbox Code Playgroud) 我正在从非顺序的特定日期在s3存储桶文件之间复制。在示例中,我要复制23,因此我想复制15、19和23。
aws s3 --region eu-central-1 --profile LOCALPROFILE cp s3:// SRC s3:// DEST --recursive --exclude“ *” --include“ 2016-01-23 ”
该来源提到使用序列http://docs.aws.amazon.com/cli/latest/reference/s3/ 来包含。