Skip to content

Commit 8842739

Browse files
committed
Add debug
1 parent 54151e7 commit 8842739

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

bin/docker-entrypoint

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ if [ "${1}" == "./bin/rails" ] && [ "${2}" == "server" ]; then
1010
orchestrator:await_healthy[redis,5] \
1111
orchestrator:connect_self
1212

13-
bundle exec orchestrator:debug
13+
bundle exec rake orchestrator:debug
1414

1515
# create connection environment variables
1616
eval $(bundle exec rake orchestrator:create_connection_environment[postgresql,redis])

lib/sagittarius/orchestrator/operator.rb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,10 @@ def ensure_network!
4747
def network
4848
network_id = Docker::Network.all(filters: JSON.dump(
4949
{ 'label' => ["#{ORCHESTRATOR_LABEL_PREFIX}=network"] }
50-
)).first.id
50+
)).first&.id
51+
52+
return nil if network_id.nil?
53+
5154
Docker::Network.get(network_id)
5255
end
5356

0 commit comments

Comments
 (0)