Skip to content

Commit

Permalink
Merge pull request #8445 from madhavajay/madhava/docker_profiles
Browse files Browse the repository at this point in the history
Fixing bug docker profiles array items[0,1] must be unique
  • Loading branch information
madhavajay authored Feb 5, 2024
2 parents a081a2d + e102e60 commit 8322031
Show file tree
Hide file tree
Showing 6 changed files with 1 addition and 45 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/container-scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ jobs:
python3 -m pip install ./packages/syft
python3 -m pip install cyclonedx-bom
python3 -m pip freeze > requirements.txt
cyclonedx-py --r -i requirements.txt --format json -o syft.sbom.json
cyclonedx-py requirements -o syft.sbom.json
#Trivy scan SBOM
- name: Run Trivy vulnerability scanner
Expand Down
8 changes: 0 additions & 8 deletions packages/grid/docker-compose.build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,30 +5,22 @@ services:
context: ${RELATIVE_PATH}./frontend
dockerfile: frontend.dockerfile
target: "${FRONTEND_TARGET:-grid-ui-development}"
profiles:
- frontend

backend:
build:
context: ${RELATIVE_PATH}../
dockerfile: ./grid/backend/backend.dockerfile
target: "backend"
profiles:
- backend

seaweedfs:
build:
context: ${RELATIVE_PATH}./seaweedfs
dockerfile: seaweedfs.dockerfile
args:
- SEAWEEDFS_VERSION=${SEAWEEDFS_VERSION}
profiles:
- blob-storage

worker:
build:
context: ${RELATIVE_PATH}../
dockerfile: ./grid/backend/backend.dockerfile
target: "backend"
profiles:
- worker
14 changes: 0 additions & 14 deletions packages/grid/docker-compose.dev.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,13 @@
version: "3.8"
services:
proxy:
profiles:
- proxy
ports:
- "8080"
extra_hosts:
- host.docker.internal:host-gateway
command:
- "--api" # admin panel
- "--api.insecure=true" # admin panel no password

frontend:
profiles:
- frontend
volumes:
- ${RELATIVE_PATH}./frontend/src:/app/src
- ${RELATIVE_PATH}./frontend/static:/app/static
Expand All @@ -34,14 +28,10 @@ services:
# # - "5672" # AMQP port

mongo:
profiles:
- mongo
ports:
- "27017"

backend:
profiles:
- backend
volumes:
- ${RELATIVE_PATH}./backend/grid:/root/app/grid
- ${RELATIVE_PATH}../syft:/root/app/syft
Expand All @@ -52,8 +42,6 @@ services:
tty: true

worker:
profiles:
- worker
volumes:
- ${RELATIVE_PATH}./backend/grid:/root/app/grid
- ${RELATIVE_PATH}../syft:/root/app/syft
Expand Down Expand Up @@ -81,8 +69,6 @@ services:
# - DEV_MODE=True

seaweedfs:
profiles:
- blob-storage
volumes:
- ./data/seaweedfs:/data
ports:
Expand Down
10 changes: 0 additions & 10 deletions packages/grid/docker-compose.pull.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,29 +8,19 @@ services:

seaweedfs:
image: "${DOCKER_IMAGE_SEAWEEDFS?Variable not set}:${VERSION-latest}"
profiles:
- blob-storage

# docker-host:
# image: qoomon/docker-host

proxy:
image: ${DOCKER_IMAGE_TRAEFIK?Variable not set}:${TRAEFIK_VERSION?Variable not set}
profiles:
- proxy

mongo:
image: "${MONGO_IMAGE}:${MONGO_VERSION}"
profiles:
- mongo

jaeger:
image: jaegertracing/all-in-one:1.37
profiles:
- telemetry

# Temporary fix until we refactor pull, build, launch UI step during hagrid launch
worker:
image: "${DOCKER_IMAGE_BACKEND?Variable not set}:${VERSION-latest}"
profiles:
- worker
10 changes: 0 additions & 10 deletions packages/grid/docker-compose.test.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
version: "3.8"
services:
proxy:
profiles:
- proxy
ports:
- "8080"
extra_hosts:
- host.docker.internal:host-gateway

# redis:
# ports:
Expand All @@ -19,22 +15,16 @@ services:
# - "15672"

seaweedfs:
profiles:
- blob-storage
ports:
- "9333" # admin
- "8888" # filer
- "8333" # S3

backend:
profiles:
- backend
environment:
- TEST_MODE=1

worker:
profiles:
- worker
environment:
- TEST_MODE=1

Expand Down
2 changes: 0 additions & 2 deletions packages/grid/docker-compose.tls.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
version: "3.8"
services:
proxy:
profiles:
- proxy
ports:
- "${HTTPS_PORT}:${HTTPS_PORT}"
environment:
Expand Down

0 comments on commit 8322031

Please sign in to comment.