diff --git a/v2.10.2/harbor-jobservice/rockcraft.yaml b/v2.10.2/harbor-jobservice/rockcraft.yaml index 797cb23..2360719 100644 --- a/v2.10.2/harbor-jobservice/rockcraft.yaml +++ b/v2.10.2/harbor-jobservice/rockcraft.yaml @@ -29,7 +29,11 @@ services: # NOTE(aznashwan) set entrypoint.sh for compatibility with upstream image. # All it does is run `./make/photon/common/install_cert.sh` and exec `harbor_jobservice`. # https://github.com/goharbor/harbor/blob/v2.10.2/make/photon/jobservice/Dockerfile#L24 - command: /harbor/entrypoint.sh + # HACK(aznashwan): the `harbor_jobservice` executable instantly panics + # if the `harbor-core` component isn't online yet, making Pebble consider + # it inactive and not bothering to restart it unless it lasts at least 1s. + # https://github.com/canonical/pebble/issues/240 + command: /bin/sh -c '/harbor/entrypoint.sh; sleep 1.1' user: harbor group: harbor diff --git a/v2.6.3/harbor-jobservice/rockcraft.yaml b/v2.6.3/harbor-jobservice/rockcraft.yaml index bb149be..7e8271a 100644 --- a/v2.6.3/harbor-jobservice/rockcraft.yaml +++ b/v2.6.3/harbor-jobservice/rockcraft.yaml @@ -29,7 +29,11 @@ services: # NOTE(aznashwan) set entrypoint.sh for compatibility with upstream image. # All it does is run `./make/photon/common/install_cert.sh` and exec `harbor_jobservice`. # https://github.com/goharbor/harbor/blob/v2.6.3/make/photon/jobservice/Dockerfile#L24 - command: /harbor/entrypoint.sh + # HACK(aznashwan): the `harbor_jobservice` executable instantly panics + # if the `harbor-core` component isn't online yet, making Pebble consider + # it inactive and not bothering to restart it unless it lasts at least 1s. + # https://github.com/canonical/pebble/issues/240 + command: /bin/sh -c '/harbor/entrypoint.sh; sleep 1.1' user: harbor group: harbor diff --git a/v2.9.3/harbor-jobservice/rockcraft.yaml b/v2.9.3/harbor-jobservice/rockcraft.yaml index 1376fa6..b70acad 100644 --- a/v2.9.3/harbor-jobservice/rockcraft.yaml +++ b/v2.9.3/harbor-jobservice/rockcraft.yaml @@ -29,7 +29,11 @@ services: # NOTE(aznashwan) set entrypoint.sh for compatibility with upstream image. # All it does is run `./make/photon/common/install_cert.sh` and exec `harbor_jobservice`. # https://github.com/goharbor/harbor/blob/v2.9.3/make/photon/jobservice/Dockerfile#L24 - command: /harbor/entrypoint.sh + # HACK(aznashwan): the `harbor_jobservice` executable instantly panics + # if the `harbor-core` component isn't online yet, making Pebble consider + # it inactive and not bothering to restart it unless it lasts at least 1s. + # https://github.com/canonical/pebble/issues/240 + command: /bin/sh -c '/harbor/entrypoint.sh; sleep 1.1' user: harbor group: harbor