Skip to content

Commit

Permalink
fix: healthcheck word typo (#86)
Browse files Browse the repository at this point in the history
  • Loading branch information
manhinhang authored Apr 19, 2024
1 parent d5f49e4 commit 946d870
Show file tree
Hide file tree
Showing 105 changed files with 21 additions and 21 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ jobs:
java-version: 17
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
- name: Build heathcheck tool
working-directory: heathcheck
- name: Build healthcheck tool
working-directory: healthcheck
run: ./gradlew build
- name: Install dependencies
run: |
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/deploy-dockerhub.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ jobs:
java-version: 17
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
- name: Build heathcheck tool
working-directory: heathcheck
- name: Build healthcheck tool
working-directory: healthcheck
run: ./gradlew build
- name: Docker meta
id: meta
Expand Down
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,9 @@ RUN rm /tmp/ibgw.sh /tmp/IBC.zip
# copy IBC/Jts configs
COPY ibc/config.ini ${IBC_INI}

# install heathcheck tool
ADD heathcheck/heathcheck/build/distributions/heathcheck.tar /
ENV PATH="${PATH}:/heathcheck/heathcheck/bin"
# install healthcheck tool
ADD healthcheck/healthcheck/build/distributions/healthcheck.tar /
ENV PATH="${PATH}:/healthcheck/healthcheck/bin"

# copy cmd script
WORKDIR /root
Expand Down
6 changes: 3 additions & 3 deletions Dockerfile.template
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,9 @@ RUN rm /tmp/ibgw.sh /tmp/IBC.zip
# copy IBC/Jts configs
COPY ibc/config.ini ${IBC_INI}

# install heathcheck tool
ADD heathcheck/heathcheck/build/distributions/heathcheck.tar /
ENV PATH="${PATH}:/heathcheck/heathcheck/bin"
# install healthcheck tool
ADD healthcheck/healthcheck/build/distributions/healthcheck.tar /
ENV PATH="${PATH}:/healthcheck/healthcheck/bin"

# copy cmd script
WORKDIR /root
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -43,5 +43,5 @@ java {

application {
// Define the main class for the application.
mainClass = "com.manhinhang.ibgatewaydocker.heathcheck.AppKt"
mainClass = "com.manhinhang.ibgatewaydocker.healthcheck.AppKt"
}
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
/*
* This source file was generated by the Gradle 'init' task
*/
package com.manhinhang.ibgatewaydocker.heathcheck
package com.manhinhang.ibgatewaydocker.healthcheck
import com.ib.client.*;
import kotlin.system.exitProcess

fun main() {

val clientId = 999
val port = 4002
val clientId = (System.getenv("HEALTHCHECK_CLIENT_ID").toIntOrNull() ?: 999)
val port = (System.getenv("IB_GATEWAY_INTERNAL_PORT").toIntOrNull() ?: 4001)
val signal = EJavaSignal();
val client = EClientSocket(Wrapper(), signal)
client.eConnect("localhost", port, clientId)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.manhinhang.ibgatewaydocker.heathcheck
package com.manhinhang.ibgatewaydocker.healthcheck

import com.ib.client.*
import java.lang.Exception
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* This source file was generated by the Gradle 'init' task
*/
package com.manhinhang.ibgatewaydocker.heathcheck
package com.manhinhang.ibgatewaydocker.healthcheck

import kotlin.test.Test
import kotlin.test.assertNotNull
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ plugins {
id("org.gradle.toolchains.foojay-resolver-convention") version "0.8.0"
}

rootProject.name = "heathcheck"
include("heathcheck")
rootProject.name = "healthcheck"
include("healthcheck")
2 changes: 1 addition & 1 deletion test/test_ib_gateway.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ def host(request):
return docker_id

def test_heathcheck_fail(host):
host.run('heathcheck')
host.run('healthcheck')
4 changes: 2 additions & 2 deletions test/test_ib_gateway_fail.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,10 @@ def test_ib_insync_connect_fail(host):
except:
pass

def test_heathcheck_fail(host):
def test_healthcheck_fail(host):

try:
host.run('heathcheck')
host.run('healthcheck')
assert False
except:
pass

0 comments on commit 946d870

Please sign in to comment.