Skip to content

Commit

Permalink
feat<test> install docker buildx compose
Browse files Browse the repository at this point in the history
  • Loading branch information
Ahelsamahy committed Oct 11, 2024
1 parent df172f1 commit 49fc5f6
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 5 deletions.
21 changes: 18 additions & 3 deletions .github/workflows/docker-compose-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,25 +13,40 @@ jobs:
- name: Check out repository
uses: actions/checkout@v2

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

- name: Install Docker Compose
run: |
sudo apt-get update
sudo apt-get install -y docker-compose
- name: Docker compose build
run: |
cd jetson_runtime
docker-compose build
docker-compose build
- name: Docker compose up
run: |
cd jetson_runtime
docker-compose up -d
docker-compose up -d
sleep 30
docker-compose down
Pi_Docker:
runs-on: ubuntu-20.04

steps:
- name: Check out repository
uses: actions/checkout@v2

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

- name: Install Docker Compose
run: |
sudo apt-get update
sudo apt-get install -y docker-compose
- name: Docker compose build (raspi)
run: |
cd pi4_runtime
Expand Down
4 changes: 2 additions & 2 deletions jetson_runtime/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,14 +65,14 @@ services:
cpuset: '0'
build:
context: .
dockerfile: mongodb/Dockerfile
dockerfile: mongodb/Dockerfile
restart: always
command: ['python3', 'wrap.py']
network_mode: host
stop_signal: SIGKILL
environment:
MONGO_INITDB_ROOT_USERNAME: admin
MONGO_INITDB_ROOT_PASSWORD: robot
MONGO_INITDB_ROOT_PASSWORD: robot
volumes:
- volume_mongodb_config:/config:rw
- volume_mongodb_data:/data/db:rw
Expand Down

0 comments on commit 49fc5f6

Please sign in to comment.