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
3 changes: 3 additions & 0 deletions Dockerfile.nexus
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ COPY --from=builder /app/nexus /app/nexus
# Copy webroot directory for web server assets
COPY internal/web/webroot/ /app/webroot/

# Copy minion binaries for download service
COPY binaries/ /app/binaries/

# Create entrypoint script (use printf for proper newlines)
RUN printf '#!/bin/sh\nexec /app/nexus\n' > /app/docker-entrypoint.sh && \
chmod +x /app/docker-entrypoint.sh
Expand Down
6 changes: 4 additions & 2 deletions internal/web/webroot/templates/install_minion.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ echo "Minion ID: $MINION_ID"

# Download and install minion binary
echo "Downloading minion binary..."
curl -o minion "http://$NEXUS_SERVER:{{.WebPort}}/binaries/minion/$(uname -s)-$(uname -m)" || {
OS=$(uname -s | tr '[:upper:]' '[:lower:]')
ARCH=$(uname -m)
curl -o minion "http://$NEXUS_SERVER:{{.WebPort}}/download/minion/${OS}-${ARCH}" || {
echo "Failed to download minion binary"
exit 1
}
Expand Down Expand Up @@ -50,4 +52,4 @@ EOF
else
echo "Starting minion..."
NEXUS_SERVER="$NEXUS_SERVER" NEXUS_MINION_PORT="$MINION_PORT" MINION_ID="$MINION_ID" ./minion
fi
fi
Loading