diff --git a/.github/workflows/docker-compose-test.yml b/.github/workflows/docker-compose-test.yml index 37b2a4b9..134ba5ee 100644 --- a/.github/workflows/docker-compose-test.yml +++ b/.github/workflows/docker-compose-test.yml @@ -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 diff --git a/jetson_runtime/docker-compose.yml b/jetson_runtime/docker-compose.yml index bfdfb387..43758b34 100644 --- a/jetson_runtime/docker-compose.yml +++ b/jetson_runtime/docker-compose.yml @@ -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