-
-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathinstall.yaml
More file actions
39 lines (36 loc) · 1.56 KB
/
install.yaml
File metadata and controls
39 lines (36 loc) · 1.56 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: sqlsrv
pre_install_actions:
- |
# https://github.com/microsoft/mssql-docker/issues/734#issuecomment-1382358649
#ddev-description:Check architecture type for incompatible arm64 type
if [ "${DDEV_IGNORE_ARCH_CHECK:-false}" != "true" ] && [ "$(uname -m)" = "arm64" -o "$(uname -m)" = "aarch64" ]; then
echo "Warning: On Apple Silicon, this add-on uses an amd64 image and requires Rosetta, and may not be reliable.";
fi
- |
# If there was an existing .ddev/web-build/pre.Dockerfile.sqlsrv we need to remove it
#ddev-description:Check for existing pre.Dockerfile.sqlsrv
file="$DDEV_APPROOT/.ddev/web-build/pre.Dockerfile.sqlsrv"
if [ -f "$file" ]; then
if grep -q "#ddev-generated" "$file"; then
echo "Removing pre.Dockerfile.sqlsrv from previous version of this add-on"
rm -f "$file"
else
echo "pre.Dockerfile.sqlsrv needs to be removed but has been modified by the user. Please check it and remove it"
exit 2
fi
fi
- |
# If there was an existing .ddev/.env we need to ask users to use .ddev/.env.sqlsrv
#ddev-description:Check for existing .env
if [ -f .ddev/.env ] && grep -q "#ddev-generated" .ddev/.env; then
echo "Move ddev-sqlsrv related values from .ddev/.env to .ddev/.env.sqlsrv"
echo "Or remove .ddev/.env completely to use the defaults"
exit 3
fi
project_files:
- docker-compose.sqlsrv.yaml
- web-build/Dockerfile.sqlsrv
- config.sqlsrv.yaml
- commands/sqlsrv/drupal-regex
- commands/sqlsrv/sqlcmd
ddev_version_constraint: '>= v1.24.10'