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

Remove netcat dependency from example #225

Open
kazuk opened this issue Jul 9, 2022 · 1 comment
Open

Remove netcat dependency from example #225

kazuk opened this issue Jul 9, 2022 · 1 comment
Labels

Comments

@kazuk
Copy link
Contributor

kazuk commented Jul 9, 2022

Motivation

We want to dockernize

#221

I try to build docker build and run.

$ docker run b230c49234ba
waiting JSON records in tcp/54300 port...
[2022-07-09T22:39:44Z ERROR panic] thread 'main' panicked at 'send failed: Os { code: 2, kind: NotFound, message: "No such file or directory" }': springql/examples/doc_app1.rs:23

crashed at this function.

fn send_data_to_pipeline() {
    Command::new("bash")
        .arg("-c")
        .arg(r#"echo '{"ts": "2022-01-01 13:00:00.000000000", "temperature": 5.3}' |nc localhost 54300"#)
        .spawn()
        .expect("send failed");
}

Refactoring target

Do not use to netcat.

@kazuk kazuk added the refactor label Jul 9, 2022
@laysakura
Copy link
Contributor

@kazuk I added an example that uses in-memory queue for both source and sink.
https://github.com/SpringQL/SpringQL/blob/main/springql/examples/in_memory.rs

How about using this for #221 ?
Note that this example runs forever so you may want to make a slight fix to it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants