Skip to content

Commit

Permalink
GoLand Run Configurations (armadaproject#3287)
Browse files Browse the repository at this point in the history
  • Loading branch information
robertdavidsmith authored Jan 26, 2024
1 parent a468449 commit c0952a6
Show file tree
Hide file tree
Showing 46 changed files with 433 additions and 33 deletions.
12 changes: 12 additions & 0 deletions .run/Armada (Legacy Scheduler).run.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="Armada (Legacy Scheduler)" type="CompoundRunConfigurationType">
<toRun name="Event Ingester" type="GoApplicationRunConfiguration" />
<toRun name="Legacy Executor" type="GoApplicationRunConfiguration" />
<toRun name="Legacy Server" type="GoApplicationRunConfiguration" />
<toRun name="Lookout Ingester V2" type="GoApplicationRunConfiguration" />
<toRun name="LookoutV2" type="GoApplicationRunConfiguration" />
<toRun name="Scheduler" type="GoApplicationRunConfiguration" />
<toRun name="Scheduler Ingester" type="GoApplicationRunConfiguration" />
<method v="2" />
</configuration>
</component>
24 changes: 24 additions & 0 deletions .run/Armada (Pulsar Scheduler).run.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="Armada (Pulsar Scheduler)" type="CompoundRunConfigurationType">
<toRun name="Armada Infrastructure Services" type="docker-deploy" />
<toRun name="Event Ingester" type="GoApplicationRunConfiguration" />
<toRun name="Lookout Ingester V2" type="GoApplicationRunConfiguration" />
<toRun name="LookoutV2" type="GoApplicationRunConfiguration" />
<toRun name="Pulsar Executor" type="GoApplicationRunConfiguration" />
<toRun name="Pulsar Server" type="GoApplicationRunConfiguration" />
<toRun name="Scheduler" type="GoApplicationRunConfiguration" />
<toRun name="Scheduler Ingester" type="GoApplicationRunConfiguration" />
<toRun name="postgresPulsarMigration" type="GoApplicationRunConfiguration" />
<method v="2" />
</configuration>
<configuration default="false" name="Armada (Pulsar Scheduler)" type="CompoundRunConfigurationType">
<toRun name="Event Ingester" type="GoApplicationRunConfiguration" />
<toRun name="Lookout Ingester V2" type="GoApplicationRunConfiguration" />
<toRun name="LookoutV2" type="GoApplicationRunConfiguration" />
<toRun name="Pulsar Executor" type="GoApplicationRunConfiguration" />
<toRun name="Pulsar Server" type="GoApplicationRunConfiguration" />
<toRun name="Scheduler" type="GoApplicationRunConfiguration" />
<toRun name="Scheduler Ingester" type="GoApplicationRunConfiguration" />
<method v="2" />
</configuration>
</component>
19 changes: 19 additions & 0 deletions .run/Armada Infrastructure Services.run.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="Armada Infrastructure Services" type="docker-deploy" factoryName="docker-compose.yml" server-name="Docker">
<deployment type="docker-compose.yml">
<settings>
<option name="envFilePath" value="" />
<option name="services">
<list>
<option value="lookoutv2-postgres-migration" />
<option value="scheduler-migration" />
</list>
</option>
<option name="sourceFilePath" value="docker-compose.yaml" />
</settings>
</deployment>
<method v="2">
<option name="RunConfigurationTask" enabled="true" run_configuration_name="Armada Infrastructure Services" run_configuration_type="docker-deploy" />
</method>
</configuration>
</component>
1 change: 1 addition & 0 deletions .run/Basic Tests.run.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
<working_directory value="$PROJECT_DIR$" />
<parameters value="test --tests testsuite/testcases/basic/ingress.yaml" />
<kind value="FILE" />
<package value="github.com/armadaproject/armada" />
<directory value="$PROJECT_DIR$" />
<filePath value="$PROJECT_DIR$/cmd/testsuite/main.go" />
<method v="2" />
Expand Down
17 changes: 17 additions & 0 deletions .run/Create Kind Docker Network.run.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="Create Kind Docker Network" type="ShConfigurationType">
<option name="SCRIPT_TEXT" value="docker network create -d bridge kind || true" />
<option name="INDEPENDENT_SCRIPT_PATH" value="true" />
<option name="SCRIPT_PATH" value="" />
<option name="SCRIPT_OPTIONS" value="" />
<option name="INDEPENDENT_SCRIPT_WORKING_DIRECTORY" value="true" />
<option name="SCRIPT_WORKING_DIRECTORY" value="$PROJECT_DIR$" />
<option name="INDEPENDENT_INTERPRETER_PATH" value="true" />
<option name="INTERPRETER_PATH" value="/bin/bash" />
<option name="INTERPRETER_OPTIONS" value="" />
<option name="EXECUTE_IN_TERMINAL" value="true" />
<option name="EXECUTE_SCRIPT_FILE" value="false" />
<envs />
<method v="2" />
</configuration>
</component>
15 changes: 15 additions & 0 deletions .run/Event Ingester.run.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="Event Ingester" type="GoApplicationRunConfiguration" factoryName="Go Application">
<module name="armada" />
<working_directory value="$PROJECT_DIR$" />
<envs>
<env name="ARMADA_PULSAR_URL" value="pulsar://localhost:6650" />
<env name="ARMADA_REDIS_ADDRS" value="localhost:6379" />
</envs>
<kind value="FILE" />
<package value="github.com/armadaproject/armada" />
<directory value="$PROJECT_DIR$" />
<filePath value="$PROJECT_DIR$/cmd/eventingester/main.go" />
<method v="2" />
</configuration>
</component>
20 changes: 20 additions & 0 deletions .run/Infrastructure Services.run.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="Infrastructure Services" type="docker-deploy" factoryName="docker-compose.yml" server-name="Docker">
<deployment type="docker-compose.yml">
<settings>
<option name="envFilePath" value="" />
<option name="services">
<list>
<option value="redis" />
<option value="pulsar" />
<option value="postgres" />
</list>
</option>
<option name="sourceFilePath" value="docker-compose.yaml" />
</settings>
</deployment>
<method v="2">
<option name="RunConfigurationTask" enabled="true" run_configuration_name="Docker Create Kind Network" run_configuration_type="ShConfigurationType" />
</method>
</configuration>
</component>
19 changes: 19 additions & 0 deletions .run/Legacy Executor.run.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="Legacy Executor" type="GoApplicationRunConfiguration" factoryName="Go Application">
<module name="armada" />
<working_directory value="$PROJECT_DIR$" />
<envs>
<env name="ARMADA_APICONNECTION_ARMADAURL" value="&quot;localhost:50051&quot;" />
<env name="ARMADA_APICONNECTION_FORCENOTLS" value="true" />
<env name="ARMADA_APPLICATION_USELEGACYAPI" value="true" />
<env name="ARMADA_HTTPPORT" value="8085" />
<env name="KUBECONFIG" value="$PROJECT_DIR$/.kube/internal/config" />
</envs>
<pass_parent_env value="false" />
<kind value="FILE" />
<package value="github.com/armadaproject/armada" />
<directory value="$PROJECT_DIR$" />
<filePath value="$PROJECT_DIR$/cmd/executor/main.go" />
<method v="2" />
</configuration>
</component>
21 changes: 21 additions & 0 deletions .run/Legacy Server.run.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="Legacy Server" type="GoApplicationRunConfiguration" factoryName="Go Application">
<module name="armada" />
<working_directory value="$PROJECT_DIR$" />
<parameters value="--config ./developer/config/insecure-armada.yaml" />
<envs>
<env name="ARMADA_CORSALLOWEDORIGINS" value="&quot;http://localhost:3000,http://localhost:8089,http://localhost:10000,http://example.com:10000,http://example.com:8089&quot;" />
<env name="ARMADA_EVENTSAPIREDIS_ADDRS" value="localhost:6379" />
<env name="ARMADA_POSTGRES_CONNECTION_HOST" value="localhost" />
<env name="ARMADA_PULSAR_URL" value="pulsar://localhost:6650" />
<env name="ARMADA_REDIS_ADDRS" value="localhost:6379" />
<env name="ARMADA_SCHEDULERAPICONNECTION_ARMADAURL" value="localhost:50052" />
<env name="EXECUTOR_UPDATE_INTERVAL" value="&quot;1s&quot;" />
</envs>
<kind value="FILE" />
<package value="github.com/armadaproject/armada" />
<directory value="$PROJECT_DIR$" />
<filePath value="$PROJECT_DIR$/cmd/armada/main.go" />
<method v="2" />
</configuration>
</component>
18 changes: 18 additions & 0 deletions .run/Lookout Ingester V2.run.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="Lookout Ingester V2" type="GoApplicationRunConfiguration" factoryName="Go Application">
<module name="armada" />
<working_directory value="$PROJECT_DIR$" />
<envs>
<env name="ARMADA_METRICS_PORT" value="9006" />
<env name="ARMADA_POSTGRES_CONNECTION_DBNAME" value="postgresv2" />
<env name="ARMADA_POSTGRES_CONNECTION_HOST" value="localhost" />
<env name="ARMADA_POSTGRES_CONNECTION_PORT" value="5432" />
<env name="ARMADA_PULSAR_URL" value="pulsar://localhost:6650" />
</envs>
<kind value="FILE" />
<package value="$PROJECT_DIR$/cmd/lookoutv2/main.go" />
<directory value="$PROJECT_DIR$" />
<filePath value="$PROJECT_DIR$/cmd/lookoutingesterv2/main.go" />
<method v="2" />
</configuration>
</component>
17 changes: 17 additions & 0 deletions .run/LookoutV2 UI.run.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="LookoutV2 UI" type="ShConfigurationType">
<option name="SCRIPT_TEXT" value="" />
<option name="INDEPENDENT_SCRIPT_PATH" value="true" />
<option name="SCRIPT_PATH" value="$PROJECT_DIR$/internal/lookout/ui/development-setup-and-start.sh" />
<option name="SCRIPT_OPTIONS" value="$ARMADA_NPM_REGISTRY" />
<option name="INDEPENDENT_SCRIPT_WORKING_DIRECTORY" value="true" />
<option name="SCRIPT_WORKING_DIRECTORY" value="$PROJECT_DIR$/internal/lookout/ui/" />
<option name="INDEPENDENT_INTERPRETER_PATH" value="true" />
<option name="INTERPRETER_PATH" value="/bin/bash" />
<option name="INTERPRETER_OPTIONS" value="" />
<option name="EXECUTE_IN_TERMINAL" value="true" />
<option name="EXECUTE_SCRIPT_FILE" value="true" />
<envs />
<method v="2" />
</configuration>
</component>
17 changes: 17 additions & 0 deletions .run/LookoutV2.run.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="LookoutV2" type="GoApplicationRunConfiguration" factoryName="Go Application">
<module name="armada" />
<working_directory value="$PROJECT_DIR$" />
<envs>
<env name="ARMADA_CORSALLOWEDORIGINS" value="&quot;http://localhost:3000,http://localhost:8089,http://localhost:10000,http://example.com:10000,http://example.com:8089&quot;" />
<env name="ARMADA_POSTGRES_CONNECTION_DBNAME" value="postgresv2" />
<env name="ARMADA_POSTGRES_CONNECTION_HOST" value="localhost" />
<env name="ARMADA_POSTGRES_CONNECTION_PORT" value="5432" />
</envs>
<kind value="FILE" />
<package value="$PROJECT_DIR$/cmd/lookoutv2/main.go" />
<directory value="$PROJECT_DIR$" />
<filePath value="$PROJECT_DIR$/cmd/lookoutv2/main.go" />
<method v="2" />
</configuration>
</component>
22 changes: 22 additions & 0 deletions .run/Pulsar Executor.run.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="Pulsar Executor" type="GoApplicationRunConfiguration" factoryName="Go Application">
<module name="armada" />
<working_directory value="$PROJECT_DIR$" />
<envs>
<env name="ARMADA_APICONNECTION_FORCENOTLS" value="true" />
<env name="ARMADA_APPLICATION_USEEXECUTORAPI" value="true" />
<env name="ARMADA_APPLICATION_USELEGACYAPI" value="false" />
<env name="ARMADA_EXECUTORAPICONNECTION_ARMADAURL" value="localhost:50052" />
<env name="ARMADA_EXECUTORAPICONNECTION_FORCENOTLS" value="true" />
<env name="ARMADA_HTTPPORT" value="8085" />
<env name="HOME" value="$USER_HOME$/" />
<env name="KUBECONFIG" value="$PROJECT_DIR$/.kube/internal/config" />
</envs>
<pass_parent_env value="false" />
<kind value="FILE" />
<package value="github.com/armadaproject/armada" />
<directory value="$PROJECT_DIR$" />
<filePath value="$PROJECT_DIR$/cmd/executor/main.go" />
<method v="2" />
</configuration>
</component>
23 changes: 23 additions & 0 deletions .run/Pulsar Server.run.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="Pulsar Server" type="GoApplicationRunConfiguration" factoryName="Go Application">
<module name="armada" />
<working_directory value="$PROJECT_DIR$" />
<parameters value="--config ./developer/config/insecure-armada.yaml" />
<envs>
<env name="ARMADA_CORSALLOWEDORIGINS" value="&quot;http://localhost:3000,http://localhost:8089,http://localhost:10000,http://example.com:10000,http://example.com:8089&quot;" />
<env name="ARMADA_EVENTSAPIREDIS_ADDRS" value="localhost:6379" />
<env name="ARMADA_METRICSPORT" value="9005" />
<env name="ARMADA_POSTGRES_CONNECTION_HOST" value="localhost" />
<env name="ARMADA_PROBABILITYOFUSINGPULSARSCHEDULER" value="1" />
<env name="ARMADA_PULSAR_URL" value="pulsar://localhost:6650" />
<env name="ARMADA_PULSARSCHEDULERENABLED" value="true" />
<env name="ARMADA_REDIS_ADDRS" value="localhost:6379" />
<env name="EXECUTOR_UPDATE_INTERVAL" value="&quot;1s&quot;" />
</envs>
<kind value="FILE" />
<package value="github.com/armadaproject/armada" />
<directory value="$PROJECT_DIR$" />
<filePath value="$PROJECT_DIR$/cmd/armada/main.go" />
<method v="2" />
</configuration>
</component>
15 changes: 15 additions & 0 deletions .run/Scheduler Ingester.run.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="Scheduler Ingester" type="GoApplicationRunConfiguration" factoryName="Go Application">
<module name="armada" />
<working_directory value="$PROJECT_DIR$" />
<envs>
<env name="ARMADA_POSTGRES_CONNECTION_HOST" value="localhost" />
<env name="ARMADA_PULSAR_URL" value="pulsar://localhost:6650" />
</envs>
<kind value="FILE" />
<package value="github.com/armadaproject/armada" />
<directory value="$PROJECT_DIR$" />
<filePath value="$PROJECT_DIR$/cmd/scheduleringester/main.go" />
<method v="2" />
</configuration>
</component>
19 changes: 19 additions & 0 deletions .run/Scheduler.run.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="Scheduler" type="GoApplicationRunConfiguration" factoryName="Go Application">
<module name="armada" />
<working_directory value="$PROJECT_DIR$" />
<parameters value="run --config $PROJECT_DIR$/developer/config/insecure-armada.yaml" />
<envs>
<env name="ARMADA_HTTP_PORT" value="8084" />
<env name="ARMADA_METRICS_PORT" value="9004" />
<env name="ARMADA_POSTGRES_CONNECTION_HOST" value="localhost" />
<env name="ARMADA_PULSAR_URL" value="pulsar://localhost:6650" />
<env name="ARMADA_REDIS_ADDRS" value="localhost:6379" />
</envs>
<kind value="FILE" />
<package value="github.com/armadaproject/armada" />
<directory value="$PROJECT_DIR$" />
<filePath value="$PROJECT_DIR$/cmd/scheduler/main.go" />
<method v="2" />
</configuration>
</component>
18 changes: 18 additions & 0 deletions .run/lookoutv2PostgresMigration.run.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="lookoutv2PostgresMigration" type="GoApplicationRunConfiguration" factoryName="Go Application">
<module name="armada" />
<working_directory value="$PROJECT_DIR$" />
<parameters value="--migrateDatabase" />
<envs>
<env name="ARMADA_CORSALLOWEDORIGINS" value="&quot;http://localhost:3000,http://localhost:8089,http://localhost:10000,http://example.com:10000,http://example.com:8089&quot;" />
<env name="ARMADA_POSTGRES_CONNECTION_DBNAME" value="postgresv2" />
<env name="ARMADA_POSTGRES_CONNECTION_HOST" value="localhost" />
<env name="ARMADA_POSTGRES_CONNECTION_PORT" value="5432" />
</envs>
<kind value="FILE" />
<package value="$PROJECT_DIR$/cmd/lookoutv2/main.go" />
<directory value="$PROJECT_DIR$" />
<filePath value="$PROJECT_DIR$/cmd/lookoutv2/main.go" />
<method v="2" />
</configuration>
</component>
19 changes: 19 additions & 0 deletions .run/postgresPulsarMigration.run.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="postgresPulsarMigration" type="GoApplicationRunConfiguration" factoryName="Go Application">
<module name="armada" />
<working_directory value="$PROJECT_DIR$" />
<parameters value="migrateDatabase" />
<envs>
<env name="ARMADA_HTTP_PORT" value="8084" />
<env name="ARMADA_METRICS_PORT" value="9004" />
<env name="ARMADA_POSTGRES_CONNECTION_HOST" value="localhost" />
<env name="ARMADA_PULSAR_URL" value="pulsar://localhost:6650" />
<env name="ARMADA_REDIS_ADDRS" value="localhost:6379" />
</envs>
<kind value="FILE" />
<package value="github.com/armadaproject/armada" />
<directory value="$PROJECT_DIR$" />
<filePath value="$PROJECT_DIR$/cmd/scheduler/main.go" />
<method v="2" />
</configuration>
</component>
2 changes: 0 additions & 2 deletions developer/env/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,3 @@
This folder contains all the enviromental variables that are required to run.

If a component is not listed as a file here, it does not require any enviromental variables to run.

Note that [localhost_access](./localhost_access.env) is a special case for running the components outside of docker.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
ARMADA_APICONNECTION_FORCENOTLS=true
ARMADA_APPLICATION_USEEXECUTORAPI=true
ARMADA_APPLICATION_USELEGACYAPI=false
ARMADA_EXECUTORAPICONNECTION_ARMADAURL="scheduler:50052"
Expand Down
2 changes: 2 additions & 0 deletions developer/env/docker/executor.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
ARMADA_APICONNECTION_FORCENOTLS=true
ARMADA_APICONNECTION_ARMADAURL="server:50051"
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ ARMADA_POSTGRES_CONNECTION_DBNAME=postgresv2
ARMADA_POSTGRES_CONNECTION_PORT=5432
ARMADA_CORSALLOWEDORIGINS="http://localhost:3000,http://localhost:10000,http://localhost:8082,http://example.com:10000"
ARMADA_UICONFIG_ARMADAAPIBASEURL="http://localhost:8080"
ARMADA_UICONFIG_BINOCULARSBASEURLPATTERN="http://localhost:8082"
ARMADA_UICONFIG_BINOCULARSBASEURLPATTERN="http://localhost:8082"
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 2 additions & 0 deletions developer/env/docker/server.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
EXECUTOR_UPDATE_INTERVAL="1s"
ARMADA_CORSALLOWEDORIGINS=="http://localhost:3000,http://localhost:10000,http://example.com:10000"
1 change: 0 additions & 1 deletion developer/env/executor-legacy.env

This file was deleted.

1 change: 1 addition & 0 deletions developer/env/local/binoculars.env
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ARMADA_CORSALLOWEDORIGINS="http://localhost:3000,http://localhost:8089,http://example.com:8089"
2 changes: 2 additions & 0 deletions developer/env/local/eventingester.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
ARMADA_REDIS_ADDRS=localhost:6379
ARMADA_PULSAR_URL=pulsar://localhost:6650
8 changes: 8 additions & 0 deletions developer/env/local/executor-pulsar.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
ARMADA_APICONNECTION_FORCENOTLS=true
ARMADA_APPLICATION_USEEXECUTORAPI=true
ARMADA_APPLICATION_USELEGACYAPI=false
ARMADA_EXECUTORAPICONNECTION_ARMADAURL="localhost:50052"
ARMADA_EXECUTORAPICONNECTION_FORCENOTLS=true
ARMADA_HTTPPORT=8085
HOME=/home/admin
KUBECONFIG=.kube/config
Loading

0 comments on commit c0952a6

Please sign in to comment.