Skip to content

Commit d1eae06

Browse files
committed
Update examples
1 parent 979f1bd commit d1eae06

File tree

3 files changed

+31
-12
lines changed

3 files changed

+31
-12
lines changed

examples/Arq/LibStored.Arq/Dockerfile

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
1-
# Add ARG for libstored version
2-
ARG LIBSTORED_VERSION=2.0.0
3-
41
FROM ubuntu:22.04 as builder
52

6-
# Use the ARG after FROM
7-
ARG LIBSTORED_VERSION
8-
3+
# Set noninteractive frontend for apt
94
RUN echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections
105

116
RUN apt-get update && \
@@ -36,6 +31,9 @@ RUN apt-get update && \
3631

3732
WORKDIR /src/extern
3833

34+
# Add ARG for libstored version
35+
ARG LIBSTORED_VERSION=2.0.0
36+
3937
RUN wget https://github.com/DEMCON/libstored/archive/refs/tags/v${LIBSTORED_VERSION}.tar.gz && \
4038
tar -xzf v${LIBSTORED_VERSION}.tar.gz --transform="s/libstored-${LIBSTORED_VERSION}/libstored/" && \
4139
rm v${LIBSTORED_VERSION}.tar.gz

examples/Arq/README.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Arq Example
2+
3+
This example demonstrates cross-language synchronization over a lossy channel. The Arq layer will retransmist lost messages between C++ and C# components. The C++ component runs inside a container while the C# implementation runs natively. The setup is adapted from the libstored project's synchronization examples and uses the Arq transport/adapter to route changes between the stores.
4+
5+
In this example, the C++ code runs inside a container, while the C# implementation runs natively.
6+
7+
## Prerequisites
8+
9+
- [.NET 10 SDK](https://dotnet.microsoft.com/download)
10+
- [Aspire CLI](https://aspire.dev/docs/cli/)
11+
- [Podman](https://podman.io/) or [Docker](https://www.docker.com/products/docker-desktop)
12+
13+
## Running the Example
14+
15+
Start the example environment with Aspire:
16+
17+
```sh
18+
aspire run
19+
```
20+
21+
## Learn More
22+
23+
- [Aspire Documentation](https://aspire.dev/docs/)

examples/Sync/LibStored.Net.Example.AppHost/Dockerfile

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
1-
# Add ARG for libstored version
2-
ARG LIBSTORED_VERSION=2.0.0
3-
41
FROM ubuntu:22.04 as builder
52

6-
# Use the ARG after FROM
7-
ARG LIBSTORED_VERSION
8-
3+
# Set noninteractive frontend for apt
94
RUN echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections
105

116
RUN apt-get update && \
@@ -36,6 +31,9 @@ RUN apt-get update && \
3631

3732
WORKDIR /tmp
3833

34+
# Add ARG for libstored version
35+
ARG LIBSTORED_VERSION=2.0.0
36+
3937
RUN wget https://github.com/DEMCON/libstored/archive/refs/tags/v${LIBSTORED_VERSION}.tar.gz && \
4038
tar -xzf v${LIBSTORED_VERSION}.tar.gz --transform="s/libstored-${LIBSTORED_VERSION}/libstored/" && \
4139
rm v${LIBSTORED_VERSION}.tar.gz && \

0 commit comments

Comments
 (0)