Skip to content

Commit

Permalink
enforce docker-compose compatibility mode
Browse files Browse the repository at this point in the history
New docker-compose versions use dashes ('-') instead of underscores
('_') to construct container names. Setting the environment-variable
COMPOSE_COMPATIBILITY=true should enforce the old behaviour for some
transition time.
  • Loading branch information
fbroda committed Feb 23, 2024
1 parent 0563a1b commit d619df2
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 0 deletions.
7 changes: 7 additions & 0 deletions util/bin/configure.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,13 @@
#
#==========================================================
#
#
# temporarily enforce compatibility mode of docker-compose
# as long as we are in transition from docker-compose v1
# (Python) to v2 (Go)
#
export COMPOSE_COMPATIBILITY=true

# The variables LBAC_DISTRIBUTION_POINT and CLOUD_NAME are
# adjusted by the upload.sh script, which takes the actual
# values from the CA configuration.
Expand Down
7 changes: 7 additions & 0 deletions util/bin/lbacInit.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,13 @@
# limitations under the License.
#
#==========================================================
#
# temporarily enforce compatibility mode of docker-compose
# as long as we are in transition from docker-compose v1
# (Python) to v2 (Go)
#
export COMPOSE_COMPATIBILITY=true

#
max_repeat=8
compose="dist_"
Expand Down
7 changes: 7 additions & 0 deletions util/bin/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,13 @@
#
#
#==========================================================
#
# temporarily enforce compatibility mode of docker-compose
# as long as we are in transition from docker-compose v1
# (Python) to v2 (Go)
#
export COMPOSE_COMPATIBILITY=true

#
LBAC_EXPECTED_CONFIG_VERSION=8
LBAC_CONFIG=etc/config.sh
Expand Down
7 changes: 7 additions & 0 deletions util/bin/update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,13 @@
#
#
#==========================================================
#
# temporarily enforce compatibility mode of docker-compose
# as long as we are in transition from docker-compose v1
# (Python) to v2 (Go)
#
export COMPOSE_COMPATIBILITY=true

#
LBAC_ADMIN_PWFILE=admin.passwd
BACKUP_AGE=4
Expand Down

0 comments on commit d619df2

Please sign in to comment.