Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
117 changed files
with
16,391 additions
and
10,767 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
name: Docker Compose CI Test | ||
on: | ||
pull_request: | ||
branches: | ||
- master | ||
types: [ labeled ] | ||
paths: | ||
- '**docker-compose.yaml' | ||
|
||
jobs: | ||
Docker-Compose-Test: | ||
if: github.event.label.name == 'docker-compose' | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@master | ||
- name: Setup Python3.7 | ||
uses: actions/setup-python@master | ||
with: | ||
python-version: 3.7 | ||
- name: Install pip packeages | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install pytest | ||
pip install gdown | ||
- name: Get all added and modified files as CSV | ||
id: files | ||
uses: Ana06/get-changed-files@v2.0.0 | ||
with: | ||
format: 'csv' | ||
- name: Run test with docker-compose | ||
run: | | ||
mapfile -d ',' -t added_modified_files < <(printf '%s,' '${{ steps.files.outputs.added_modified }}') | ||
for added_modified_file in "${added_modified_files[@]}"; do | ||
if [[ ${added_modified_file} = *docker-compose.yaml ]]; then | ||
mkdir -p `dirname ${added_modified_file}`/data | ||
docker-compose -f ${added_modified_file} up -d | ||
cd `dirname ${added_modified_file}` | ||
pip install -r server/requirements.txt | ||
python -m pytest test_docker_compose.py | ||
fi | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
107 changes: 107 additions & 0 deletions
107
solutions/audio_similarity_search/quick_deploy/audiosearch-docker-compose.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,107 @@ | ||
version: '3.5' | ||
|
||
services: | ||
etcd: | ||
container_name: milvus-etcd | ||
image: quay.io/coreos/etcd:v3.5.0 | ||
networks: | ||
app_net: | ||
environment: | ||
- ETCD_AUTO_COMPACTION_MODE=revision | ||
- ETCD_AUTO_COMPACTION_RETENTION=1000 | ||
- ETCD_QUOTA_BACKEND_BYTES=4294967296 | ||
volumes: | ||
- ${DOCKER_VOLUME_DIRECTORY:-.}/volumes/etcd:/etcd | ||
command: etcd -advertise-client-urls=http://127.0.0.1:2379 -listen-client-urls http://0.0.0.0:2379 --data-dir /etcd | ||
|
||
minio: | ||
container_name: milvus-minio | ||
image: minio/minio:RELEASE.2020-12-03T00-03-10Z | ||
networks: | ||
app_net: | ||
environment: | ||
MINIO_ACCESS_KEY: minioadmin | ||
MINIO_SECRET_KEY: minioadmin | ||
volumes: | ||
- ${DOCKER_VOLUME_DIRECTORY:-.}/volumes/minio:/minio_data | ||
command: minio server /minio_data | ||
healthcheck: | ||
test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"] | ||
interval: 30s | ||
timeout: 20s | ||
retries: 3 | ||
|
||
standalone: | ||
container_name: milvus-standalone | ||
image: milvusdb/milvus:v2.0.0-rc8-20211104-d1f4106 | ||
networks: | ||
app_net: | ||
ipv4_address: 172.16.23.10 | ||
command: ["milvus", "run", "standalone"] | ||
environment: | ||
ETCD_ENDPOINTS: etcd:2379 | ||
MINIO_ADDRESS: minio:9000 | ||
volumes: | ||
- ${DOCKER_VOLUME_DIRECTORY:-.}/volumes/milvus:/var/lib/milvus | ||
ports: | ||
- "19530:19530" | ||
depends_on: | ||
- "etcd" | ||
- "minio" | ||
|
||
|
||
mysql: | ||
container_name: audio-mysql | ||
image: mysql:5.7 | ||
networks: | ||
app_net: | ||
ipv4_address: 172.16.23.11 | ||
environment: | ||
- MYSQL_ROOT_PASSWORD=123456 | ||
volumes: | ||
- ${DOCKER_VOLUME_DIRECTORY:-.}/volumes/mysql:/var/lib/mysql | ||
ports: | ||
- "3306:3306" | ||
|
||
webserver: | ||
container_name: audio-webserver | ||
image: milvusbootcamp/audio-search-server:2.0 | ||
networks: | ||
app_net: | ||
ipv4_address: 172.16.23.12 | ||
environment: | ||
MILVUS_HOST: '172.16.23.10' | ||
MYSQL_HOST: '172.16.23.11' | ||
volumes: | ||
- ./data:/audio_data | ||
restart: always | ||
depends_on: | ||
- standalone | ||
- mysql | ||
ports: | ||
- "8002:8002" | ||
|
||
webclient: | ||
container_name: audio-webclient | ||
image: milvusbootcamp/audio-search-client:2.0 | ||
networks: | ||
app_net: | ||
ipv4_address: 172.16.23.13 | ||
environment: | ||
API_URL: 'http://127.0.0.1:8002' | ||
ports: | ||
- "801:80" | ||
healthcheck: | ||
test: ["CMD", "curl", "-f", "http://localhost/"] | ||
interval: 30s | ||
timeout: 20s | ||
retries: 3 | ||
|
||
networks: | ||
app_net: | ||
driver: bridge | ||
ipam: | ||
driver: default | ||
config: | ||
- subnet: 172.16.23.0/24 | ||
gateway: 172.16.23.1 |
Oops, something went wrong.