Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
9 changes: 0 additions & 9 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,6 @@ RUN npm run build
# Production stage
FROM node:20-alpine

# Install kubectl
RUN apk add --no-cache curl && \
KUBECTL_VERSION="v1.31.4" && \
echo "Installing kubectl version: ${KUBECTL_VERSION}" && \
curl -LO "https://dl.k8s.io/release/${KUBECTL_VERSION}/bin/linux/amd64/kubectl" && \
chmod +x kubectl && \
mv kubectl /usr/local/bin/ && \
apk del curl

WORKDIR /app

# Copy built application and server
Expand Down
10 changes: 7 additions & 3 deletions src/pages/HostDetail.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -277,10 +277,14 @@ const HostDetail: React.FC = () => {
</Title>
<DescriptionList isHorizontal columnModifier={{ default: '1Col' }}>
<DescriptionListGroup>
<DescriptionListTerm>BCM Link</DescriptionListTerm>
<DescriptionListTerm>BCM Node</DescriptionListTerm>
<DescriptionListDescription>
<a href={host.spec.bcm_link} target="_blank" rel="noopener noreferrer" style={{ color: '#06c', wordBreak: 'break-all' }}>
{host.spec.bcm_link} <ExternalLinkAltIcon style={{ fontSize: '0.75rem' }} />
<a href={host.spec.bcm_link} target="_blank" rel="noopener noreferrer" style={{ color: '#06c' }}>
{(() => {
// Extract node ID from URL like: https://bcm.service.demo:8081/base-view/device/5d0ac70b-0b46-4338-9003-3d785d46b7e4
const match = host.spec.bcm_link.match(/\/device\/([a-f0-9-]+)/i)
return match ? match[1] : host.spec.bcm_link
})()} <ExternalLinkAltIcon style={{ fontSize: '0.75rem' }} />
</a>
</DescriptionListDescription>
</DescriptionListGroup>
Expand Down
Loading