Rename com.meesho/org.meesho namespace to com.homelab/org.homelab
Renames src/com/meesho -> src/com/homelab, resources/com/meesho -> resources/com/homelab, resources/org/meesho -> resources/org/homelab (via git mv, preserving history), and sweeps every remaining occurrence of "meesho" (any casing) out of package declarations, imports, libraryResource() paths, and comments across the whole repo. Also drops the per-user allowlist in vars/eksCICD.groovy, which hardcoded real former-colleagues' emails and doesn't apply to a single-person homelab — that branch is now permanently skipped rather than deleted outright, to avoid hand-editing the escape-sequence-heavy echo blocks it guards (eksCICD.groovy itself is unused legacy code, not called by homelabPipeline.groovy). Does not touch the ~114 files that were already missing from the working tree but still tracked in the prior commit — that's unrelated pre-existing state, left as-is.
This commit is contained in:
@@ -0,0 +1,58 @@
|
||||
FROM ${buildRegistry}/build/rust:${version} AS builder
|
||||
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||
build-essential \
|
||||
protobuf-compiler \
|
||||
cmake \
|
||||
libprotobuf-dev \
|
||||
libssl-dev \
|
||||
pkg-config \
|
||||
openssh-client \
|
||||
ca-certificates \
|
||||
libsasl2-2 \
|
||||
libsasl2-dev \
|
||||
clang \
|
||||
libclang-dev \
|
||||
<% build_packages.each { print " ${it} \\\n" } %>
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
WORKDIR /usr/src/app
|
||||
|
||||
|
||||
COPY id_github_jenkins /root/.ssh/id_rsa
|
||||
|
||||
RUN ssh-keyscan github.com >> /root/.ssh/known_hosts && \
|
||||
chmod -R 600 /root/.ssh/ && \
|
||||
git config --global url."git@github.com:".insteadOf "https://github.com/"
|
||||
|
||||
# Copy source code
|
||||
COPY . .
|
||||
|
||||
# Build release binary for the native architecture (amd64)
|
||||
RUN cargo build --workspace --release
|
||||
|
||||
# Clean up SSH key from builder stage for security
|
||||
RUN rm -rf /root/.ssh/
|
||||
|
||||
FROM asia-southeast1-docker.pkg.dev/homelab-devops-admin-0622/admin/build/debian:trixie-slim
|
||||
|
||||
# Install runtime dependencies if your app needs them (e.g., SSL)
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||
libssl3t64 \
|
||||
ca-certificates \
|
||||
libsasl2-2 \
|
||||
<% runtime_packages.each { print " ${it} \\\n" } %>
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# Set workdir for the binary
|
||||
WORKDIR /app
|
||||
|
||||
# Copy the compiled amd64 binary from the builder
|
||||
COPY --from=builder /usr/src/app/target/release/${binary_name} ./server
|
||||
<% add_files.each { print "COPY ${it.path} ${it.target}\n" } %>
|
||||
|
||||
# Expose port if your app listens on it
|
||||
EXPOSE 8080
|
||||
|
||||
# Start the application
|
||||
CMD ["./server"]
|
||||
Reference in New Issue
Block a user