Docker/Kubernetes: Location of launcher

Hi,

I am trying to deploy the discourse base image into a kubernetes cluster.
The build of the base image works but obviously the CMD part that should start the launcher is missing.

I already tried to search the launcher on /var/discourse, but I am unable to find it (root looks like a normal ubuntu root directory…).
Does anyone know where the launcher is located within the docker base image?

Thank you for your support :slight_smile:

LG

1 个赞

You can’t. You’ll need to create a custom image that has a little more stuff in it than the base image includes. For some hints on what you’ll need to do, see Can Discourse ship frequent Docker images that do not need to be bootstrapped? for starters.

I’m working on the same problem and hope to have a solution (that solves my specific set of problems) in the next month. I won’t share it here because it’ll be a support nightmare that meta is not designed to handle. At some point I will consider making those images available, but only when I’m sure that meta won’t be flooded with support requests.

2 个赞

@pfaffman, How has finding the solution to this problem gone? Any other tips and tricks? I’m about to dive down this rabbit hole myself.

I think I’ve got it figure out, though I haven’t yet automated it. I’ve got several other things going on that have that pushed back a bit. If you have a budget, I’d be happy to help out. You can PM me or see contact info in my profile.

1 个赞

@technik, Did you get the base image deployed on Kubernetes? Any tips or issues you’d like to share?

这非常有趣,我很想了解更多关于这方面的信息。

要是我先来,我可能就关了。 :slight_smile:

有什么有意思的?你想了解什么,为什么?

Kubernetes(几乎可以肯定,虽然不由我决定)永远不会得到支持。这周我正在帮助一个需要 k8s 部署方面帮助的人。如果你有预算,欢迎联系我。

我很想了解它的每一个部分。

同意,它可能永远不会得到支持,我也不期望得到支持。Discord 团队已经提供了很棒的东西,我不会期望他们提供更多支持。

但这也正是论坛的优点所在,我们可以交流知识,互相支持,否则这将困难得多。

我非常喜欢 Discourse,而且 IMO 解决像“从头开始”部署之类的问题是更多地了解一个系统的不错方式。

1 个赞

总的来说,如果你想用 k8s 来运行 Discourse,你会从一个普通的双容器安装开始(或者查看关于使用外部数据库的主题),用 launcher 构建一个镜像,然后将该镜像推送到一个仓库。你可以使用 ./launcher start-cmd web_only 来查看你需要传递给容器以使其工作的环境变量。

如果你有具体问题,可以开一个新帖。

1 个赞