@@ -28,8 +28,8 @@ import (
28
28
29
29
const ManifestCheckSum = "org.agntcy.wfsm.manifest"
30
30
const ServerPort = "8000/tcp"
31
- const ApiHost = "0.0.0.0"
32
- const ApiPort = "8000"
31
+ const APIHost = "0.0.0.0"
32
+ const APIPort = "8000"
33
33
34
34
func (r * runner ) Deploy (ctx context.Context , mainAgentName string , agentDeploymentSpecs map [string ]internal.AgentDeploymentBuildSpec , dependencies map [string ][]string , dryRun bool ) (internal.DeploymentArtifact , error ) {
35
35
log := zerolog .Ctx (ctx )
@@ -190,8 +190,8 @@ func (r *runner) createServiceConfig(projectName string, agentID string, apiKey
190
190
manifestPath := "/opt/storage/manifest.yaml"
191
191
envVars := deploymentSpec .EnvVars
192
192
envVars ["AGENT_MANIFEST_PATH" ] = manifestPath
193
- envVars ["API_HOST" ] = ApiHost
194
- envVars ["API_PORT" ] = ApiPort
193
+ envVars ["API_HOST" ] = APIHost
194
+ envVars ["API_PORT" ] = APIPort
195
195
envVars ["API_KEY" ] = apiKey
196
196
197
197
srcDeployment := deploymentSpec .Manifest .Deployment .DeploymentOptions [deploymentSpec .SelectedDeploymentOption ].SourceCodeDeployment
@@ -261,8 +261,6 @@ func getDockerCLI(ctx context.Context) (*command.DockerCli, error) {
261
261
return nil , fmt .Errorf ("failed to create docker cli: %v" , err )
262
262
}
263
263
clientOptions := flags.ClientOptions {
264
- Hosts : []string {"unix:///var/run/docker.sock" },
265
- //opts := &flags.ClientOptions{Hosts: []string{fmt.Sprintf("unix://%s", socket)}}
266
264
LogLevel : "debug" ,
267
265
TLS : false ,
268
266
TLSVerify : false ,
0 commit comments