Skip to content

Commit

Permalink
Cloud build (#2)
Browse files Browse the repository at this point in the history
* Use cloudbuild.yml

* Fix vars

* Fix cmd

* Fix entrypoint

* Fix probes

* Add JVM opts

* Adjuts probe port

* Adjust CPU limits

* Fix env and cpu limits

* Set port on 8080

* Refactor

* Fixes per review

* Restore explicit port

* Debug

* Debug

* Refactor probe

* Not needed after all
  • Loading branch information
Jukka Palomäki authored and markolenkkeri committed Oct 8, 2018
1 parent 2d3e508 commit 046e158
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 5 deletions.
1 change: 0 additions & 1 deletion build.gradle
Expand Up @@ -27,7 +27,6 @@ dependencies {
implementation "io.micronaut:runtime-groovy"
implementation "io.micronaut:validation"
compile "io.micronaut.configuration:mongo-reactive"
compile "io.micronaut:management"
compileOnly "io.micronaut:inject-groovy"
runtimeOnly "ch.qos.logback:logback-classic:1.2.3"
testImplementation "io.micronaut:inject-groovy"
Expand Down
8 changes: 4 additions & 4 deletions k8s/deployment.yaml
Expand Up @@ -28,17 +28,17 @@ spec:
memory: 128Mi
readinessProbe:
httpGet:
path: /health
path: /chattest
port: 8080
periodSeconds: 5
initialDelaySeconds: 5
initialDelaySeconds: 10
timeoutSeconds: 3
livenessProbe:
httpGet:
path: /health
path: /chattest
port: 8080
periodSeconds: 5
initialDelaySeconds: 10
initialDelaySeconds: 15
timeoutSeconds: 3
env:
- name: MONGODB_URI
Expand Down
Expand Up @@ -20,6 +20,11 @@ class TestingController {
@Client("http://localhost:8080")
RxWebSocketClient webSocketClient

@Get
String index() {
"This is the chat testing controller"
}

@Get("/{sender}")
String sendMessage(String sender, @QueryValue String message) {
log.info "Handling demo message sending"
Expand Down
1 change: 1 addition & 0 deletions src/main/resources/application.yml
Expand Up @@ -8,3 +8,4 @@ mongodb:
dbname: chatdb
ssl: false
uri: mongodb://127.0.0.1:27017/chatdb

0 comments on commit 046e158

Please sign in to comment.