Skip to content

Commit

Permalink
update sample executor dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
axb committed Dec 1, 2023
1 parent faa2645 commit 36bc920
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 7 deletions.
2 changes: 0 additions & 2 deletions docs/samples/executor/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone

RUN mkdir -p /data1/executor/src

# 启动目录
WORKDIR /data1/executor/src

ENV PYTHONPATH='/data1/executor/src/:$PYTHONPATH'
Expand All @@ -14,5 +13,4 @@ COPY requirements.txt /data1/executor/src/

RUN mkdir -p /data1/executor/logs && pip install -i https://mirrors.aliyun.com/pypi/simple/ -r /data1/executor/src/requirements.txt

# 启动应用
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"]
2 changes: 1 addition & 1 deletion docs/samples/executor/build_image.sh
Original file line number Diff line number Diff line change
@@ -1 +1 @@
docker buildx build -t weibocom/rill-flow-sample-executor:0.0.1 .
docker buildx build -t weibocom/rill-flow-sample:sample-executor
2 changes: 1 addition & 1 deletion docs/samples/executor/deploy-sample-executor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ spec:
spec:
containers:
- name: sample-executor
image: 'weibocom/sample-executor:0.0.1'
image: 'weibocom/rill-flow-sample:sample-executor'
imagePullPolicy: Always
ports:
- hostPort: 8000
Expand Down
2 changes: 0 additions & 2 deletions executors/fastapi/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone

RUN mkdir -p /data1/executor/src

# 启动目录
WORKDIR /data1/executor/src
COPY main.py /data1/executor/src/
COPY requirements.txt /data1/executor/src/
Expand All @@ -14,5 +13,4 @@ RUN mkdir -p /data1/executor/logs && pip install -i https://mirrors.aliyun.com/p

ENV PYTHONPATH='/data1/executor/src/:$PYTHONPATH'

# 启动应用
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"]
2 changes: 1 addition & 1 deletion executors/fastapi/build_image.sh
Original file line number Diff line number Diff line change
@@ -1 +1 @@
docker build -t rill-flow-executor-fastapi:0.0.1 .
docker buildx build -t weibocom/rill-flow-sample:fastapi-executor

0 comments on commit 36bc920

Please sign in to comment.