feat: add typesense volume

This commit is contained in:
Raymond Tukpe
2022-08-16 18:08:52 +01:00
parent 4f8eecf487
commit f4841e3e9e
5 changed files with 17 additions and 4 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -18,3 +18,6 @@ jobs:
uses: ./
with:
typesense-version: ${{ matrix.typesense-version }}
- name: Curl Typesense
run: sleep 10 && curl http://localhost:8108/health

View File

@@ -1,7 +1,9 @@
# Changelog
## v1.0.1
- [BugFix] Added typesense volume
## v1.0.0
### Added
- Release `v1.0.0`
- Initial Release

View File

@@ -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
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