1
0
mirror of https://github.com/google/nomulus synced 2026-01-08 15:21:46 +00:00

Move App Engine cron jobs to cloud scheduler (#1939)

This commit is contained in:
Pavlo Tkach
2023-03-01 13:40:56 -05:00
committed by GitHub
parent cda51f13dc
commit 71a8579ece
21 changed files with 1272 additions and 898 deletions

View File

@@ -19,7 +19,16 @@
# 3. Google Cloud SDK for generating the WARs.
# 4. Git to manipulate the private and the merged repos.
# 5. Docker to build and push images.
# 6. cloudSchedulerDeployer for deploying cloud scheduler tasks based on config
FROM golang:1.19 as cloudSchedulerBuilder
WORKDIR /usr/src/cloudSchedulerDeployer
RUN go mod init cloudSchedulerDeployer
COPY *.go ./
RUN go build -o /cloudSchedulerDeployer
FROM marketplace.gcr.io/google/debian10
ENV DEBIAN_FRONTEND=noninteractive LANG=en_US.UTF-8
COPY --from=cloudSchedulerBuilder /cloudSchedulerDeployer /usr/local/bin/cloudSchedulerDeployer
ADD ./build.sh .
RUN ["bash", "./build.sh"]