dosubot[bot] commented on issue #7512: URL: https://github.com/apache/incubator-devlake/issues/7512#issuecomment-2132571009
<!-- Greeting --> Hey @chrisolido! I'm here to help you with any issues you're facing. I'm a bot that can assist you with bug fixes, answer questions, and guide you to become a contributor. Let's take a look at the issue you've encountered. <!-- Answer --> To resolve the error "failed to parse platform : "" is an invalid component of """ when trying to build the 'devlake' service using Docker Compose on an Amazon Linux 2 EC2 instance, you should ensure that the `platform` specification is correctly set or removed if not necessary. Here is the corrected `docker-compose.yml` based on the latest version from Apache DevLake: ```yml version: "3" services: mysql: image: mysql:8.0.26 volumes: - mysql-storage:/var/lib/mysql restart: always ports: - 127.0.0.1:3306:3306 environment: MYSQL_ROOT_PASSWORD: admin MYSQL_DATABASE: lake MYSQL_USER: merico MYSQL_PASSWORD: merico grafana: image: apache/devlake-dashboard:v0.12.0 ports: - 3002:3000 volumes: - grafana-storage:/var/lib/grafana environment: GF_SERVER_ROOT_URL: "http://localhost:4000/grafana" MYSQL_URL: mysql:3306 MYSQL_DATABASE: lake MYSQL_USER: merico MYSQL_PASSWORD: merico restart: always depends_on: - mysql devlake: image: apache/devlake:v0.12.0 ports: - 127.0.0.1:8080:8080 restart: always volumes: - ./.env:/app/.env depends_on: - mysql config-ui: image: apache/devlake-config-ui:v0.12.0 ports: - 127.0.0.1:4000:4000 env_file: - ./.env environment: DEVLAKE_ENDPOINT: devlake:8080 GRAFANA_ENDPOINT: grafana:3000 depends_on: - devlake volumes: mysql-storage: grafana-storage: ``` By removing the `platform: linux/x86_64` line from the `mysql` service, you should be able to avoid the parsing error. Additionally, ensure that your Dockerfile handles different platforms correctly <sup>[[1]](https://github.com/apache/incubator-devlake/blob/main/devops/releases/lake-v0.10.0-beta1/docker-compose.yml)</sup><sup>[[2]](https://github.com/apache/incubator-devlake/blob/main/devops/releases/lake-v0.10.0/docker-compose.yml)</sup><sup>[[3]](https://github.com/apache/incubator-devlake/blob/main/devops/releases/lake-v0.8.0/docker-compose.yml)</sup><sup>[[4]](https://github.com/apache/incubator-devlake/blob/main/backend/Dockerfile)</sup><sup>[[5]](https://github.com/apache/incubator-devlake/blob/main/devops/releases/lake-v0.12.0/docker-compose.yml)</sup>. <!-- Dosu Comment Footer --> <details open> <summary> #### Details </summary> **About Dosu** This response is meant to be useful and save you time. It is **not meant to be a precise solution**, but rather a starting point for your own research. Help me be more useful! Please leave a 👍 if this is helpful and 👎 if it is irrelevant. </details> *To continue the conversation, mention @dosu.* -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: dev-unsubscr...@devlake.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org