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

Building with different database backends #2012

Open
deseti opened this issue Sep 17, 2024 · 0 comments
Open

Building with different database backends #2012

deseti opened this issue Sep 17, 2024 · 0 comments

Comments

@deseti
Copy link

deseti commented Sep 17, 2024

I want to create a build with a different database backend, such as RocksDB. How do I configure the build.mk to use RocksDB as the database backend?

Suggestion

Add an example of using COSMOS_BUILD_OPTIONS to select a different database backend.

Implementation example

import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.net.URL;
import java.net.URLConnection;

public class BuildMKAPI {

    public static void main(String[] args) {

        // API URL
        String apiURL = "https://api.example.com/build/mk"; // Replace with the actual API URL

        try {
            // Create a connection to the API
            URL url = new URL(apiURL);
            URLConnection connection = url.openConnection();

            // Read the response from the API
            BufferedReader reader = new BufferedReader(new InputStreamReader(connection.getInputStream()));
            String line;
            while ((line = reader.readLine()) != null) {
                System.out.println(line);
            }
            reader.close();

        } catch (Exception e) {
            System.err.println("Error: " + e.getMessage());
        }
    }
}

Sumber file

https://github.com/berachain/beacon-kit/blob/main/build/scripts/build.mk

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

No branches or pull requests

1 participant