Skip to content

Commit

Permalink
make pulumi pull from main
Browse files Browse the repository at this point in the history
  • Loading branch information
rchan26 committed Jun 13, 2024
1 parent 72228d6 commit cf48e58
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 21 deletions.
28 changes: 14 additions & 14 deletions azure/hack_week/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,23 +168,23 @@
),
containerinstance.EnvironmentVariableArgs(
name="LLAMA_INDEX_MAX_INPUT_SIZE",
value=DEFAULT_ARGS["max_input_size"],
value=str(DEFAULT_ARGS["max_input_size"]),
),
containerinstance.EnvironmentVariableArgs(
name="LLAMA_INDEX_K",
value=DEFAULT_ARGS["k"],
value=str(DEFAULT_ARGS["k"]),
),
containerinstance.EnvironmentVariableArgs(
name="LLAMA_INDEX_CHUNK_SIZE",
value=DEFAULT_ARGS["chunk_size"],
value=str(DEFAULT_ARGS["chunk_size"]),
),
containerinstance.EnvironmentVariableArgs(
name="LLAMA_INDEX_CHUNK_OVERLAP_RATIO",
value=DEFAULT_ARGS["chunk_overlap_ratio"],
value=str(DEFAULT_ARGS["chunk_overlap_ratio"]),
),
containerinstance.EnvironmentVariableArgs(
name="LLAMA_INDEX_NUM_OUTPUT",
value=DEFAULT_ARGS["num_output"],
value=str(DEFAULT_ARGS["num_output"]),
),
containerinstance.EnvironmentVariableArgs(
name="OPENAI_AZURE_API_BASE",
Expand All @@ -206,8 +206,8 @@
ports=[],
resources=containerinstance.ResourceRequirementsArgs(
requests=containerinstance.ResourceRequestsArgs(
cpu=1,
memory_in_gb=12,
cpu=3,
memory_in_gb=14,
),
),
volume_mounts=[
Expand Down Expand Up @@ -255,30 +255,30 @@
),
containerinstance.EnvironmentVariableArgs(
name="LLAMA_INDEX_MAX_INPUT_SIZE",
value=DEFAULT_ARGS["max_input_size"],
value=str(DEFAULT_ARGS["max_input_size"]),
),
containerinstance.EnvironmentVariableArgs(
name="LLAMA_INDEX_K",
value=DEFAULT_ARGS["k"],
value=str(DEFAULT_ARGS["k"]),
),
containerinstance.EnvironmentVariableArgs(
name="LLAMA_INDEX_CHUNK_SIZE",
value=DEFAULT_ARGS["chunk_size"],
value=str(DEFAULT_ARGS["chunk_size"]),
),
containerinstance.EnvironmentVariableArgs(
name="LLAMA_INDEX_CHUNK_OVERLAP_RATIO",
value=DEFAULT_ARGS["chunk_overlap_ratio"],
value=str(DEFAULT_ARGS["chunk_overlap_ratio"]),
),
containerinstance.EnvironmentVariableArgs(
name="LLAMA_INDEX_NUM_OUTPUT",
value=DEFAULT_ARGS["num_output"],
value=str(DEFAULT_ARGS["num_output"]),
),
],
ports=[],
resources=containerinstance.ResourceRequirementsArgs(
requests=containerinstance.ResourceRequestsArgs(
cpu=4,
memory_in_gb=16,
cpu=1,
memory_in_gb=8,
),
),
volume_mounts=[
Expand Down
14 changes: 7 additions & 7 deletions azure/production/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@
containers=[
# api-bot container
containerinstance.ContainerArgs(
image="ghcr.io/alan-turing-institute/reginald_slackbot:pulumi-reg-2pt0-update",
image="ghcr.io/alan-turing-institute/reginald_slackbot:main",
name="reginald-production", # maximum of 63 characters
environment_variables=[
containerinstance.EnvironmentVariableArgs(
Expand Down Expand Up @@ -143,7 +143,7 @@
containers=[
# all_data index creation container
containerinstance.ContainerArgs(
image="ghcr.io/alan-turing-institute/reginald_create_index:pulumi-reg-2pt0-update",
image="ghcr.io/alan-turing-institute/reginald_create_index:main",
name="reginald-create-index-all-data", # maximum of 63 characters
environment_variables=[
containerinstance.EnvironmentVariableArgs(
Expand Down Expand Up @@ -179,7 +179,7 @@
resources=containerinstance.ResourceRequirementsArgs(
requests=containerinstance.ResourceRequestsArgs(
cpu=2,
memory_in_gb=8,
memory_in_gb=6,
),
),
volume_mounts=[
Expand All @@ -191,7 +191,7 @@
),
# reg index creation container
containerinstance.ContainerArgs(
image="ghcr.io/alan-turing-institute/reginald_create_index:pulumi-reg-2pt0-update",
image="ghcr.io/alan-turing-institute/reginald_create_index:main",
name="reginald-create-index-reg", # maximum of 63 characters
environment_variables=[
containerinstance.EnvironmentVariableArgs(
Expand Down Expand Up @@ -227,7 +227,7 @@
resources=containerinstance.ResourceRequirementsArgs(
requests=containerinstance.ResourceRequestsArgs(
cpu=1,
memory_in_gb=4,
memory_in_gb=5,
),
),
volume_mounts=[
Expand All @@ -239,7 +239,7 @@
),
# public index creation container
containerinstance.ContainerArgs(
image="ghcr.io/alan-turing-institute/reginald_create_index:pulumi-reg-2pt0-update",
image="ghcr.io/alan-turing-institute/reginald_create_index:main",
name="reginald-create-index-public", # maximum of 63 characters
environment_variables=[
containerinstance.EnvironmentVariableArgs(
Expand Down Expand Up @@ -275,7 +275,7 @@
resources=containerinstance.ResourceRequirementsArgs(
requests=containerinstance.ResourceRequestsArgs(
cpu=1,
memory_in_gb=4,
memory_in_gb=5,
),
),
volume_mounts=[
Expand Down

0 comments on commit cf48e58

Please sign in to comment.