Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[docs-only] [5.0] Refactor the 'ocis_wopi' deployment example #9412

Merged
merged 4 commits into from
Jun 20, 2024

Conversation

mmattel
Copy link
Contributor

@mmattel mmattel commented Jun 19, 2024

References: #9388 (New community ready deployment example using WOPI necessary)
Supersedes: #9394 ([docs-only] Create new 'ocis_wopi_community' deployment example)

Because there are many structural changes, I created a new PR instead of overwriting #9394.

Adapted FORWARD port to master necessary.

Changes:

  • Making the complete setup modular, only traefik is in the main compose file.
    This eases testing a lot !
  • Making all other compose setups selectable via the .env file.
    • ocis, wopiserver, tika and collabora are enabled by in the .env file but can be commented
    • All other compose setups can individually be included by uncommenting the respective include
    • All compose setups but traefik have their OWN compose folder which makes developing and updating much easier. Also if a new setup will be added like collaboration and wopiserver gets retired, we can easily do that now without messing up one singe compose file.
  • Image updates:
    • traefik: 2.9.1 --> 3.0.3
    • collabora: 23.05.5.2.1 --> 23.05.10.1.1
      Note that the latest version 24.x is not working as it cant update a file but you need to create a copy.
    • wopiserver: 10.4.0 --> 10.5.0

One open issue:
I was not able to start the traefik dashboard despite setting the corresponding var in the .env file. Note that I was also not able to run a dasboard deployment example. Also see traefik/operations/dashboard/.

Suggested checks:

  • OnlyOffice could be updated to 8.0.1, see inline comment but this needs testing
  • Companion could be updated to 4.14, see inline comment but this needs testing
  • Banned pwd list has been prepared in ocis, but it is not working and the envvar therefore commented. This should be fixed and if necessary the admin docs updated.
  • General lookover what could be improved

@ScharfViktor pls retest and use 5.0.5 as ocis tag in the .env file (not latest!!).

@tbsbdr @dragotin FYI

@micbar micbar force-pushed the refactor_ocis_wopi_deployment branch from 2a38192 to 11ca24a Compare June 20, 2024 10:13
@micbar micbar force-pushed the refactor_ocis_wopi_deployment branch from 11ca24a to 6446f51 Compare June 20, 2024 10:17
@mmattel
Copy link
Contributor Author

mmattel commented Jun 20, 2024

@micbar nice improvements 😃
One suggestion, keep the ocis deployment selectable, but default active. This eases traefik only tests if issues have to be solved.

@micbar
Copy link
Contributor

micbar commented Jun 20, 2024

One suggestion, keep the ocis deployment selectable, but default active. This eases traefik only tests if issues have to be solved.

Ok.

@micbar micbar requested a review from dragotin June 20, 2024 11:59
Copy link

@micbar
Copy link
Contributor

micbar commented Jun 20, 2024

@dragotin and myself did some local testing. The modularity is working and the different combiations are working.

@tbsbdr FYI

@micbar micbar requested review from kulmann, fschade and rhafer June 20, 2024 12:07
Copy link
Contributor

@rhafer rhafer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks fine to me skimming over it. (I trust that this works as others already tried it out)

@micbar micbar merged commit 87c3384 into stable-5.0 Jun 20, 2024
2 checks passed
@micbar micbar deleted the refactor_ocis_wopi_deployment branch June 20, 2024 15:04
Copy link
Contributor

@phil-davis phil-davis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor things in comments. I will make another PR for this little stuff, because this one was merged just as I was reviewing.


# Infinite Scale WOPI Deployment Example
Note: This deployment setup is highly configurable. At minimum, it starts traefik`, ocis`, tika`, the wopiserver` and collabora`. Additional services can be started by removing the respective comment in the `.env` file. Depending on the service added, related variables need to be configured.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Note: This deployment setup is highly configurable. At minimum, it starts traefik`, ocis`, tika`, the wopiserver` and collabora`. Additional services can be started by removing the respective comment in the `.env` file. Depending on the service added, related variables need to be configured.
Note: This deployment setup is highly configurable. At minimum, it starts `traefik`, `ocis`, `tika`, the `wopiserver` and `collabora`. Additional services can be started by removing the respective comment in the `.env` file. Depending on the service added, related variables need to be configured.

Did you want to surround the service names with back-tick on both sides?

OCIS_LOG_LEVEL: ${OCIS_LOG_LEVEL:-info}
# use the internal service name of the gateway
APP_PROVIDER_GRPC_ADDR: 0.0.0.0:9164
# configure the service name to avoid collision with like with onlyoffice
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
# configure the service name to avoid collision with like with onlyoffice
# configure the service name to avoid collision with onlyoffice

MICRO_REGISTRY_ADDRESS: 127.0.0.1:9233
NATS_NATS_HOST: 0.0.0.0
NATS_NATS_PORT: 9233
# enable to allow using the banned passwords
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
# enable to allow using the banned passwords
# enable to allow using the banned passwords list

This doesn't enable "using the banned passwords", it enables "using the banned passwords list to disallow bad passwords.

OCIS_LOG_LEVEL: ${OCIS_LOG_LEVEL:-info}
# use the internal service name of the gateway
APP_PROVIDER_GRPC_ADDR: 0.0.0.0:9164
# configure the service name to avoid collision like with with collabora
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
# configure the service name to avoid collision like with with collabora
# configure the service name to avoid collision with collabora

- "traefik.http.routers.wopiserver.entrypoints=https"
- "traefik.http.routers.wopiserver.rule=Host(`${WOPISERVER_DOMAIN:-wopiserver.owncloud.test}`)"
- "traefik.http.routers.wopiserver.tls.certresolver=http"
#- "traefik.http.routers.wopiserver.service=wopiserver"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should there be a comment about why this is commented out?

WOPISERVER_DOMAIN=
# JWT secret which is used for the documents to be request by the Wopi client from the cs3org Wopi server. Must be change in order to have a secure Wopi server. Defaults to "LoremIpsum567"

# JWT secret which is used for the documents to be request by the WOPI client
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
# JWT secret which is used for the documents to be request by the WOPI client
# JWT secret which is used for the documents to be requested by the WOPI client

# Domain for Inbucket. Defaults to "mail.owncloud.test"
INBUCKET_DOMAIN=

# Mutual exclusive with ocis settings, only uncomment when the ocis settings are NOT set
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
# Mutual exclusive with ocis settings, only uncomment when the ocis settings are NOT set
# Mutually exclusive with ocis settings, only uncomment when the ocis settings are NOT set


### IMPORTANT ###
# This MUST be the last line as it assembles the supplemental compose files to be used.
# ALL supplemental configs must be added here, independent if commented or not.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
# ALL supplemental configs must be added here, independent if commented or not.
# ALL supplemental configs must be added here, whether commented or not.

ownclouders pushed a commit that referenced this pull request Jun 20, 2024
[docs-only] [5.0] Refactor the 'ocis_wopi' deployment example
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants