Conversation
| GCS_APP_LOCATION=$(curl -s "http://metadata.google.internal/computeMetadata/v1/instance/attributes/app-location" -H "Metadata-Flavor: Google") | ||
| WAR=$(curl -s "http://metadata.google.internal/computeMetadata/v1/instance/attributes/app-war" -H "Metadata-Flavor: Google") | ||
|
|
||
| gsutil cp "$GCS_APP_LOCATION"** . |
There was a problem hiding this comment.
I wonder a bit about this being correct.
|
|
||
| # Install dependencies from apt | ||
| apt-get update | ||
| apt install -t jessie-backports -yq openjdk-8-jre-headless ca-certificates-java |
There was a problem hiding this comment.
any reason we aren't on Stretch ?
There was a problem hiding this comment.
nope, just copied over from another sample. tx for catching
| mkdir -p /var/log/jetty | ||
|
|
||
| # Get Jetty | ||
| curl -L https://repo1.maven.org/maven2/org/eclipse/jetty/jetty-distribution/9.4.4.v20170414/jetty-distribution-9.4.4.v20170414.tar.gz -o jetty9.tgz |
memorystore/redis/pom.xml
Outdated
| @@ -0,0 +1,78 @@ | |||
| <!-- | |||
| Copyright 2018 Google Inc. | |||
There was a problem hiding this comment.
Well, we changed this didn't we.
There was a problem hiding this comment.
Will need to release an update and then these repos (will follow up w/ that cleanup) after merge.
There was a problem hiding this comment.
We released the update for java-repo-tools earlier today (v1.0.10)
There was a problem hiding this comment.
Woot :) great, updated.
| @@ -0,0 +1,73 @@ | |||
| /* | |||
| * Copyright 2018 Google Inc. | |||
| @@ -0,0 +1,53 @@ | |||
| /* | |||
| * Copyright 2018 Google Inc. | |||
| @@ -0,0 +1,17 @@ | |||
| # Copyright 2018 Google Inc. | |||
| @@ -0,0 +1,60 @@ | |||
| #!/bin/bash | |||
| # | |||
| # Copyright 2018 Google Inc. | |||
memorystore/redis/pom.xml
Outdated
| <properties> | ||
| <maven.compiler.target>1.8</maven.compiler.target> | ||
| <maven.compiler.source>1.8</maven.compiler.source> | ||
| <jetty>9.4.4.v20170414</jetty> |
| Thread.currentThread() | ||
| .getContextClassLoader() | ||
| .getResourceAsStream("application.properties")); | ||
| host = config.getProperty("redis.host", "127.0.0.1"); |
There was a problem hiding this comment.
left over from local testing, removed
| Long visits; | ||
|
|
||
| try (Jedis jedis = jedisPool.getResource()) { | ||
| visits = jedis.incr("visits"); |
There was a problem hiding this comment.
Or a waning that a hot variable like this wouldn't standup to pressure in production.
There was a problem hiding this comment.
i think i'm ok with this to limit complexity, given we do phrase this as a simple HTTP example, connection pooling to the redis instance is important to showcase & there are enough Redis variable best practice resources available.
| @@ -0,0 +1,16 @@ | |||
| # Copyright 2018 Google Inc. | |||
| # See the License for the specific language governing permissions and | ||
| # limitations under the License. | ||
|
|
||
| redis.host=127.0.0.1 |
There was a problem hiding this comment.
tx, updated. leftover from local testing.
…#1096) [](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-core](https://togithub.com/googleapis/java-core) | `2.5.10` -> `2.5.11` | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>googleapis/java-core</summary> ### [`v2.5.11`](https://togithub.com/googleapis/java-core/blob/HEAD/CHANGELOG.md#​2511-httpsgithubcomgoogleapisjava-corecomparev2510v2511-2022-03-28) [Compare Source](https://togithub.com/googleapis/java-core/compare/v2.5.10...v2.5.11) </details> --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-automl).
…#1096) [](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-core](https://togithub.com/googleapis/java-core) | `2.5.10` -> `2.5.11` | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>googleapis/java-core</summary> ### [`v2.5.11`](https://togithub.com/googleapis/java-core/blob/HEAD/CHANGELOG.md#​2511-httpsgithubcomgoogleapisjava-corecomparev2510v2511-2022-03-28) [Compare Source](https://togithub.com/googleapis/java-core/compare/v2.5.10...v2.5.11) </details> --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-automl).
…#1096) [](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-core](https://togithub.com/googleapis/java-core) | `2.5.10` -> `2.5.11` | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>googleapis/java-core</summary> ### [`v2.5.11`](https://togithub.com/googleapis/java-core/blob/HEAD/CHANGELOG.md#​2511-httpsgithubcomgoogleapisjava-corecomparev2510v2511-2022-03-28) [Compare Source](https://togithub.com/googleapis/java-core/compare/v2.5.10...v2.5.11) </details> --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-automl).
No description provided.