generated from ddev/ddev-addon-template
-
-
Notifications
You must be signed in to change notification settings - Fork 5
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
208ef2a
commit 312de25
Showing
9 changed files
with
164 additions
and
79 deletions.
There are no files selected for viewing
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,39 @@ | ||
name: Documentation links | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
markdown-test-links: | ||
name: Markdown test links | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Clone sources | ||
uses: actions/checkout@v4 | ||
with: | ||
path: sources | ||
|
||
- name: Lauch localhost server | ||
run: | | ||
sudo npm install --global http-server | ||
http-server ./sources & | ||
- name: Set up Ruby 2.6 | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: 2.6 | ||
|
||
- name: Check links in Markdown files | ||
run: | | ||
gem install awesome_bot | ||
cd sources | ||
awesome_bot README.md --skip-save-results --allow-dupe --base-url http://localhost:8080/ --white-list ddev.site |
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
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
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
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,23 @@ | ||
#!/bin/bash | ||
|
||
## #ddev-generated: If you want to edit and own this file, remove this line. | ||
## Description: Launch a browser with Mongo Express | ||
## Usage: mongo-express | ||
## Example: "ddev mongo-express" | ||
|
||
# Determine whether to use HTTP or HTTPS based on environment | ||
PROTOCOL="HTTP" | ||
if [ "${DDEV_PRIMARY_URL%://*}" != "http" ] && [ -z "${GITPOD_WORKSPACE_ID:-}" ] && [ "${CODESPACES:-}" != "true" ]; then | ||
PROTOCOL="HTTPS" | ||
fi | ||
|
||
# Fetch the appropriate port within the mongo-express container | ||
DDEV_MONGO_EXPRESS_PORT=$(ddev exec -s mongo-express sh -c "printenv | grep -w ${PROTOCOL}_EXPOSE | cut -d '=' -f 2 | cut -d ':' -f 1") | ||
|
||
if [ -z "$DDEV_MONGO_EXPRESS_PORT" ]; then | ||
echo "Error: Could not retrieve Mongo Express port." | ||
exit 1 | ||
fi | ||
|
||
ddev launch :"$DDEV_MONGO_EXPRESS_PORT" | ||
|
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,4 @@ | ||
#ddev-generated | ||
# If omit_containers[ddev-router] then this file will be replaced | ||
# with another with a `ports` statement to directly expose port 9091 to 8081 | ||
services: {} |
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,11 +1,28 @@ | ||
name: mongo | ||
|
||
pre_install_actions: | ||
- | | ||
#ddev-description:Create config.mongo.yaml with webimage_extra_packages in it | ||
printf '#ddev-generated\nwebimage_extra_packages: ["php${DDEV_PHP_VERSION}-mongodb"]\n' >.ddev/config.mongo.yaml | ||
- | | ||
#ddev-description:Create config.mongo.yaml with webimage_extra_packages in it | ||
printf '#ddev-generated\nwebimage_extra_packages: ["php${DDEV_PHP_VERSION}-mongodb"]\n' >.ddev/config.mongo.yaml | ||
# Ensure we're on DDEV 1.23+. It's required for the `redis-commander` command (launch by port). | ||
- | | ||
#ddev-nodisplay | ||
#ddev-description:Checking DDEV version | ||
(ddev debug capabilities | grep corepack >/dev/null) || (echo "Please upgrade DDEV to v1.23+ to enable launching." && false) | ||
post_install_actions: | ||
- | | ||
#ddev-description:If router disabled, directly expose port | ||
# | ||
if ( {{ contains "ddev-router" (list .DdevGlobalConfig.omit_containers | toString) }} ); then | ||
printf "#ddev-generated\nservices:\n mongo-express:\n ports:\n - 9091:8081\n" > docker-compose.mongo_norouter.yaml | ||
fi | ||
- | | ||
echo "You can now use 'ddev mongo-express' to launch Mongo Express UI" | ||
# list of files and directories listed that are copied into project .ddev directory | ||
project_files: | ||
- commands/mongo/mongosh | ||
- docker-compose.mongo.yaml | ||
- commands/mongo/mongosh | ||
- commands/host/mongo-express | ||
- docker-compose.mongo.yaml | ||
- docker-compose.mongo_norouter.yaml |
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