Skip to content

Commit

Permalink
Remove the rest of lunatic mentions
Browse files Browse the repository at this point in the history
  • Loading branch information
drogus committed Mar 12, 2024
1 parent 0c729b3 commit 2eae0c8
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 371 deletions.
6 changes: 1 addition & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,7 @@ This should execute test instances on each of the workers
#### Running locally
Running locally is possible if you have Rust installed. On top of that you need the `lunatic-runtime`:
```
cargo install lunatic-runtime
```
Running locally is possible if you have Rust installed.
Then you can run using cargo, for example:
Expand Down
1 change: 0 additions & 1 deletion service/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,3 @@ proc-macro = true

[features]
async = []
lunatic = []
2 changes: 1 addition & 1 deletion utils/src/services/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ pub trait Worker {
async fn upload_scenario(&mut self, id: ModuleId, content: Vec<u8>);
async fn ping(&self) -> String;
async fn prepare(&mut self, id: ModuleId, concurrency: usize, rate: Rational64) -> Result<RunId, WorkerError>;
async fn start(&self, name: String, concurrency: usize) -> Result<(), WorkerError>;
async fn start(&self, id: ModuleId, concurrency: usize) -> Result<(), WorkerError>;
async fn get_data(&self) -> WorkerData;
}

Expand Down
347 changes: 0 additions & 347 deletions worker/Cargo.lock

This file was deleted.

8 changes: 2 additions & 6 deletions worker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@ COPY . .

RUN cd worker && cargo build --release

RUN cargo install lunatic-runtime
RUN cp `which lunatic` /app/lunatic

FROM debian:buster

RUN apt-get update \
Expand All @@ -23,11 +20,10 @@ RUN apt-get update \

RUN mkdir -p /app

COPY --from=builder /app/target/wasm32-wasi/release/worker.wasm /app/worker.wasm
COPY --from=builder /app/lunatic /app/lunatic
COPY --from=builder /app/target/release/worker /app/worker

WORKDIR /app

ENV WORKER_NAME=$HOST

ENTRYPOINT ["/app/lunatic", "worker.wasm"]
ENTRYPOINT ["/app/worker"]
Loading

0 comments on commit 2eae0c8

Please sign in to comment.