How to run rake tasks?

AI-generated summary

A user, tenzan, is preparing to execute rake tasks (rake uploads:migrate_to_s3 and rake posts:rebake) and needs to access the container first. itsbhanusharma provided the solution, which involves navigating to the /var/discourse directory and running ./launcher enter app. Additionally, itsbhanusharma noted that S3 migration is currently irreversible, but tenzan plans to use Wasabi instead of S3. itsbhanusharma advised tenzan to test the changes in a sandbox environment before applying them to production due to potential compatibility issues with Wasabi.

I’m currently reading this article, where I will need to execute:

rake uploads:migrate_to_s3
rake posts:rebake

Before that, I will need to enter inside the container.

# docker ps
CONTAINER ID   IMAGE                 COMMAND        CREATED       STATUS       PORTS                                                                      NAMES
7a5093d6af50   local_discourse/app   "/sbin/boot"   5 hours ago   Up 5 hours   0.0.0.0:80->80/tcp, :::80->80/tcp, 0.0.0.0:443->443/tcp, :::443->443/tcp   app

Could you please show me how to access the container?
Surely, I can google regarding docker stuff, just wanted to make sure here, in Discourse community.

Easiest way to do that would be:

cd /var/discourse
./launcher enter app

Just FYI, S3 migration is currently irreversible.

Thanks!

S3 migration is currently irreversible.

To be specific, I’m going to use Wasabi instead of S3, and I’m not thinking to change to any other sort of storage. Then I’m OK to proceed, right?

I’d say, try it on a sandbox before making such changes to production. Results may be unexpected depending upon how much compatible wasabi is.