Skip to content

Commit

Permalink
Rename shas service to version-reporter
Browse files Browse the repository at this point in the history
  • Loading branch information
JonJagger committed Nov 8, 2023
1 parent 7bd9d19 commit 9d0b353
Show file tree
Hide file tree
Showing 14 changed files with 17 additions and 16 deletions.
2 changes: 1 addition & 1 deletion app/docker-compose/.env
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ CYBER_DOJO_NGINX_PORT=80
CYBER_DOJO_REPLER_PORT=4657
CYBER_DOJO_RUNNER_PORT=4597
CYBER_DOJO_SAVER_PORT=4537
CYBER_DOJO_SHAS_PORT=4522
CYBER_DOJO_VERSION_REPORTER_PORT=4528
CYBER_DOJO_WEB_PORT=3000
4 changes: 2 additions & 2 deletions app/docker-compose/container-name.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,5 @@ services:
saver:
container_name: cyber_dojo_saver

shas:
container_name: cyber_dojo_shas
version-reporter:
container_name: cyber_dojo_version_reporter
2 changes: 1 addition & 1 deletion app/docker-compose/depends-on.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ services:
- differ
- runner
- saver
- shas
- version-reporter

dashboard:
depends_on:
Expand Down
2 changes: 1 addition & 1 deletion app/docker-compose/env-files.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,5 @@ services:
env_file: [ .env ]
saver:
env_file: [ .env ]
shas:
version-reporter:
env_file: [ .env ]
4 changes: 2 additions & 2 deletions app/docker-compose/images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,5 @@ services:
image: ${CYBER_DOJO_RUNNER_IMAGE}:${CYBER_DOJO_RUNNER_TAG}
saver:
image: ${CYBER_DOJO_SAVER_IMAGE}:${CYBER_DOJO_SAVER_TAG}
shas:
image: ${CYBER_DOJO_SHAS_IMAGE}:${CYBER_DOJO_SHAS_TAG}
version-reporter:
image: ${CYBER_DOJO_VERSION_REPORTER_IMAGE}:${CYBER_DOJO_VERSION_REPORTER_TAG}
2 changes: 1 addition & 1 deletion app/docker-compose/read_only.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,5 @@ services:
saver:
read_only: true

shas:
version-reporter:
read_only: true
2 changes: 1 addition & 1 deletion app/docker-compose/restart.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,5 @@ services:
saver:
restart: on-failure

shas:
version-reporter:
restart: on-failure
2 changes: 1 addition & 1 deletion app/docker-compose/swarm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ services:
memory: 32M
cpus: '0.5'

shas:
version-reporter:
deploy:
mode: global
restart_policy:
Expand Down
2 changes: 1 addition & 1 deletion app/docker-compose/tmp-fs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ services:
mode: 01777
size: 10485760 # 10MB

shas:
version-reporter:
volumes:
- type: tmpfs
target: /tmp
Expand Down
2 changes: 1 addition & 1 deletion app/docker-compose/user.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,5 @@ services:
saver:
user: saver

shas:
version-reporter:
user: nobody
2 changes: 1 addition & 1 deletion app/server/service_names.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ def service_names
nginx
runner
saver
shas
version-reporter
web
)
end
2 changes: 1 addition & 1 deletion test/sh/cyber_dojo_helpers.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ declare -a service_names=(
nginx
runner
saver
shas
version-reporter
web
)

Expand Down
3 changes: 2 additions & 1 deletion test/sh/test_060_up.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ test_____up_prints_start_points_and_port_and_creates_containers()
assertStdoutIncludes "Container cyber_dojo_languages_start_points Created"
for service in "${service_names[@]}"
do
assertStdoutIncludes "Container cyber_dojo_${service} Created"
service_underscore="$(echo $service | tr '-' '_')"
assertStdoutIncludes "Container cyber_dojo_${service_underscore} Created"
done
assertNoStderr

Expand Down
2 changes: 1 addition & 1 deletion test/sh/test_065_update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ test_____help_arg_prints_use()

# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

test_____updating_to_specific_version_causes_next_up_to_use_service_tags_embedded_in_that_version()
test_____updating_to_specific_version_causes_next_up_to_use_image_tags_embedded_in_that_version()
{
# cyberdojo/versioner:6da7a36 pulls cyberdojo/commander:35f653d
# but keep that pull out of stdout/stderr assertions
Expand Down

0 comments on commit 9d0b353

Please sign in to comment.