bin/bash: строка 120: sudo: команда не найдена GITLAB CI/CD ПРОБЛЕМА
Я пытаюсь отправить свой код в Gitlab с помощью Gitlab CI / CD, но он постоянно терпит неудачу на этапе отправки, что приводит к ошибке ниже. Есть идеи относительно того, что вызывает это?
Проблема, взятая из стадии push:
Running with gitlab-runner 13.12.0-rc1 (b21d5c5b)
on docker-auto-scale ed2dce3a
feature flags: FF_GITLAB_REGISTRY_HELPER_IMAGE:true, FF_SKIP_DOCKER_MACHINE_PROVISION_ON_CREATION_FAILURE:true
Preparing the "docker+machine" executor
00:37
Using Docker executor with image python:latest ...
Pulling docker image python:latest ...
Using docker image sha256:a6a0779c5fb25f7a075c83815a3803f9fbc5579beb488c86e27e91c48b679951 for python:latest with digest python@sha256:f265c5096aa52bdd478d2a5ed097727f51721fda20686523ab1b3038cc7d6417 ...
Preparing environment
00:03
Running on runner-ed2dce3a-project-26842327-concurrent-0 via runner-ed2dce3a-srm-1621710050-aa8d3bf1...
Getting source from Git repository
00:01
$ eval "$CI_PRE_CLONE_SCRIPT"
Fetching changes with git depth set to 50...
Initialized empty Git repository in /builds/Udmx/logcat/.git/
Created fresh repository.
Checking out bbd1a15d as master...
Skipping Git submodules setup
Executing "step_script" stage of the job script
00:01
Using docker image sha256:a6a0779c5fb25f7a075c83815a3803f9fbc5579beb488c86e27e91c48b679951 for python:latest with digest python@sha256:f265c5096aa52bdd478d2a5ed097727f51721fda20686523ab1b3038cc7d6417 ...
$ sudo apt install docker-compose
/bin/bash: line 120: sudo: command not found
Cleaning up file based variables
00:00
ERROR: Job failed: exit code 1
.gitlab-ci.yml:
image: python:latest
stages:
- deploy
deploy-project:
stage: deploy
script:
- docker-compose up -d
only:
- master
Dockerfile:
FROM python:latest
WORKDIR /src
COPY requirements.txt /src/
RUN pip install -U pip
RUN pip install -r requirements.txt
COPY . /src/
EXPOSE 8000
CMD ["gunicorn","config.wsgi",":8000"]