Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. App Wishlist
  3. SurrealDB

SurrealDB

Scheduled Pinned Locked Moved App Wishlist
31 Posts 5 Posters 4.0k Views 5 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • girishG girish

    @Odonno I saw a request today to join 'cloudron' group but this is not the workflow. Can you give me your username on gitlab (not sure if it was you who requested) ? I have to up the repo limit before you can create a repo there.

    There's a whole bunch of apps in https://git.cloudron.io/cloudron/ (with the -app suffix). You can push the package code with your preferred opensource license .

    O Offline
    O Offline
    Odonno
    wrote on last edited by
    #9

    @girish What is the workflow then? I am unable to create a surrealdb-app repository.

    girishG 1 Reply Last reply
    0
    • O Odonno

      @girish What is the workflow then? I am unable to create a surrealdb-app repository.

      girishG Offline
      girishG Offline
      girish
      Staff
      wrote on last edited by
      #10

      @Odonno You should be able to create repos on gitlab now (under your name). Once it's pushed, can you let me know? I will then move it under the cloudron organization.

      1 Reply Last reply
      1
      • O Offline
        O Offline
        Odonno
        wrote on last edited by
        #11

        I have created the project here https://git.cloudron.io/Odonno/surrealdb-app

        I have started to write tests but I don't how it can work. I have this error for the first test...

        image.png

        1 Reply Last reply
        1
        • girishG Offline
          girishG Offline
          girish
          Staff
          wrote on last edited by
          #12

          @Odonno It seems the license on the package is BSL. We try to keep the package source code as proper opensource licenses . Note that surrealdb itself can be BSL, this is not a problem. The license in the repo only on the license of the package. This allows us (cloudron team) to continue to provide updates to the package reliably.

          O 1 Reply Last reply
          0
          • girishG girish

            @Odonno It seems the license on the package is BSL. We try to keep the package source code as proper opensource licenses . Note that surrealdb itself can be BSL, this is not a problem. The license in the repo only on the license of the package. This allows us (cloudron team) to continue to provide updates to the package reliably.

            O Offline
            O Offline
            Odonno
            wrote on last edited by Odonno
            #13

            @girish Ok, this is done. As long as it does not violate the SurrealDB license, I suppose it's ok.

            1 Reply Last reply
            1
            • girishG Offline
              girishG Offline
              girish
              Staff
              wrote on last edited by
              #14

              @Odonno Ok, I have forked it into our namespace - https://git.cloudron.io/cloudron/surrealdb-app . You should also be a maintainer of the repo.

              So, the next step, is to get the tests working . Then, we will take a look into getting it published. Thanks for all the work!

              O 1 Reply Last reply
              0
              • girishG girish

                @Odonno Ok, I have forked it into our namespace - https://git.cloudron.io/cloudron/surrealdb-app . You should also be a maintainer of the repo.

                So, the next step, is to get the tests working . Then, we will take a look into getting it published. Thanks for all the work!

                O Offline
                O Offline
                Odonno
                wrote on last edited by
                #15

                @girish Thank you. I can write the required tests. I am just stuck with the first one in error...

                1 Reply Last reply
                0
                • girishG Offline
                  girishG Offline
                  girish
                  Staff
                  wrote on last edited by
                  #16

                  @Odonno The message is just saying, you have to run cloudron build first before you can run cloudron install . Maybe you changed the repo directory or something? When that happens, it "forgets" the previous cloudron build image information.

                  O 1 Reply Last reply
                  0
                  • girishG girish

                    @Odonno The message is just saying, you have to run cloudron build first before you can run cloudron install . Maybe you changed the repo directory or something? When that happens, it "forgets" the previous cloudron build image information.

                    O Offline
                    O Offline
                    Odonno
                    wrote on last edited by
                    #17

                    @girish Ah yes, that explains why. I don't know how it keeps track of the correct docker image. I suppose there is a key-value store somewhere.

                    Well, I finished to write a pretty good set of e2e tests. I think it is ready. Thank you for your help.

                    girishG 1 Reply Last reply
                    1
                    • O Odonno

                      @girish Ah yes, that explains why. I don't know how it keeps track of the correct docker image. I suppose there is a key-value store somewhere.

                      Well, I finished to write a pretty good set of e2e tests. I think it is ready. Thank you for your help.

                      girishG Offline
                      girishG Offline
                      girish
                      Staff
                      wrote on last edited by
                      #18

                      @Odonno indeed, the key value store is in ~/.cloudron.json

                      O 1 Reply Last reply
                      0
                      • girishG girish

                        @Odonno indeed, the key value store is in ~/.cloudron.json

                        O Offline
                        O Offline
                        Odonno
                        wrote on last edited by
                        #19

                        @girish Good to know! So, what's the next step?

                        girishG 1 Reply Last reply
                        0
                        • O Odonno

                          @girish Good to know! So, what's the next step?

                          girishG Offline
                          girishG Offline
                          girish
                          Staff
                          wrote on last edited by
                          #20

                          @Odonno we will have to find the time to review and publish the package.

                          1 Reply Last reply
                          0
                          • O Offline
                            O Offline
                            Odonno
                            wrote on last edited by
                            #21

                            Any update on this @girish ?

                            1 Reply Last reply
                            0
                            • girishG Offline
                              girishG Offline
                              girish
                              Staff
                              wrote on last edited by
                              #22

                              @Odonno haven't found the time yet. We are still working on getting a few apps updated before we start looking into new ones.

                              O 1 Reply Last reply
                              0
                              • girishG girish

                                @Odonno haven't found the time yet. We are still working on getting a few apps updated before we start looking into new ones.

                                O Offline
                                O Offline
                                Odonno
                                wrote on last edited by
                                #23

                                @girish Very good practice indeed.

                                I have updated to the latest release 1.2.0. Gonna need that really really soon. But I suppose I can stick with my currently built local docker image.

                                1 Reply Last reply
                                2
                                • O Offline
                                  O Offline
                                  Odonno
                                  wrote on last edited by
                                  #24

                                  Updated to 1.3.0

                                  1 Reply Last reply
                                  2
                                  • O Offline
                                    O Offline
                                    Odonno
                                    wrote on last edited by
                                    #25

                                    Updated to 1.4.0

                                    1 Reply Last reply
                                    0
                                    • O Offline
                                      O Offline
                                      Odonno
                                      wrote on last edited by
                                      #26

                                      Updated to 1.5.0

                                      1 Reply Last reply
                                      1
                                      • L Offline
                                        L Offline
                                        LoudLemur
                                        wrote on last edited by
                                        #27

                                        Any news on this?

                                        1 Reply Last reply
                                        0
                                        • girishG Offline
                                          girishG Offline
                                          girish
                                          Staff
                                          wrote on last edited by
                                          #28

                                          I looked into this today. The file backend of surrealdb uses RocksDB - https://github.com/surrealdb/surrealdb/blob/bf702b0d67c63884dfa7fa567482858ce87315a5/lib/src/api/engine/any/mod.rs#L274C60-L274C67 . From what I have read, it is not safe to backups rocksdb by just using file copy . See https://github.com/surrealdb/surrealdb/issues/1681 and https://github.com/facebook/rocksdb/wiki/How-to-backup-RocksDB . This makes sense since it's a database .

                                          I think we have to implement backup/restore flow into Cloudron to publish databases. This is why we also don't have PostgreSQL, MySQL, MongoDB etc as "apps" . Currently, there is no provision to backup and restore them when they are deployed as apps.

                                          A separate issue is that this app has no real frontend . The app just redirects to surrealdb.com when clicked.

                                          1 Reply Last reply
                                          2
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          • Login

                                          • Don't have an account? Register

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • Bookmarks
                                          • Search