forked from apache/beam
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request apache#22096 from [Playground] Infrastructure for …
…sharing any code * [Playground] [Infrastrusture] add one more action to install a cloud datastore emulator * [Playground] [Infrastrusture] add variables * [Playground] [Infrastrusture] change default value for datastore emulator host * [Playground] [Infrastructure] add variables and their description * [Playground] [Infra] add tfvars file * [Playground] [Infra] add extra step to check changes * Update terraform.tfvars * Update variables.tf * [Playground] [Infra] removed extra variable from route dockerfile * [Playground] [Infra] changed backend workflow for production * [Playground] [Infra] removed extra files after testing * [Playground] [Infra] removed extra newline * [Playground] [Infra] removed extra env variables * [Playground] [Infra] updated step to set up cloud sdk * [Playground] [Infra] added viper lib for application props * [Playground] [Infra] added docker compose for local deployment * [Playground] [Infra] edited docker compose * [Playground] [Infrastructure] updated documentation * [Playgroumd] [Infrastructure] renamed db type to remote * [Playgorund] [Infrastructure] remove unused variable * [Playground] [Infrastructure] updated gradle tasks and dockerfile * [Playground] [Infrastucture] removed extra shell script * [Playground] [Infrastructure] updated docker compose file for local deployment * added newlines for git scanning Co-authored-by: MakarkinSAkvelon <[email protected]>
- Loading branch information
1 parent
d44c044
commit 70585ad
Showing
18 changed files
with
659 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
############################################################################### | ||
# Licensed to the Apache Software Foundation (ASF) under one | ||
# or more contributor license agreements. See the NOTICE file | ||
# distributed with this work for additional information | ||
# regarding copyright ownership. The ASF licenses this file | ||
# to you under the Apache License, Version 2.0 (the | ||
# "License"); you may not use this file except in compliance | ||
# with the License. You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
############################################################################### | ||
|
||
# Docker hub: https://hub.docker.com/r/google/cloud-sdk | ||
FROM google/cloud-sdk:alpine | ||
|
||
# Install required components | ||
RUN apk add --update --no-cache openjdk8-jre \ | ||
&& gcloud components install cloud-datastore-emulator beta --quiet | ||
|
||
COPY entrypoint.sh /entrypoint.sh | ||
|
||
RUN chmod +x ./entrypoint.sh | ||
|
||
ENTRYPOINT ["./entrypoint.sh"] |
18 changes: 18 additions & 0 deletions
18
playground/backend/containers/router/datastore/entrypoint.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/bin/bash | ||
# Licensed to the Apache Software Foundation (ASF) under one or more | ||
# contributor license agreements. See the NOTICE file distributed with | ||
# this work for additional information regarding copyright ownership. | ||
# The ASF licenses this file to You under the Apache License, Version 2.0 | ||
# (the "License"); you may not use this file except in compliance with | ||
# the License. You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
gcloud config set project "$DATASTORE_PROJECT_ID" | ||
gcloud beta emulators datastore start --host-port="$DATASTORE_LISTEN_ADDRESS" |
34 changes: 34 additions & 0 deletions
34
playground/backend/containers/router/docker-compose.local.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# Licensed to the Apache Software Foundation (ASF) under one or more | ||
# contributor license agreements. See the NOTICE file distributed with | ||
# this work for additional information regarding copyright ownership. | ||
# The ASF licenses this file to You under the Apache License, Version 2.0 | ||
# (the "License"); you may not use this file except in compliance with | ||
# the License. You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
version: "2" | ||
|
||
services: | ||
datastore: | ||
build: "./datastore" | ||
environment: | ||
DATASTORE_PROJECT_ID: project-test | ||
DATASTORE_LISTEN_ADDRESS: 0.0.0.0:8081 | ||
ports: | ||
- "8081:8081" | ||
router: | ||
image: apache/beam_playground-backend-router | ||
environment: | ||
GOOGLE_CLOUD_PROJECT: project-test | ||
DATASTORE_EMULATOR_HOST: datastore:8081 | ||
ports: | ||
- "8080:8080" | ||
depends_on: | ||
- datastore |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.