Coder Social home page Coder Social logo

Comments (6)

m-yosefpor avatar m-yosefpor commented on June 18, 2024 2

Yeah argocd-repo-server is a symbolic link in new argocd (1.9 and v2). So when _argocd-repo-server is called, $0 arg is not one of the commands known to argocd binary. But it can be simply fixed by adding an env var:

ARGOCD_BINARY_NAME=argocd-repo-server

It is fixed by #9

from docker-argocd.

yann-soubeyrand avatar yann-soubeyrand commented on June 18, 2024 1

This issue should be finally fixed, sorry for the looooooong delay!

from docker-argocd.

yann-soubeyrand avatar yann-soubeyrand commented on June 18, 2024

Could you explain why the wrapper won’t work anymore? I don’t see what will break but I didn’t test it though ;-)

However, maybe we could just replace the symlink with the wrapper to simlify the setup.

from docker-argocd.

tanandy avatar tanandy commented on June 18, 2024

Hi, i tested it. in the new argocd version, argocd repo bin is not a different binary anymore that is different from 1.8 and then argocd server == argocd repo server .... thats the reason why the wrapper doesnt work because the all in one binary doesnt work with this wrapper.

from docker-argocd.

gogovan-vincentngai avatar gogovan-vincentngai commented on June 18, 2024

Dont know why somehow seems not working ?
I added the env under repo-server section

But it still turn to CrashLoopBackOff and [FATAL tini (7)] exec argocd-repo-server failed: Permission denied

Dockerfile

FROM golang:1.16 as builder
RUN git clone --branch=20200403-1 --depth=1 https://github.com/camptocamp/helm-sops && \
    cd helm-sops && \
    go build

FROM argoproj/argocd:v2.0.0
USER root
COPY argocd-repo-server-wrapper /usr/local/bin/
COPY --from=builder /go/helm-sops/helm-sops /usr/local/bin/
RUN cd /usr/local/bin && \
    mv argocd-repo-server _argocd-repo-server && \
    mv argocd-repo-server-wrapper argocd-repo-server && \
    mv helm _helm && \
    mv helm2 _helm2 && \
    mv helm-sops helm && \
    ln helm helm2
USER argocd

argocd-repo-server-wrapper

#! /bin/sh

GPG_PRIVATE_KEY_FILE='/app/config/gpg/privkey.asc'

if [ -f "${GPG_PRIVATE_KEY_FILE}" ]
then
	gpg --import "${GPG_PRIVATE_KEY_FILE}"
fi

exec "$(dirname "$0")/_$(basename "$0")" "$@"

I am using yaml to deploy my argocd ...

piVersion: apps/v1
kind: Deployment
metadata:
  labels:
    app.kubernetes.io/component: repo-server
    app.kubernetes.io/name: argocd-repo-server
    app.kubernetes.io/part-of: argocd
  name: argocd-repo-server
spec:
  selector:
    matchLabels:
      app.kubernetes.io/name: argocd-repo-server
  template:
    metadata:
      labels:
        app.kubernetes.io/name: argocd-repo-server
    spec:
      affinity:
        podAntiAffinity:
          preferredDuringSchedulingIgnoredDuringExecution:
          - podAffinityTerm:
              labelSelector:
                matchLabels:
                  app.kubernetes.io/name: argocd-repo-server
              topologyKey: kubernetes.io/hostname
            weight: 100
          - podAffinityTerm:
              labelSelector:
                matchLabels:
                  app.kubernetes.io/part-of: argocd
              topologyKey: kubernetes.io/hostname
            weight: 5
      automountServiceAccountToken: false
      containers:
      - command:
        - uid_entrypoint.sh
        - argocd-repo-server
        - --redis
        - argocd-redis:6379
        image: mypatched_images
        env:
        - name: ARGOCD_BINARY_NAME
          value: "argocd-repo-server"
        imagePullPolicy: Always
....

from docker-argocd.

m-yosefpor avatar m-yosefpor commented on June 18, 2024

As logs say, there is a permission issue. try chmod +x argocd-repo-server-wrapper in dockerfile, or on the original file in directory where you copy it into container.

from docker-argocd.

Related Issues (5)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.