未验证 提交 580ae49e 编写于 作者: R Roman Donchenko 提交者: GitHub

Migrate to Docker Compose V2 (#5524)

Also, migrate to the version less Compose file format.

Compose V1 is EOL:
<https://www.docker.com/blog/announcing-compose-v2-general-availability/>.
上级 75b338b5
......@@ -255,14 +255,14 @@ jobs:
HOST_COVERAGE_DATA_DIR: ${{ github.workspace }}
CONTAINER_COVERAGE_DATA_DIR: "/coverage_data"
run: |
docker-compose -f docker-compose.yml -f docker-compose.dev.yml up -d cvat_opa cvat_server
docker compose -f docker-compose.yml -f docker-compose.dev.yml up -d cvat_opa cvat_server
max_tries=12
while [[ $(curl -s -o /dev/null -w "%{http_code}" localhost:8181/health?bundles) != "200" && max_tries -gt 0 ]]; do (( max_tries-- )); sleep 5; done
docker-compose -f docker-compose.yml -f docker-compose.dev.yml -f docker-compose.ci.yml run cvat_ci /bin/bash \
docker compose -f docker-compose.yml -f docker-compose.dev.yml -f docker-compose.ci.yml run cvat_ci /bin/bash \
-c 'python manage.py test cvat/apps -v 2'
docker-compose -f docker-compose.yml -f docker-compose.dev.yml -f docker-compose.ci.yml run cvat_ci /bin/bash \
docker compose -f docker-compose.yml -f docker-compose.dev.yml -f docker-compose.ci.yml run cvat_ci /bin/bash \
-c 'yarn --frozen-lockfile --ignore-scripts && yarn workspace cvat-core run test'
- name: Creating a log file from cvat containers
......@@ -325,7 +325,7 @@ jobs:
- name: Run CVAT instance
run: |
docker-compose \
docker compose \
-f docker-compose.yml \
-f docker-compose.dev.yml \
-f components/serverless/docker-compose.serverless.yml \
......
......@@ -222,15 +222,15 @@ jobs:
HOST_COVERAGE_DATA_DIR: ${{ github.workspace }}
CONTAINER_COVERAGE_DATA_DIR: "/coverage_data"
run: |
docker-compose -f docker-compose.yml -f docker-compose.dev.yml up -d cvat_opa cvat_server
docker compose -f docker-compose.yml -f docker-compose.dev.yml up -d cvat_opa cvat_server
max_tries=12
while [[ $(curl -s -o /dev/null -w "%{http_code}" localhost:8181/health?bundles) != "200" && max_tries -gt 0 ]]; do (( max_tries-- )); sleep 5; done
docker-compose -f docker-compose.yml -f docker-compose.dev.yml -f docker-compose.ci.yml run cvat_ci /bin/bash \
docker compose -f docker-compose.yml -f docker-compose.dev.yml -f docker-compose.ci.yml run cvat_ci /bin/bash \
-c 'python manage.py test cvat/apps -v 2'
docker-compose -f docker-compose.yml -f docker-compose.dev.yml -f docker-compose.ci.yml run cvat_ci /bin/bash \
docker compose -f docker-compose.yml -f docker-compose.dev.yml -f docker-compose.ci.yml run cvat_ci /bin/bash \
-c 'yarn --frozen-lockfile --ignore-scripts && yarn workspace cvat-core run test'
- name: Creating a log file from cvat containers
......@@ -292,7 +292,7 @@ jobs:
- name: Run CVAT instance
run: |
docker-compose \
docker compose \
-f docker-compose.yml \
-f docker-compose.dev.yml \
-f components/serverless/docker-compose.serverless.yml \
......
......@@ -10,7 +10,7 @@ jobs:
- uses: actions/checkout@v3
- name: Build images
run: |
CVAT_VERSION=latest CLAM_AV=yes INSTALL_SOURCES=yes docker-compose -f docker-compose.yml -f docker-compose.dev.yml build
CVAT_VERSION=latest CLAM_AV=yes INSTALL_SOURCES=yes docker compose -f docker-compose.yml -f docker-compose.dev.yml build
- name: Login to Docker Hub
uses: docker/login-action@v1
with:
......
......@@ -246,17 +246,17 @@ jobs:
HOST_COVERAGE_DATA_DIR: ${{ github.workspace }}
CONTAINER_COVERAGE_DATA_DIR: "/coverage_data"
run: |
docker-compose -f docker-compose.yml -f docker-compose.dev.yml up -d cvat_opa cvat_server
docker compose -f docker-compose.yml -f docker-compose.dev.yml up -d cvat_opa cvat_server
max_tries=12
while [[ $(curl -s -o /dev/null -w "%{http_code}" localhost:8181/health?bundles) != "200" && max_tries -gt 0 ]]; do (( max_tries-- )); sleep 5; done
docker-compose -f docker-compose.yml -f docker-compose.dev.yml -f docker-compose.ci.yml run cvat_ci /bin/bash \
docker compose -f docker-compose.yml -f docker-compose.dev.yml -f docker-compose.ci.yml run cvat_ci /bin/bash \
-c 'coverage run -a manage.py test cvat/apps && mv .coverage ${CONTAINER_COVERAGE_DATA_DIR}'
docker-compose -f docker-compose.yml -f docker-compose.dev.yml -f docker-compose.ci.yml run cvat_ci /bin/bash \
docker compose -f docker-compose.yml -f docker-compose.dev.yml -f docker-compose.ci.yml run cvat_ci /bin/bash \
-c 'yarn --frozen-lockfile --ignore-scripts && yarn workspace cvat-core run test'
docker-compose -f docker-compose.yml -f docker-compose.dev.yml -f docker-compose.ci.yml down -v
docker compose -f docker-compose.yml -f docker-compose.dev.yml -f docker-compose.ci.yml down -v
- name: Uploading code coverage results as an artifact
uses: actions/upload-artifact@v3.1.1
......@@ -318,7 +318,7 @@ jobs:
- name: Run CVAT instance
run: |
docker-compose \
docker compose \
-f docker-compose.yml \
-f docker-compose.dev.yml \
-f tests/docker-compose.file_share.yml \
......@@ -458,13 +458,13 @@ jobs:
run: |
npx nyc report --reporter=text-lcov >> ${HOST_COVERAGE_DATA_DIR}/lcov.info
docker-compose \
docker compose \
-f docker-compose.yml \
-f docker-compose.dev.yml \
-f docker-compose.ci.yml \
run cvat_ci /bin/bash -c 'cd ${CONTAINER_COVERAGE_DATA_DIR} && coveralls-lcov -v -n lcov.info > ${CONTAINER_COVERAGE_DATA_DIR}/coverage.json'
docker-compose \
docker compose \
-f docker-compose.yml \
-f docker-compose.dev.yml \
-f docker-compose.ci.yml \
......
......@@ -10,7 +10,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Filename pattern to simplify uploading cloud storage data for a task (<https://github.com/opencv/cvat/pull/5498>)
### Changed
- TDB
- The Docker Compose files now use the Compose Specification version
of the format. This version is supported by Docker Compose 1.27.0+
(<https://github.com/opencv/cvat/pull/5524>).
### Deprecated
- TDB
......
......@@ -98,7 +98,7 @@ Here are some screencasts showing how to use CVAT.
[Computer Vision Annotation Course](https://www.youtube.com/playlist?list=PL0to7Ng4PuuYQT4eXlHb_oIlq_RPeuasN): we introduce our course series designed to help you annotate data faster and better using CVAT. This course is about CVAT deployment and integrations, it includes presentations and covers the following topics:
- **Speeding up your data annotation process: introduction to CVAT and Datumaro**. What problems do CVAT and Datumaro solve, and how they can speed up your model training process. Some resources you can use to learn more about how to use them.
- **Deployment and use CVAT**. Use the app online at [app.cvat.ai](app.cvat.ai). A local deployment. A containerized local deployment with docker-compose (for regular use), and a local cluster deployment with Kubernetes (for enterprise users). A 2-minute tour of the interface, a breakdown of CVAT’s internals, and a demonstration of how to deploy CVAT using docker-compose.
- **Deployment and use CVAT**. Use the app online at [app.cvat.ai](app.cvat.ai). A local deployment. A containerized local deployment with Docker Compose (for regular use), and a local cluster deployment with Kubernetes (for enterprise users). A 2-minute tour of the interface, a breakdown of CVAT’s internals, and a demonstration of how to deploy CVAT using Docker Compose.
[Product tour](https://www.youtube.com/playlist?list=PL0to7Ng4Puua37NJVMIShl_pzqJTigFzg): in this course, we show how to use CVAT, and help to get familiar with CVAT functionality and interfaces. This course does not cover integrations and is dedicated solely to CVAT. It covers the following topics:
......
version: '3.3'
services:
elasticsearch:
container_name: cvat_elasticsearch
......
......@@ -4,5 +4,5 @@
```bash
# From project root directory
docker-compose -f docker-compose.yml -f components/serverless/docker-compose.serverless.yml up -d
docker compose -f docker-compose.yml -f components/serverless/docker-compose.serverless.yml up -d
```
version: '3.3'
services:
nuclio:
container_name: nuclio
......
......@@ -3,7 +3,6 @@
#
# SPDX-License-Identifier: MIT
#
version: '3.3'
services:
cvat_ci:
......
......@@ -4,7 +4,6 @@
#
# SPDX-License-Identifier: MIT
#
version: '3.3'
services:
cvat_server:
......
......@@ -2,8 +2,6 @@
#
# SPDX-License-Identifier: MIT
version: '3.3'
services:
cvat_server:
labels:
......
......@@ -2,8 +2,6 @@
#
# SPDX-License-Identifier: MIT
version: '3.3'
services:
cvat_db:
container_name: cvat_db
......
......@@ -170,7 +170,7 @@ cvat:
# - mountPath: /tmp
# name: tmp
# subPath: test
composeCompatibleServiceName: true # Sets service name to opa in order to be docker-compose compatible. Necessary because changing IAM_OPA_DATA_URL via environment variables in current images. Hinders multiple deployment due to duplicate name
composeCompatibleServiceName: true # Sets service name to opa in order to be compatible with Docker Compose. Necessary because changing IAM_OPA_DATA_URL via environment variables in current images. Hinders multiple deployment due to duplicate name
service:
type: ClusterIP
ports:
......
......@@ -19,14 +19,14 @@ It is possible to proxy annotation logs from client to ELK. To do that run the f
```bash
# From project root directory
docker-compose -f docker-compose.yml -f components/analytics/docker-compose.analytics.yml build
docker compose -f docker-compose.yml -f components/analytics/docker-compose.analytics.yml build
```
### Run docker container
```bash
# From project root directory
docker-compose -f docker-compose.yml -f components/analytics/docker-compose.analytics.yml up -d
docker compose -f docker-compose.yml -f components/analytics/docker-compose.analytics.yml up -d
```
At the moment it is not possible to save advanced settings. Below values should be specified manually.
......
......@@ -32,10 +32,10 @@ Docker volumes are used to store all CVAT data:
All CVAT containers should be stopped before backup:
```shell
docker-compose stop
docker compose stop
```
Please don't forget to include all the compose config files that were used in the docker-compose command
Please don't forget to include all the compose config files that were used in the `docker compose` command
using the `-f` parameter.
Backup data:
......@@ -66,7 +66,7 @@ Note: CVAT containers must exist (if no, please follow the [installation guide](
Stop all CVAT containers:
```shell
docker-compose stop
docker compose stop
```
Restore data:
......@@ -82,7 +82,7 @@ docker run --rm --name temp_backup --volumes-from cvat_elasticsearch -v $(pwd):/
After that run CVAT as usual:
```shell
docker-compose up -d
docker compose up -d
```
## Additional resources
......
......@@ -11,21 +11,21 @@ description: 'Information about the installation of components needed for semi-a
<!--lint disable maximum-line-length-->
> **⚠ WARNING: Do not use `docker-compose up`**
> If you did, make sure all containers are stopped by `docker-compose down`.
> **⚠ WARNING: Do not use `docker compose up`**
> If you did, make sure all containers are stopped by `docker compose down`.
- To bring up cvat with auto annotation tool, from cvat root directory, you need to run:
```bash
docker-compose -f docker-compose.yml -f components/serverless/docker-compose.serverless.yml up -d
docker compose -f docker-compose.yml -f components/serverless/docker-compose.serverless.yml up -d
```
If you did any changes to the docker-compose files, make sure to add `--build` at the end.
If you did any changes to the Docker Compose files, make sure to add `--build` at the end.
To stop the containers, simply run:
```bash
docker-compose -f docker-compose.yml -f components/serverless/docker-compose.serverless.yml down
docker compose -f docker-compose.yml -f components/serverless/docker-compose.serverless.yml down
```
- You have to install `nuctl` command line tool to build and deploy serverless
......@@ -47,7 +47,7 @@ description: 'Information about the installation of components needed for semi-a
- Create `cvat` project inside nuclio dashboard where you will deploy new serverless functions
and deploy a couple of DL models. Commands below should be run only after CVAT has been installed
using `docker-compose` because it runs nuclio dashboard which manages all serverless functions.
using `docker compose` because it runs nuclio dashboard which manages all serverless functions.
```bash
nuctl create project cvat
......
......@@ -149,7 +149,7 @@ Before starting, ensure that the following prerequisites are met:
- Let's build custom elasticsearch, logstash and kibana images with the following command
```shell
docker-compose -f docker-compose.yml -f components/analytics/docker-compose.analytics.yml build
docker compose -f docker-compose.yml -f components/analytics/docker-compose.analytics.yml build
```
- Tag images:
......
......@@ -19,16 +19,16 @@ To upgrade CVAT, follow these steps:
- Go to the previously cloned CVAT directory and stop all CVAT containers with:
```shell
docker-compose down
docker compose down
```
If you have included [additional components](/docs/administration/basics/installation/#additional-components),
include all compose configuration files that are used, e.g.:
```shell
docker-compose -f docker-compose.yml -f components/analytics/docker-compose.analytics.yml down
docker compose -f docker-compose.yml -f components/analytics/docker-compose.analytics.yml down
```
- Update CVAT source code by any preferable way: clone with git or download zip file from GitHub.
Note that you need to download the entire source code, not just the `docker-compose` configuration file.
Note that you need to download the entire source code, not just the Docker Compose configuration file.
Check the
[installation guide](/docs/administration/basics/installation/#how-to-get-cvat-source-code) for details.
......@@ -44,7 +44,7 @@ To upgrade CVAT, follow these steps:
- Start CVAT with:
```shell
docker-compose up -d
docker compose up -d
```
When CVAT starts, it will upgrade its DB in accordance with the latest schema.
It can take time especially if you have a lot of data.
......@@ -60,7 +60,7 @@ Step by step commands how to udgrade CVAT from v1.7.0 to v2.1.0.
Let's assume that you have CVAT v1.7.0 working.
```shell
cd cvat
docker-compose down
docker compose down
cd ..
mv cvat cvat_old
wget https://github.com/opencv/cvat/archive/refs/tags/v2.1.0.zip
......@@ -70,7 +70,7 @@ docker pull cvat/server:v2.1.0
docker tag cvat/server:v2.1.0 openvino/cvat_server:latest
docker pull cvat/ui:v2.1.0
docker tag cvat/ui:v2.1.0 openvino/cvat_ui:latest
docker-compose up -d
docker compose up -d
```
## How to upgrade PostgreSQL database base image
......@@ -86,7 +86,7 @@ docker-compose up -d
1. Stop CVAT:
```shell
docker-compose down
docker compose down
```
1. Delete current PostrgeSQL’s volume, that's why it's important to have a backup:
......@@ -100,7 +100,7 @@ docker-compose up -d
1. Start database container only:
```shell
docker-compose up -d cvat_db
docker compose up -d cvat_db
```
1. Import PostgreSQL dump into new DB container:
......@@ -110,5 +110,5 @@ docker-compose up -d
1. Start CVAT:
```shell
docker-compose up -d
docker compose up -d
```
......@@ -28,7 +28,7 @@ For access from China, read [sources for users from China](#sources-for-users-fr
- Open a terminal window. If you don't know how to open a terminal window on
Ubuntu please read [the answer](https://askubuntu.com/questions/183775/how-do-i-open-a-terminal).
- Type commands below into the terminal window to install `docker`. More
- Type commands below into the terminal window to install Docker and Docker Compose. More
instructions can be found [here](https://docs.docker.com/install/linux/docker-ce/ubuntu/).
```shell
......@@ -45,7 +45,8 @@ For access from China, read [sources for users from China](#sources-for-users-fr
$(lsb_release -cs) \
stable"
sudo apt-get update
sudo apt-get --no-install-recommends install -y docker-ce docker-ce-cli containerd.io
sudo apt-get --no-install-recommends install -y \
docker-ce docker-ce-cli containerd.io docker-compose-plugin
```
- Perform [post-installation steps](https://docs.docker.com/install/linux/linux-postinstall/)
......@@ -60,14 +61,6 @@ For access from China, read [sources for users from China](#sources-for-users-fr
re-evaluated. You can type `groups` command in a terminal window after
that and check if `docker` group is in its output.
- Install docker-compose (1.19.0 or newer). Compose is a tool for
defining and running multi-container docker applications.
```shell
sudo apt-get --no-install-recommends install -y python3-pip python3-setuptools
sudo python3 -m pip install setuptools docker-compose
```
- Clone _CVAT_ source code from the
[GitHub repository](https://github.com/opencv/cvat) with Git.
......@@ -90,7 +83,7 @@ For access from China, read [sources for users from China](#sources-for-users-fr
release and other required images like postgres, redis, etc. from DockerHub and create containers.
```shell
docker-compose up -d
docker compose up -d
```
- (Optional) Use `CVAT_VERSION` environment variable to specify the version of CVAT you want to
......@@ -98,7 +91,7 @@ For access from China, read [sources for users from China](#sources-for-users-fr
Default behavior: `dev` images will be pulled for develop branch,
and corresponding release images for release versions.
```shell
CVAT_VERSION=dev docker-compose up -d
CVAT_VERSION=dev docker compose up -d
```
- Alternative: if you want to build the images locally with unreleased changes
......@@ -170,7 +163,7 @@ For access from China, read [sources for users from China](#sources-for-users-fr
release and other required images like postgres, redis, etc. from DockerHub and create containers.
```shell
docker-compose up -d
docker compose up -d
```
- (Optional) Use `CVAT_VERSION` environment variable to specify the version of CVAT you want to
......@@ -178,7 +171,7 @@ For access from China, read [sources for users from China](#sources-for-users-fr
Default behavior: `dev` images will be pulled for develop branch,
and corresponding release images for release versions.
```shell
CVAT_VERSION=dev docker-compose up -d
CVAT_VERSION=dev docker compose up -d
```
- Alternative: if you want to build the images locally with unreleased changes
......@@ -252,7 +245,7 @@ For access from China, read [sources for users from China](#sources-for-users-fr
release and other required images like postgres, redis, etc. from DockerHub and create containers.
```shell
docker-compose up -d
docker compose up -d
```
- (Optional) Use `CVAT_VERSION` environment variable to specify the version of CVAT you want to
......@@ -260,7 +253,7 @@ For access from China, read [sources for users from China](#sources-for-users-fr
Default behavior: `dev` images will be pulled for develop branch,
and corresponding release images for release versions.
```shell
CVAT_VERSION=dev docker-compose up -d
CVAT_VERSION=dev docker compose up -d
```
- Alternative: if you want to build the images locally with unreleased changes
......@@ -423,7 +416,7 @@ if you want to keep the dashboard in production you should read Traefik's
```shell
# Build and run containers with Analytics component support:
docker-compose -f docker-compose.yml \
docker compose -f docker-compose.yml \
-f components/analytics/docker-compose.analytics.yml up -d --build
```
......@@ -436,7 +429,7 @@ Please follow this [guide](/docs/administration/advanced/installation_automatic_
The command below stops and removes containers and networks created by `up`.
```shell
docker-compose down
docker compose down
```
### Use your own domain
......@@ -523,7 +516,7 @@ export ACME_EMAIL=<YOUR_EMAIL>
Then, use the `docker-compose.https.yml` file to override the base `docker-compose.yml` file:
```shell
docker-compose -f docker-compose.yml -f docker-compose.https.yml up -d
docker compose -f docker-compose.yml -f docker-compose.https.yml up -d
```
> In firewall, ports 80 and 443 must be open for inbound connections from any
......@@ -545,21 +538,21 @@ Then, the CVAT instance will be available at your domain on ports 443 (HTTPS) an
prebuilt images from DockerHub using `CVAT_VERSION` environment variable to specify
the version (e.g. `dev`):
```shell
CVAT_VERSION=dev docker-compose pull
CVAT_VERSION=dev docker compose pull
```
- To build images yourself include `docker-compose.dev.yml` compose config file to `docker-compose` command.
- To build images yourself include `docker-compose.dev.yml` compose config file to `docker compose` command.
This can be useful if you want to build a CVAT with some source code changes.
```shell
docker-compose -f docker-compose.yml -f docker-compose.dev.yml build
docker compose -f docker-compose.yml -f docker-compose.dev.yml build
```
- To update local images to `latest` or `dev` tags run:
```shell
CVAT_VERSION=dev docker-compose pull
CVAT_VERSION=dev docker compose pull
```
or
```shell
CVAT_VERSION=latest docker-compose pull
CVAT_VERSION=latest docker compose pull
```
## Troubleshooting
......@@ -652,7 +645,7 @@ If the error is related to a firewall, then:
After `acme.json` is removed, stop all cvat docker containers:
```shell
docker-compose -f docker-compose.yml -f docker-compose.https.yml down
docker compose -f docker-compose.yml -f docker-compose.https.yml down
```
Make sure variables set (with your values):
......@@ -665,5 +658,5 @@ export ACME_EMAIL=<YOUR_EMAIL>
and restart docker:
```shell
docker-compose -f docker-compose.yml -f docker-compose.https.yml up -d
docker compose -f docker-compose.yml -f docker-compose.https.yml up -d
```
......@@ -44,7 +44,7 @@ To enable authentication, do the following:
2. In a terminal, run the following command:
```bash
docker-compose -f docker-compose.yml -f docker-compose.override.yml up -d
docker compose -f docker-compose.yml -f docker-compose.override.yml up -d
```
## Enable authentication with a Github account
......@@ -74,7 +74,7 @@ There are 2 basic steps to enable Github account authentication.
2. In a terminal, run the following command:
```bash
docker-compose -f docker-compose.yml -f docker-compose.override.yml up -d
docker compose -f docker-compose.yml -f docker-compose.override.yml up -d
```
> **Note:** You can also configure [Github App](https://docs.github.com/en/developers/apps/building-github-apps/creating-a-github-app),
......
......@@ -30,7 +30,7 @@ mkdir -p cvat-sdk/schema/ && python manage.py spectacular --file cvat-sdk/schema
If you want to use docker instead:
```bash
docker-compose -f docker-compose.yml -f docker-compose.dev.yml run \
docker compose -f docker-compose.yml -f docker-compose.dev.yml run \
--no-deps --entrypoint '/usr/bin/env python' --rm -u "$(id -u)":"$(id -g)" -v "$PWD":"/local" \
cvat_server \
manage.py spectacular --file /local/cvat-sdk/schema/schema.yml
......
......@@ -10,7 +10,7 @@ description: 'Instructions on how to run all existence tests.'
**Initial steps**:
1. Run CVAT instance:
```
docker-compose \
docker compose \
-f docker-compose.yml \
-f docker-compose.dev.yml \
-f components/serverless/docker-compose.serverless.yml \
......@@ -76,7 +76,7 @@ pytest ./tests/python --rebuild
**Debugging**
Currently, this is only supported in `docker-compose`-based deployments,
Currently, this is only supported in deployments based on Docker Compose,
which should be enough to fix errors arising in REST API tests.
To debug a server deployed with Docker, you need to do the following:
......@@ -132,7 +132,7 @@ Extra options:
```
1. Run CVAT instance
```
docker-compose -f docker-compose.yml -f docker-compose.dev.yml up -d
docker compose -f docker-compose.yml -f docker-compose.dev.yml up -d
```
**Running tests**
......
......@@ -54,11 +54,11 @@ To change the hostname, simply set the `CVAT_HOST` environemnt variable
```bash
export CVAT_HOST=<YOUR_HOSTNAME_OR_IP>
```
NOTE, if you're using `docker-compose` with `sudo` to run CVAT, then please add the `-E` (or `--preserve-env`)
NOTE, if you're using `docker compose` with `sudo` to run CVAT, then please add the `-E` (or `--preserve-env`)
flag to preserve the user environment variable which set above to take effect in your docker containers:
```bash
sudo -E docker-compose up -d
sudo -E docker compose up -d
```
If you want to change the default web application port, change the `ports` part of `traefik` service configuration
......
......@@ -59,17 +59,17 @@ the tutorial.
In the tutorial it is assumed that you already have the cloned
[CVAT GitHub repo][cvat-github].
To build CVAT with serverless support you need to run `docker-compose` command
To build CVAT with serverless support you need to run `docker compose` command
with specific configuration files. In the case it is `docker-compose.serverless.yml`.
It has necessary instructions how to build and deploy Nuclio platform as a
docker container and enable corresponding support in CVAT.
```bash
docker-compose -f docker-compose.yml -f docker-compose.dev.yml -f components/serverless/docker-compose.serverless.yml up -d --build
docker compose -f docker-compose.yml -f docker-compose.dev.yml -f components/serverless/docker-compose.serverless.yml up -d --build
```
```bash
docker-compose -f docker-compose.yml -f docker-compose.dev.yml -f components/serverless/docker-compose.serverless.yml ps
docker compose -f docker-compose.yml -f docker-compose.dev.yml -f components/serverless/docker-compose.serverless.yml ps
```
```
Name Command State Ports
......
......@@ -13,7 +13,7 @@ docker exec -it cvat_server bash -ic 'ls .ssh'
For example:
```bash
socks_proxy=proxy-example.com:1080 docker-compose build
socks_proxy=proxy-example.com:1080 docker compose build
```
- Try to clone a repository via SSH directly in the container by the command:
......
version: '3.3'
services:
cvat_server:
environment:
......
version: '3.3'
services:
cvat_worker_default:
volumes:
......
version: '3.3'
services:
minio:
image: quay.io/minio/minio:RELEASE.2022-09-17T00-09-45Z
......
version: '3.7'
services:
webhook_receiver:
image: python:3.9-slim
......
......@@ -234,7 +234,8 @@ def start_services(rebuild=False):
_run(
[
"docker-compose",
"docker",
"compose",
f"--project-name={PREFIX}",
# use compatibility mode to have fixed names for containers (with underscores)
# https://github.com/docker/compose#about-update-and-backward-compatibility
......@@ -286,7 +287,8 @@ def pytest_sessionstart(session):
if stop:
_run(
[
"docker-compose",
"docker",
"compose",
f"--project-name={PREFIX}",
# use compatibility mode to have fixed names for containers (with underscores)
# https://github.com/docker/compose#about-update-and-backward-compatibility
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册