Skip to content

Commit

Permalink
Replace docker-compose with docker compose
Browse files Browse the repository at this point in the history
  • Loading branch information
JonJagger committed May 22, 2024
1 parent 0bf7494 commit d743cff
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:

jobs:
pre-build:
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

Expand Down
10 changes: 5 additions & 5 deletions app/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ RUN set -x && \
apk del --purge .deps

# Required for docker-compose to find zlib.
ENV LD_LIBRARY_PATH=/lib:/usr/lib
#ENV LD_LIBRARY_PATH=/lib:/usr/lib

RUN VERSION=v2.27.0 && \
DOCKER_COMPOSE_URL=https://github.com/docker/compose/releases/download/${VERSION}/docker-compose-linux-x86_64 && \
wget -q -O /usr/local/bin/docker-compose ${DOCKER_COMPOSE_URL} && \
chmod a+rx /usr/local/bin/docker-compose
#RUN VERSION=v2.27.0 && \
# DOCKER_COMPOSE_URL=https://github.com/docker/compose/releases/download/${VERSION}/docker-compose-linux-x86_64 && \
# wget -q -O /usr/local/bin/docker-compose ${DOCKER_COMPOSE_URL} && \
# chmod a+rx /usr/local/bin/docker-compose

# - - - - - - - - - - - - - - - - - - - - - -
# install commander source
Expand Down
4 changes: 2 additions & 2 deletions app/server/down.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ def cyber_dojo_server_down
if docker_swarm?
system("docker stack down cyber-dojo")
else
# A successful [docker-compose ... down] writes to stderr !?
# A successful [docker compose ... down] writes to stderr !?
# See https://github.com/docker/compose/issues/3267
system(down_env_vars, "docker-compose #{docker_yml_files} down --remove-orphans 2>&1")
system(down_env_vars, "docker compose #{docker_yml_files} down --remove-orphans 2>&1")
end
end

Expand Down
4 changes: 2 additions & 2 deletions app/server/up.rb
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ def cyber_dojo_server_up
command = "docker stack up #{docker_swarm_yml_files} cyber-dojo"
system(env_vars, command)
else
command = "docker-compose #{docker_yml_files} up -d --remove-orphans"
command = "docker compose #{docker_yml_files} up -d --remove-orphans"
system(env_vars, "#{command} 2>&1")
# A successful [docker-compose ... up] writes to stderr !?
# A successful [docker compose ... up] writes to stderr !?
# See https://github.com/docker/compose/issues/3267
end
end
Expand Down

0 comments on commit d743cff

Please sign in to comment.