Related issue: Resolves https://github.com/fleetdm/fleet/issues/26225 ## Testing - [x] QA'd all new/changed functionality manually <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Added an Android AMAPI mock service for load testing. - Added configurable image version selection and optional Google API request forwarding. - Added routing for mock and API requests through the internal load balancer. - Added secure storage and optional access to Google service-account credentials. - Exposed the mock service endpoint for downstream load-test configuration. - Configured the load-testing environment to use the new internal proxy endpoint. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
18 lines
684 B
Docker
18 lines
684 B
Docker
FROM golang:1.26.4-alpine3.23@sha256:f23e8b227fb4493eabe03bede4d5a32d04092da71962f1fb79b5f7d1e6c2a17f
|
|
ARG TAG
|
|
RUN apk add git
|
|
RUN git clone -b $TAG --depth=1 --no-tags --progress --no-recurse-submodules https://github.com/fleetdm/fleet.git
|
|
RUN cd /go/fleet && go build -o /go/bin/android-amapi-mock ./cmd/android-amapi-mock
|
|
|
|
FROM alpine:3.23.4@sha256:5b10f432ef3da1b8d4c7eb6c487f2f5a8f096bc91145e68878dd4a5019afde11
|
|
LABEL maintainer="Fleet Developers"
|
|
|
|
RUN addgroup -S android-amapi-mock && adduser -S android-amapi-mock -G android-amapi-mock
|
|
|
|
COPY --from=0 /go/bin/android-amapi-mock /go/android-amapi-mock
|
|
|
|
WORKDIR /go
|
|
USER android-amapi-mock
|
|
|
|
ENTRYPOINT ["/go/android-amapi-mock"]
|