Skip to content
This repository has been archived by the owner on Oct 2, 2024. It is now read-only.

Commit

Permalink
downgrade to py3.11 to fix ocflib
Browse files Browse the repository at this point in the history
  • Loading branch information
nikhiljha committed Apr 20, 2024
1 parent e922586 commit 68f7f61
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 3 deletions.
19 changes: 17 additions & 2 deletions .transpire.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,24 +7,39 @@
name = "ircbot"
auto_sync = True

def dep_patches(dep):
dep.obj.spec.template.spec.dns_policy = "ClusterFirst"
dep.obj.spec.template.spec.dns_config = {"searches": ["ocf.berkeley.edu"]}

dep.obj.spec.template.spec.volumes = [
{"name": "config", "secret": {"secretName": "ircbot"}},
]

dep.obj.spec.template.spec.containers[0].volume_mounts = [
{"name": "config", "mountPath": "/etc/ocf-ircbot"},
]


def images():
yield Image(name="ircbot", path=Path("/"))


def objects():
yield Secret(
secret = Secret(
name="ircbot",
string_data={
"ocf-ircbot.conf": "",
},
).build()
)
yield secret.build()

dep_bot = Deployment(
name=name,
image=get_image_tag("ircbot"),
ports=[8888],
)
# TODO: Switch this to .patch() API.
dep_patches(dep_bot)
yield dep_bot.build()

svc_bot = Service(
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM docker.io/python:3.12-slim
FROM docker.io/python:3.11-slim

RUN apt-get update \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
Expand Down

0 comments on commit 68f7f61

Please sign in to comment.