FROM ubuntu:latest
RUN apt update
RUN apt install -y wget apt-transport-https ca-certificates gnupg openjdk-8-jdk python3
RUN wget -q -O - https://pkg.jenkins.io/debian-stable/jenkins.io.key | sudo apt-key add - \
&& sh -c 'echo deb http://pkg.jenkins.io/debian-stable binary/ > /etc/apt/sources.list.d/jenkins.list' \
&& apt update \
&& apt install -y jenkins
docker build .
root@5a80fce53132:/# pip install git+https://gitlab.com/choose-your-url/pckg-prj.git
Collecting git+https://gitlab.com/choose-your-url/pckg-prj.git
Cloning https://gitlab.com/choose-your-url/pckg-prj.git to /tmp/pip-req-build-tw_p8qqr
Running command git clone -q https://gitlab.com/choose-your-url/pckg-prj.git /tmp/pip-req-build-tw_p8qqr
Resolved https://gitlab.com/choose-your-url/pckg-prj.git to commit 889b88b4283c9e1db26c8aa67bb9f92dab378741
Building wheels for collected packages: env123
Building wheel for env123 (setup.py) ... done
Created wheel for env123: filename=env123-0.1.0-py3-none-any.whl size=1275 sha256=6c68e334d6668079c11dd3de675bc5582a788676284b0c096ad81aa6049b2040
Stored in directory: /tmp/pip-ephem-wheel-cache-1mk6jxqc/wheels/15/72/b4/bcfe81ea9b9a8421f4337a22683a99295cd852efea659cf399
Successfully built env123
Installing collected packages: env123
Successfully installed env123-0.1.0
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
WARNING: You are using pip version 21.2.4; however, version 22.1.2 is available.
You should consider upgrading via the '/usr/local/bin/python -m pip install --upgrade pip' command.
root@5a80fce53132:/# pip freeze
env123 @ git+https://gitlab.com/choose-your-url/pckg-prj.git@889b88b4283c9e1db26c8aa67bb9f92dab378741
root@af6f3883cb6d:/# pip freeze
env123 @ git+https://gitlab.com/choose-your-url/pckg-prj.git@cae7736c0c64b2f4d46112f5dc602e9af5606d29
Вызов pytest.main()приведет к импорту ваших тестов...