generated from ddev/ddev-addon-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7be2d0a
commit 1c31cf3
Showing
7 changed files
with
21 additions
and
188 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
.idea |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#ddev-generated | ||
services: | ||
addon-template: | ||
container_name: ddev-${DDEV_SITENAME}-typesense | ||
hostname: ${DDEV_SITENAME}-typesense | ||
image: typesense/typesense:0.25.1 | ||
command: '--data-dir /data --api-key=test --enable-cors' | ||
networks: [default, ddev_default] | ||
restart: "no" | ||
ports: | ||
- "8108:8108" | ||
labels: | ||
com.ddev.site-name: ${DDEV_SITENAME} | ||
com.ddev.approot: $DDEV_APPROOT | ||
volumes: | ||
- "./typesense-data:/data" |
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,87 +1,10 @@ | ||
# Details about the install.yaml file are at https://ddev.readthedocs.io/en/latest/users/extend/additional-services/#sections-and-features-of-ddev-get-add-on-installyaml | ||
name: typesense | ||
|
||
name: your-addon | ||
|
||
# pre_install_actions - list of actions to run before installing the addon. | ||
# Examples would be removing an extraneous docker volume, | ||
# or doing a sanity check for requirements. | ||
# DDEV environment variables can be interpolated into these actions | ||
pre_install_actions: | ||
# Actions with #ddev-nodisplay will not show the execution of the action, but may show their output | ||
# - | | ||
# #ddev-nodisplay | ||
#ddev-description:Check architecture type for incompatible arm64 type | ||
# if [ "$(arch)" = "arm64" -o "$(arch)" = "aarch64" ]; then | ||
# echo "This package does not work on arm64 machines"; | ||
# exit 1; | ||
#fi | ||
|
||
# - "docker volume rm ddev-${DDEV_PROJECT}_solr 2>/dev/null || true" | ||
#- | | ||
# # Using #ddev-nodisplay tells ddev to be quiet about this action and not show it or its output. | ||
# #ddev-nodisplay | ||
# #ddev-description:Remove solr volume | ||
# if ! ( ddev debug capabilities 2>/dev/null | grep multiple-dockerfiles >/dev/null 2>&1 ) ; then | ||
# echo "This add-on requires DDEV v1.19.4 or higher, please upgrade." && exit 2 | ||
# fi | ||
#- 'echo "what is your platform.sh token" && read x' | ||
|
||
# This item shows templating using DDEV environment variables. | ||
# - | ||
# #ddev-description:Touch a file to create it | ||
# touch somefile.${DDEV_PROJECT_TYPE}.${DDEV_DOCROOT}.txt | ||
# | ||
|
||
# This item shows complex go templating possibilities based on yaml_read_files | ||
#- | | ||
#- #ddev-description:Create a config.platformsh.yaml | ||
# cat <<EOF >.ddev/config.platformsh.yaml | ||
# php_version: {{ trimPrefix "php:" .platformapp.type }} | ||
# database: | ||
# type: {{ regexReplaceAll ":.*$" .services.db.type "" }} | ||
# version: {{ regexReplaceAll "^.*:" .services.db.type "" }} | ||
# | ||
# docroot: {{ dig "web" "locations" "/" "root" "notfound" .platformapp }} | ||
# {{ if eq .platformapp.build.flavor "composer" }} | ||
# hooks: | ||
# post-start: | ||
# - composer: install | ||
# {{ if .platformapp.hooks.deploy }} | ||
# - exec: "{{ trimAll "\n" .platformapp.hooks.deploy | splitList "\n" | join ` && ` }}" | ||
# {{ end }} | ||
# {{ end }} | ||
# | ||
# EOF | ||
- mkdir $(DDEV_APPROOT)/typesense-data | ||
|
||
# list of files and directories listed that are copied into project .ddev directory | ||
# Each file should contain #ddev-generated so it can be replaced by a later `ddev get` | ||
# if it hasn't been modified by the user. | ||
# DDEV environment variables can be interpolated into these filenames | ||
project_files: | ||
- docker-compose.addon-template.yaml | ||
# - extra_files/ | ||
# - somefile.sh | ||
- docker-compose.typesense.yaml | ||
|
||
# List of files and directories that are copied into the global .ddev directory | ||
# DDEV environment variables can be interpolated into these filenames | ||
global_files: | ||
# - commands | ||
# - homeadditions | ||
|
||
# DDEV environment variables can be interpolated into these actions | ||
post_install_actions: | ||
# - chmod +x ~/.ddev/commands/web/somecommand | ||
# - touch somefile.${GOOS}.${DDEV_WEBSERVER} | ||
# - perl -pi -e 's/oldstring/newstring/g' docker-compose.addon-template.yaml | ||
|
||
# Shell actions that can be done during removal of the add-on | ||
removal_actions: | ||
# - rm ~/.ddev/commands/web/somecommand | ||
|
||
# Advanced usage - yaml files can be read in and then used as go template actions | ||
# in pre_install_actions and post_install_actions | ||
# See example in | ||
# https://github.com/rfay/ddev/blob/20220606_yaml_read_experiment/cmd/ddev/cmd/testdata/TestCmdGetComplex/recipe/install.yaml | ||
yaml_read_files: | ||
# someyaml: someyaml.yaml | ||
# otheryaml: someotheryaml.yaml | ||
- rm $(DDEV_APPROOT)/typesense-data |