podman? Error: exec: "docker": executable file not found in $PATH ловлю такую ошибку
werf compose или werf запустить? У нас через podman работает + werf + buildah
А как вы используете? У вас есть алиас на docker в shell-сессии?
на docker compose есть, на docker нет
У вас видимо старая версия используется. Сейчас у нас везде docker compose уже из системы вызывается.
мы используем в образе для Jenkins
Вот, если интересно dockerfile ######################## #### PODMAN #### ######################## # https://hub.docker.com/r/jenkins/inbound-agent/ # # Args # ARG SLAVE_VERSION=3192.v713e3b_039fb_e-3-jdk21 ARG SLAVE_VERSION=3248.v65ecb_254c298-5-jdk21 ARG BUILD_BASE=nexus.xxx.ru/jenkins/inbound-agent:${SLAVE_VERSION} # Build Base Agent Image FROM ${BUILD_BASE} AS main # Become root USER root # Install prerequisites and setup RUN set -ex \ && echo "PubkeyAcceptedKeyTypes +ssh-rsa" >> /etc/ssh/ssh_config \ && ln -snf /usr/share/zoneinfo/Europe/Moscow /etc/localtime && echo Europe/Moscow > /etc/timezone \ && echo -e "\e[32m Building Base Agent...\e[0m" \ && apt-get update \ && DEBIAN_FRONTEND=noninteractive apt-get install -y apt-transport-https protobuf-compiler ca-certificates curl gnupg2 software-properties-common sudo wget unzip \ && rm -rf /var/lib/apt/lists/* \ && wget https://packages.microsoft.com/config/debian/11/packages-microsoft-prod.deb -O /tmp/packages-microsoft-prod.deb \ && dpkg -i /tmp/packages-microsoft-prod.deb \ && rm /tmp/packages-microsoft-prod.deb \ && curl -fsSL -o get_helm.sh https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 \ && chmod 700 get_helm.sh \ && ./get_helm.sh \ && helm repo add nexus https://nexus.ap-team.ru/repository/helm-hosted/ \ && apt-get update \ && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \ powershell \ && wget https://github.com/protocolbuffers/protobuf/releases/download/v27.1/protoc-27.1-linux-x86_64.zip -O /tmp/protoc.zip \ && unzip -o /tmp/protoc.zip -d /usr/local/bin/protoc \ && unzip -o /tmp/protoc.zip -d /usr/local 'include/*' \ && apt-get clean \ && rm -rf /root/.cache/* /tmp/* /var/tmp/* # Install packages and podman RUN set -ex \ && apt-get update \ && DEBIAN_FRONTEND=noninteractive apt-get install -y tar podman \ && ln -s $(which podman) /usr/bin/docker \ && apt-get clean \ && rm -rf /var/lib/apt/lists/* \ && echo -e "\e[32m Done\e[0m" # Set default user USER jenkins FROM main AS ap-cd-worker # Prepare agent: USER root # Install prerequisites and setup RUN set -ex \ && echo -e "\e[33m Adding werf binaries...\e[0m" \ && cd /tmp \ && curl -sSLO https://werf.io/install.sh && chmod +x install.sh \ && ./install.sh --version 2 --channel alpha \ && /bin/bash -c "set -x && source $(~/bin/trdl use werf 2 alpha) && werf version" \ && curl -o awscliv2.zip https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip \ && unzip awscliv2.zip \ && ./aws/install \ && YQ_VERSION=v4.44.1 \ && YQ_BINARY=yq_linux_amd64 \ && wget https://github.com/mikefarah/yq/releases/download/${YQ_VERSION}/${YQ_BINARY}.tar.gz -O - | tar xz && mv ${YQ_BINARY} /usr/bin/yq \ && apt-get update \ && DEBIAN_FRONTEND=noninteractive apt-get install -y apt-transport-https \ && curl -fsSL https://pkgs.k8s.io/core:/stable:/v1.29/deb/Release.key | gpg --dearmor -o /etc/apt/keyrings/kubernetes-apt-keyring.gpg \ && echo 'deb [signed-by=/etc/apt/keyrings/kubernetes-apt-keyring.gpg] https://pkgs.k8s.io/core:/stable:/v1.29/deb/ /' | tee /etc/apt/sources.list.d/kubernetes.list \ && apt-get update \ && DEBIAN_FRONTEND=noninteractive apt-get install -y kubectl jq bc rsync nano yamllint python3 python3-requests python3-bs4 boxes \ && apt-get clean \ && rm -rf /root/.cache/* /var/lib/apt/lists/* /tmp/* /var/tmp/* /root/.bashrc \ && ls -lah /root/.trdl/repositories/werf/releases/ \ && ls -lah /root/ \ && echo -e "\e[32m Done\e[0m"
Не везде домен спрятали
Не алиас а символическая ссылка. Для разрабов остается все неименное. Но работает containerd + podman + werf + buildah
Обсуждают сегодня