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
6 changes: 6 additions & 0 deletions .github/workflows/build_tool.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,9 @@ jobs:
with:
context: tool/piped-base-okd
tags: ${{ env.REGISTRY }}/pipe-cd/piped-base-okd:${{ env.PIPECD_VERSION }}

- name: Build firestore-emulator image
uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc
with:
context: tool/firestore-emulator
tags: ${{ env.REGISTRY }}/pipe-cd/firestore-emulator:${{ env.PIPECD_VERSION }}
7 changes: 7 additions & 0 deletions .github/workflows/publish_tool.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,3 +65,10 @@ jobs:
context: tool/piped-base-okd
tags: ${{ env.GHCR }}/pipe-cd/piped-base-okd:${{ env.PIPECD_VERSION }}
push: true

- name: Build and push firestore-emulator image
uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc
with:
context: tool/firestore-emulator
tags: ${{ env.GHCR }}/pipe-cd/firestore-emulator:${{ env.PIPECD_VERSION }}
push: true
19 changes: 19 additions & 0 deletions tool/firestore-emulator/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
FROM openjdk:8-jre-alpine3.9

ARG GOOGLE_CLOUD_SDK_VERSION=392.0.0

RUN apk add --no-cache \
python3 \
curl && \
curl -O https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/google-cloud-sdk-$GOOGLE_CLOUD_SDK_VERSION-linux-x86.tar.gz && \
tar -C /usr/local -xvzf google-cloud-sdk-$GOOGLE_CLOUD_SDK_VERSION-linux-x86.tar.gz && \
rm google-cloud-sdk-$GOOGLE_CLOUD_SDK_VERSION-linux-x86.tar.gz && \
/usr/local/google-cloud-sdk/install.sh --quiet

ENV PATH $PATH:/usr/local/google-cloud-sdk/bin

RUN gcloud components install cloud-firestore-emulator

EXPOSE 8080
ENTRYPOINT ["gcloud", "beta", "emulators", "firesotre", "start"]
CMD ["--host-port=0.0.0.0:8080"]