<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Publish DFS Server Image :: Ay Docs</title>
    <link>https://ops.docs.72602.space/csst/publish/publish_dfs_server_image/index.html</link>
    <description>Preliminary argo workflows binary has installed, if not check link 1. create git-credential GIT_USERNAME=boyang628 GIT_PASSWORD=yW9Yx__usgWy11aouzBB kubectl -n business-workflows create secret generic git-credentials \ --from-literal=&#34;username=${GIT_USERNAME}&#34; \ --from-literal=&#34;password=${GIT_PASSWORD}&#34; how to get password go to https://inner-gitlab.citybrain.org/-/profile/personal_access_tokens create a token with read_repository authority copy it! 2. [Optional] create docker-login-credential [FIXED] DOCKER_LOGIN_USERNAME=ascm-org-1705656754517 DOCKER_LOGIN_PASSWORD=4HRXwB5IoAQWUlhc kubectl -n business-workflows create secret generic docker-login-credentials \ --from-literal=&#34;username=${DOCKER_LOGIN_USERNAME:-wangz2019}&#34; \ --from-literal=&#34;password=${DOCKER_LOGIN_PASSWORD}&#34; 3. prepare publish-dfs-image.yaml apiVersion: argoproj.io/v1alpha1 kind: Workflow metadata: generateName: publish-dfs-image- spec: entrypoint: entry serviceAccountName: argo-workflow volumeClaimTemplates: - metadata: name: workspace spec: accessModes: - ReadWriteOnce storageClassName: nfs-external-nas resources: requests: storage: 1Gi templates: - name: entry dag: tasks: - name: dind template: dind - name: wait-for-dind dependencies: - dind template: wait-for-dind arguments: parameters: - name: dockerd-host value: &#34;{{tasks.dind.ip}}&#34; - name: publish dependencies: - wait-for-dind template: publish arguments: parameters: - name: dockerd-host value: &#34;{{tasks.dind.ip}}&#34; - name: dind daemon: true container: image: m.daocloud.io/docker.io/library/docker:25.0.3-dind-alpine3.19 env: - name: DOCKER_TLS_CERTDIR value: &#34;&#34; command: - dockerd-entrypoint.sh - --insecure-registry - cr.registry.res.cloud.wuxi-yqgcy.cn securityContext: privileged: true volumeMounts: - name: workspace mountPath: /workspace - name: wait-for-dind inputs: parameters: - name: dockerd-host container: image: m.daocloud.io/docker.io/library/docker:25.0.3-cli-alpine3.19 env: - name: DOCKER_HOST value: &#34;{{inputs.parameters.dockerd-host}}&#34; command: - sh - -c args: - | until docker ps; do sleep 3; done; - name: publish inputs: artifacts: - name: source path: /workspace/src git: repo: https://inner-gitlab.citybrain.org/csst/csst-py.git revision: main usernameSecret: name: git-credentials key: username passwordSecret: name: git-credentials key: password parameters: - name: dockerd-host - name: registry-to-push value: cr.registry.res.cloud.wuxi-yqgcy.cn - name: image-to-publish value: csst/dfs:v1-argo-ay-test - name: registry value: m.daocloud.io/docker.io container: image: m.daocloud.io/docker.io/library/docker:25.0.3-cli-alpine3.19 env: - name: DOCKER_HOST value: &#34;{{inputs.parameters.dockerd-host}}&#34; - name: DOCKER_USERNAME valueFrom: secretKeyRef: name: docker-login-credentials key: username - name: DOCKER_PASSWORD valueFrom: secretKeyRef: name: docker-login-credentials key: password command: - sh - -c args: - | set -e export REGISTRY={{inputs.parameters.registry}} export REGISTRY_TO_PUSH={{inputs.parameters.registry-to-push}} export IMAGE_TO_PUBLISH=${REGISTRY_TO_PUSH}/{{inputs.parameters.image-to-publish}} docker build \ --ulimit nofile=4096:4096 \ -f /workspace/src/Dockerfile \ --build-arg REGISTRY=${REGISTRY} \ -t ${IMAGE_TO_PUBLISH} /workspace/src \ &amp;&amp; docker login -u=&#34;${DOCKER_USERNAME}&#34; -p=&#34;${DOCKER_PASSWORD}&#34; ${REGISTRY_TO_PUSH} \ &amp;&amp; docker push ${IMAGE_TO_PUBLISH} volumeMounts: - name: workspace mountPath: /workspace 4. submit to argo workflow argo -n business-workflows submit publish-dfs-image.yaml</description>
    <generator>Hugo</generator>
    <language>en</language>
    <lastBuildDate></lastBuildDate>
    <atom:link href="https://ops.docs.72602.space/csst/publish/publish_dfs_server_image/index.xml" rel="self" type="application/rss+xml" />
  </channel>
</rss>