From 20064b07154bc1411f2b5745dd5b98120b7dc1ec Mon Sep 17 00:00:00 2001 From: Sebastian Serth Date: Fri, 29 Oct 2021 22:32:55 +0200 Subject: [PATCH] DockerClient: Cleanup usage of config --- lib/docker_client.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/docker_client.rb b/lib/docker_client.rb index b134fa1e..af8667f3 100644 --- a/lib/docker_client.rb +++ b/lib/docker_client.rb @@ -55,7 +55,6 @@ class DockerClient { 'Image' => find_image_by_tag(execution_environment.docker_image).info['RepoTags'].first, 'NetworkDisabled' => !execution_environment.network_enabled?, - # DockerClient.config['allowed_cpus'] 'OpenStdin' => true, 'StdinOnce' => true, # required to expose standard streams over websocket @@ -83,7 +82,7 @@ class DockerClient # Headers are required by Docker headers = {'Origin' => 'http://localhost'} - socket_url = "#{DockerClient.config['ws_host']}/v1.27/containers/#{@container.id}/attach/ws?#{query_params}" + socket_url = "#{self.class.config['ws_host']}/v1.27/containers/#{@container.id}/attach/ws?#{query_params}" # The ping value is measured in seconds and specifies how often a Ping frame should be sent. # Internally, Faye::WebSocket uses EventMachine and the ping value is used to wake the EventMachine thread socket = Faye::WebSocket::Client.new(socket_url, [], headers: headers, ping: 0.1)