Skip to content

Commit 6762882

Browse files
mergify[bot]derekhigginscdoern
authored
fix(containers): pass --insecure to entrypoint to restore starter image boot (backport #6288) (#6293)
## Summary - Since #5603 introduced TLS as a hard requirement, the starter container fails to start without TLS certs - Add `--insecure` to all `ogx stack run` invocations in the entrypoint script to restore the previous behaviour ## Test plan ``` podman run -it --rm docker.io/ogxai/distribution-starter:latest ``` Before: `TLS required: set tls_certfile/tls_keyfile in server config or pass '--insecure' to disable.` After: server starts normally<hr>This is an automatic backport of pull request #6288 done by [Mergify](https://mergify.com). Signed-off-by: Derek Higgins <derekh@redhat.com> Co-authored-by: Derek Higgins <derekh@redhat.com> Co-authored-by: Charlie Doern <cdoern@redhat.com>
1 parent bf20ab1 commit 6762882

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

containers/Containerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -209,14 +209,14 @@ fi
209209
CLI_NAME="${CLI_NAME:-ogx}"
210210

211211
if [ -n "$RUN_CONFIG_PATH" ] && [ -f "$RUN_CONFIG_PATH" ]; then
212-
exec $CMD_PREFIX "$CLI_NAME" stack run "$RUN_CONFIG_PATH" "$@"
212+
exec $CMD_PREFIX "$CLI_NAME" stack run --insecure "$RUN_CONFIG_PATH" "$@"
213213
fi
214214

215215
if [ -n "$DISTRO_NAME" ]; then
216-
exec $CMD_PREFIX "$CLI_NAME" stack run "$DISTRO_NAME" "$@"
216+
exec $CMD_PREFIX "$CLI_NAME" stack run --insecure "$DISTRO_NAME" "$@"
217217
fi
218218

219-
exec $CMD_PREFIX "$CLI_NAME" stack run "$@"
219+
exec $CMD_PREFIX "$CLI_NAME" stack run --insecure "$@"
220220
EOF
221221
RUN chmod +x /usr/local/bin/ogx-entrypoint.sh
222222

0 commit comments

Comments
 (0)