Update `compose-start-script.template` to make compatible with new version docker compose (#348)

This commit is contained in:
pg.yang 2022-10-16 20:27:08 +08:00 committed by GitHub
parent 02fc1aee94
commit d0b3eca4ee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 1 deletions

View File

@ -13,6 +13,7 @@ Release Notes.
* Update guava-cache, jedis, memcached, ehcache plugins to adopt uniform tags.
* Fix `Apache ShenYu` plugin traceId empty string value.
* Add plugin to support [brpc-java-3.x](https://github.com/baidu/starlight/tree/brpc-java-v3)
* Update `compose-start-script.template` to make compatible with new version docker compose
#### Documentation

View File

@ -14,7 +14,12 @@
~ See the License for the specific language governing permissions and
~ limitations under the License.
-->
<#--
The latest docker compose use "-" as separator rather than '_' when generating container name
Use COMPOSE_COMPATIBILITY env to keep compatibility
Refer to https://github.com/docker/compose/commit/150fd4b8cfa39726e68c12fc0fd45ac4e0f20c5f
-->
export COMPOSE_COMPATIBILITY=1
compose_file="${docker_compose_file}"
project_name=$(echo "${build_id}" |sed -e "s/\.//g" |awk '{print tolower($0)}')
docker_container_name="${docker_container_name}_1"