DigitalOcean cloud installation - going inside the docker

AI-generated summary

In a discussion about accessing the Discourse Docker container and managing update branches on DigitalOcean, Steve_Ng asks how to enter the container to run commands like bin/rake admin:create and how to switch the installation from the default beta branch to stable. Alankrit_Choudh clarifies that the command ./launcher enter app allows access to the container. Regarding the branch, fefrei explains that beta is the current best practice and default. To switch to stable, the user must edit the version attribute in the app.yml file, specifically setting version: stable, rather than modifying the DockerFile. fefrei confirms that the version setting in app.yml is the correct method but warns that downgrades are not supported, so this change should only be made when the new branch contains a newer version.

Hi,

I follow the installation instruction at discourse/docs/INSTALL-cloud.md at main · discourse/discourse · GitHub

  1. How do i go inside the code to perform things like bin/rake admin:create

  2. Is there anyway I can set it to pull from docker’s stable branch? I think it’s pulling from master

Thanks!

./launcher enter app

Should be able to get you inside the container.

Do you mean Discourse? If so, you’re probably pulling from beta, which is currently considered best practice (and therefore is the default).

If you want to switch to stable (which isn’t necessarily more stable than beta), you can do so in app.yml when the next stable version is released.

Sorry i meant discourse’s stable branch.

when you mention app.yml, did you mean this particular attribute to set?

Which Git revision should this container use? (default: tests-passed)

#version: tests-passed
version: stable

or can i edit images/discourse/DockerFile and set it to checkout stable branch?

That’s the one.

Keep in mind that downgrades are not supported, so only change this value if the new branch has a newer version.