From f4841e3e9e8a3fabc1f85a5cdd90b5fecfb688b1 Mon Sep 17 00:00:00 2001 From: Raymond Tukpe Date: Tue, 16 Aug 2022 18:08:52 +0100 Subject: [PATCH] feat: add typesense volume --- .github/workflows/container-name.yml | 3 +++ .github/workflows/custom-port.yml | 3 +++ .github/workflows/main.yml | 3 +++ CHANGELOG.md | 8 +++++--- start-typesense.sh | 4 +++- 5 files changed, 17 insertions(+), 4 deletions(-) diff --git a/.github/workflows/container-name.yml b/.github/workflows/container-name.yml index 222cf1f..03b6bca 100644 --- a/.github/workflows/container-name.yml +++ b/.github/workflows/container-name.yml @@ -19,3 +19,6 @@ jobs: with: typesense-version: ${{ matrix.typesense-version }} typesense-container-name: typesense-custom + + - name: Curl Typesense + run: sleep 10 && curl http://localhost:8108/health diff --git a/.github/workflows/custom-port.yml b/.github/workflows/custom-port.yml index 73609b0..0e51a9e 100644 --- a/.github/workflows/custom-port.yml +++ b/.github/workflows/custom-port.yml @@ -19,3 +19,6 @@ jobs: with: typesense-version: ${{ matrix.typesense-version }} typesense-port: 12345 + + - name: Curl Typesense + run: sleep 10 && curl http://localhost:12345/health diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 3e8943f..e880468 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -18,3 +18,6 @@ jobs: uses: ./ with: typesense-version: ${{ matrix.typesense-version }} + + - name: Curl Typesense + run: sleep 10 && curl http://localhost:8108/health diff --git a/CHANGELOG.md b/CHANGELOG.md index f9a149b..9741a21 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,7 +1,9 @@ # Changelog +## v1.0.1 + +- [BugFix] Added typesense volume + ## v1.0.0 -### Added - -- Release `v1.0.0` +- Initial Release diff --git a/start-typesense.sh b/start-typesense.sh index 48305cd..2f164f8 100644 --- a/start-typesense.sh +++ b/start-typesense.sh @@ -12,4 +12,6 @@ if [ -z "$TYPESENSE_VERSION" ]; then fi echo "Starting single-node Typesense instance" -docker run -d -p $TYPESENSE_PORT:8108 --name $TYPESENSE_CONTAINER_NAME typesense/typesense:$TYPESENSE_VERSION --api-key=$TYPESENSE_API_KEY --data-dir /data --enable-cors \ No newline at end of file + +mkdir /tmp/typesense +docker run -d -p $TYPESENSE_PORT:8108 --name $TYPESENSE_CONTAINER_NAME -v/tmp/typesense:/data typesense/typesense:$TYPESENSE_VERSION --api-key=$TYPESENSE_API_KEY --data-dir /data --enable-cors \ No newline at end of file