add arm build

This commit is contained in:
somunslotus 2025-06-27 10:25:34 +08:00
parent 5b99fdef39
commit 6e034fbfc8
5 changed files with 27 additions and 4 deletions

17
Dockerfile.arm Normal file
View File

@ -0,0 +1,17 @@
FROM 172.20.32.187/pipeline-service/aimstack/aim:3.19.0-build-env
ARG http_proxy
ARG https_proxy
ENV http_proxy=${http_proxy}
ENV https_proxy=${https_proxy}
WORKDIR /app
RUN pip install httpx aim==3.19.0 -i https://pypi.tuna.tsinghua.edu.cn/simple
ENV http_proxy=""
ENV https_proxy=""
COPY aim_proxy.py /app/server.py
ENTRYPOINT ["python", "server.py"]

View File

@ -45,11 +45,11 @@ def is_running_in_kubernetes():
if is_running_in_kubernetes():
print("Running in Kubernetes environment")
repo_path = 'aim://my-aim-server-service.aim:53800'
host = 'http://my-aim-ui-service.aim:43800'
repo_path = 'aim://aim-server-service.aim:53800'
host = 'http://aim-ui-service.aim:43800'
else:
repo_path = 'aim://172.20.32.181:30058'
host = 'http://172.20.32.181:30059'
repo_path = 'aim://172.20.32.197:30058'
host = 'http://172.20.32.197:30059'
print("Not running in Kubernetes environment")
api_url = f'{host}/api/runs/search/run/'

6
arm-build-images.sh Executable file
View File

@ -0,0 +1,6 @@
#!/bin/bash
#日期精确到分钟
image=172.20.32.187/pipeline-service/aim-porxy:$(date "+%Y%m%d%H%M%S")-arm
docker build --build-arg "http_proxy=http://172.20.32.253:3128" --build-arg "https_proxy=http://172.20.32.253:3128" -t $image -f Dockerfile.arm .
docker push $image

0
build-images.sh Normal file → Executable file
View File

0
fetch.sh Normal file → Executable file
View File