AWS ECS SonarQube Upgrade 8.9 to 9.9

Make sure to tell us:

  • What version are you upgrading from?
    from: dockerhub image sonarqube:8.9.9-developer
    to: dockerhub image sonarqube:9.9-developer

  • System information (Operating system, Java version, Database provider/version)
    AWS ECS on Fargate, running a sonarqube deployment using an official sonarqube image from dockerhub, AWS RDS running Postgres 13.10.

  • What’s the issue you’re facing?
    SonarQube container fails to start properly on the sonarqube:9.9-developer image from dockerhub. It starts up perfectly fine on 8.9 (when the image specified is sonarqube:8.9.9-developer). The same environment variables / etc are being used: SONAR_JDBC_URL, SONAR_JDBC_USERNAME, SONAR_JDBC_PASSWORD. Also is set to “”
    I get the following error from the ECS log

ERROR: [1] bootstrap checks failed. You must address the points described in the following [1] lines before starting Elasticsearch.
bootstrap check failure [1] of [1]: max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]`

What do you recommend to do to fix this? The container is running on AWS ECS on Fargate.

I figured out how to fix this- include a docker command in the ECS task definition:
Apparently the environment variable which worked in sonarqube 8.9 does not work in 9.9 and a docker command has to be used instead.