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

fix: docker compose configuration to use the new index container #320

Conversation

josecelano
Copy link
Member

@da2ce7 did some changes on the docker container for the Torrust Index, and the docker image was not starting on the testing workflow.

This change updates the config.

@josecelano josecelano requested a review from da2ce7 October 26, 2023 11:44
@josecelano josecelano marked this pull request as draft October 26, 2023 13:14
@josecelano
Copy link
Member Author

josecelano commented Oct 26, 2023

The DB in the cypress config is still in the old location:

export default defineConfig({
  e2e: {
    baseUrl: "http://localhost:3000",
    setupNodeEvents (on, config) {
      on("task", {
        // Category context
        deleteCategory: ({ name }) => {
          return deleteCategory(name, databaseConfig(config));
        },
        addCategory: ({ name }) => {
          return addCategory(name, databaseConfig(config));
        },
        // Torrent context
        deleteTorrent: ({ infohash }) => {
          return deleteTorrent(infohash, databaseConfig(config));
        },
        // User context
        grantAdminRole: ({ username }) => {
          return grantAdminRole(username, databaseConfig(config));
        },
        deleteUser: ({ username }) => {
          return deleteUser(username, databaseConfig(config));
        }
      });
    }
  },
  env: {
    db_file_path: "./storage/index/lib/databasetorrust_index_backend_e2e_testing.db"
  }
});

@josecelano josecelano force-pushed the update-index-docker-config-for-e2e-testing branch from da78e10 to 33f96f6 Compare October 27, 2023 11:40
@josecelano josecelano marked this pull request as ready for review October 27, 2023 11:51
@josecelano
Copy link
Member Author

ACK 33f96f6

@josecelano josecelano merged commit 61695c5 into torrust:develop Oct 27, 2023
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

1 participant