feat: support env reuse and git mirror in v0.1 cicd
This commit is contained in:
@@ -1,23 +1,24 @@
|
||||
FROM oven/bun:1.2.15-alpine
|
||||
|
||||
WORKDIR /app
|
||||
WORKDIR /opt/agentrun
|
||||
ARG HTTP_PROXY
|
||||
ARG HTTPS_PROXY
|
||||
ARG NO_PROXY
|
||||
ENV NODE_ENV=production
|
||||
ENV PORT=8080
|
||||
ENV AGENTRUN_CODEX_COMMAND=/app/node_modules/.bin/codex
|
||||
ENV AGENTRUN_CODEX_COMMAND=/opt/agentrun/node_modules/.bin/codex
|
||||
ENV AGENTRUN_APP_ROOT=/workspace/agentrun
|
||||
ENV AGENTRUN_BOOT_REPO_URL=http://git-mirror-http.devops-infra.svc.cluster.local/pikasTech/agentrun.git
|
||||
|
||||
RUN HTTP_PROXY="$HTTP_PROXY" HTTPS_PROXY="$HTTPS_PROXY" NO_PROXY="$NO_PROXY" http_proxy="$HTTP_PROXY" https_proxy="$HTTPS_PROXY" no_proxy="$NO_PROXY" \
|
||||
apk add --no-cache ca-certificates curl git github-cli kubectl nodejs openssh-client
|
||||
|
||||
COPY package.json tsconfig.json ./
|
||||
COPY package.json bun.lock tsconfig.json ./
|
||||
RUN HTTP_PROXY="$HTTP_PROXY" HTTPS_PROXY="$HTTPS_PROXY" NO_PROXY="$NO_PROXY" http_proxy="$HTTP_PROXY" https_proxy="$HTTPS_PROXY" no_proxy="$NO_PROXY" \
|
||||
bun install --production
|
||||
RUN /app/node_modules/.bin/codex --version && /app/node_modules/.bin/codex app-server --help >/dev/null
|
||||
COPY scripts ./scripts
|
||||
COPY src ./src
|
||||
COPY deploy/deploy.json ./deploy/deploy.json
|
||||
RUN /opt/agentrun/node_modules/.bin/codex --version && /opt/agentrun/node_modules/.bin/codex app-server --help >/dev/null
|
||||
COPY deploy/runtime/boot ./deploy/runtime/boot
|
||||
RUN chmod +x /opt/agentrun/deploy/runtime/boot/*.sh
|
||||
|
||||
EXPOSE 8080
|
||||
CMD ["bun", "src/mgr/main.ts"]
|
||||
CMD ["/opt/agentrun/deploy/runtime/boot/agentrun-mgr.sh"]
|
||||
|
||||
Reference in New Issue
Block a user