-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(dashboard): resolve child wfRuns (#759)
* fix(dashboard): resolve child wfRuns * ci(dashboard): use Dockerfile.next to build standalone * feat(dashboard): add link to parent wfRun
- Loading branch information
Showing
15 changed files
with
194 additions
and
157 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
dashboard-new/src/app/(authenticated)/wfSpec/[...props]/components/Diagram.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 0 additions & 1 deletion
1
dashboard-new/src/app/(authenticated)/wfSpec/[...props]/components/EdgeTypes/Default.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 0 additions & 2 deletions
2
dashboard-new/src/app/(authenticated)/wfSpec/[...props]/components/EdgeTypes/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,6 @@ | ||
import { SmartStepEdge } from '@tisoap/react-flow-smart-edge' | ||
import { EdgeTypes } from 'reactflow' | ||
import { DefaultEdge } from './Default' | ||
|
||
export const edgeTypes: EdgeTypes = { | ||
default: DefaultEdge, | ||
smart: SmartStepEdge, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { WfRunId } from "littlehorse-client/dist/proto/object_id" | ||
|
||
export const concatWfRunIds = (wfRunId: WfRunId) => { | ||
const ids = [] | ||
let current: WfRunId | undefined = wfRunId | ||
while (current) { | ||
ids.push(current.id) | ||
current = current.parentWfRunId | ||
} | ||
return ids.reverse().join('/') | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
FROM ubuntu:22.04 | ||
|
||
LABEL maintainer="[email protected]" | ||
|
||
ENV PATH ${PATH}:/kafka/bin:/lh | ||
|
||
RUN mkdir /kafka /lh \ | ||
&& apt update && apt install -y tar gzip wget uuid-runtime openjdk-17-jdk curl ca-certificates gnupg \ | ||
&& curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg \ | ||
&& echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_20.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list \ | ||
&& apt update && apt install -y nodejs \ | ||
&& npm i -g pnpm \ | ||
&& rm -rf /var/lib/apt/lists/* \ | ||
&& wget -q https://downloads.apache.org/kafka/3.7.0/kafka_2.12-3.7.0.tgz -O /tmp/kafka.tgz \ | ||
&& tar -xzf /tmp/kafka.tgz --strip-components 1 -C /kafka \ | ||
&& rm /tmp/kafka.tgz | ||
|
||
COPY ./docker/standalone/kafka-entrypoint.sh /lh | ||
COPY ./docker/standalone/littlehorse-entrypoint.sh /lh | ||
COPY ./docker/standalone/dashboard-entrypoint.sh /lh | ||
COPY ./docker/standalone/docker-entrypoint.sh /lh | ||
|
||
WORKDIR /lh/dashboard | ||
ENV NODE_ENV=production | ||
EXPOSE 8080 | ||
|
||
COPY ./dashboard/apps/web/.next/standalone ./ | ||
COPY ./dashboard/apps/web/.next/static ./apps/web/.next/static | ||
COPY ./dashboard/apps/web/public ./apps/web/public | ||
|
||
# New dashboard | ||
WORKDIR /lh/dashboard-new | ||
COPY ./dashboard-new/.next/standalone ./ | ||
COPY ./dashboard-new/.next/static ./.next/static | ||
|
||
WORKDIR / | ||
|
||
COPY ./server/build/libs/server-*-all.jar /lh/server.jar | ||
|
||
ENV LHD_API_HOST=localhost | ||
ENV LHD_API_PORT=2023 | ||
ENV DASHBOARD_NEXT=true | ||
|
||
ENTRYPOINT ["/lh/docker-entrypoint.sh"] |