Skip to content

Commit

Permalink
Merge pull request #110 from resilientdb/gopuman-docker
Browse files Browse the repository at this point in the history
Modified Dockerfile to add entrypoint
  • Loading branch information
gopuman authored Nov 5, 2023
2 parents a1955ad + 84f8e24 commit 503599b
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 6 deletions.
2 changes: 2 additions & 0 deletions Docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,5 @@ COPY . /app
RUN bazel --version
RUN bazel build @com_github_bazelbuild_buildtools//buildifier:buildifier
RUN bazel build service/tools/kv/api_tools/kv_service_tools

ENTRYPOINT ["./entrypoint.sh"]
2 changes: 2 additions & 0 deletions Docker/Dockerfile_mac
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,5 @@ COPY . /app
RUN bazel --version
RUN bazel build @com_github_bazelbuild_buildtools//buildifier:buildifier
RUN bazel build service/tools/kv/api_tools/kv_service_tools

ENTRYPOINT ["./entrypoint.sh"]
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,20 +121,20 @@ We also provide access to a [deployment script](https://github.com/resilientdb/r

- For amd architecture, run:
```shell
docker run -it expolab/resdb:amd64 bash
docker run -d --name myserver expolab/resdb:amd64
```

- For Apple Silicon (M1/M2) architecture, run:
```shell
docker run -it expolab/resdb:arm64 bash
docker run -d --name myserver expolab/resdb:arm64
```

4. **Start the kv_service within the Container**
Once you're inside the container, start the `kv_service` by running the following command:
4. **Test with Set and Get Commands**
Exec into the running server:
```shell
./service/tools/kv/server_tools/start_kv_service.sh
docker exec -it myserver bash
```
5. **Test with Set and Get Commands**

Verify the functionality of the service by performing set and get operations:

- Set a test value:
Expand Down
4 changes: 4 additions & 0 deletions entrypoint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash

./service/tools/kv/server_tools/start_kv_service.sh
tail -f /dev/null

0 comments on commit 503599b

Please sign in to comment.