Skip to content
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
FROM ghcr.io/prefix-dev/pixi:latest
FROM ghcr.io/prefix-dev/pixi:0.57.0

ENV TZ="America/New_York"

RUN apt-get -y update && \
apt-get -y install git
apt-get -y install git tzdata

COPY pixi.toml .
COPY pixi.lock .
Expand All @@ -14,7 +14,7 @@ RUN pixi shell-hook -s bash > /shell-hook

ENV PYTHONUNBUFFERED=1

COPY test.py .
COPY default.py .

RUN mkdir /etc/tiled
RUN mkdir /.prefect -m 0777
Expand All @@ -24,4 +24,4 @@ RUN /bin/bash /shell-hook

#now reapply deployment to push the image that is being created
ENTRYPOINT ["pixi", "run"]
CMD ["python", "-m", "test", "arg"]
CMD ["python", "-m", "default", "arg"]
27 changes: 27 additions & 0 deletions default.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
from __future__ import annotations

import prefect
import subprocess
import sys
import tiled

def print_argument(argument_to_print=""):
if argument_to_print:
print(f"argument to print: {argument_to_print}") # noqa: T201
else:
print("argument to print: EMPTY") # noqa: T201


def info():
print(f"Prefect info: {prefect.__version_info__}")
print(f"Tiled info: {tiled.__version__}")
output = subprocess.check_output(["pixi", "--version"])
print(f"Pixi info: {output.decode().strip()}")


if __name__ == "__main__":
info()
if len(sys.argv) > 1:
print_argument(sys.argv[1])
else:
print_argument()
2 changes: 1 addition & 1 deletion pixi.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ platforms = ["linux-64"]
[dependencies]
prefect = "3.*"
prefect-docker = "*"
python = "<3.13"
python = "<3.14"
tiled-client = ">=0.2.1"
databroker = "*"
gcc = "*" # mass in ucal-autoprocess requires this
Expand Down
4 changes: 2 additions & 2 deletions prefect.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

# Generic metadata about this project
name: ucal-workflows
prefect-version: 3.6.0
prefect-version: 3.4.6

# build section allows you to manage and build docker images
build: null
Expand All @@ -23,7 +23,7 @@ pull:
# the deployments section allows you to provide configuration for deploying flows
deployments:
- name: ucal-end-of-run-workflow-docker
version: 0.1.2
version: 0.1.3
tags:
- ucal
- sst
Expand Down
17 changes: 0 additions & 17 deletions test.py

This file was deleted.

Loading