File tree 3 files changed +15
-11
lines changed
3 files changed +15
-11
lines changed Original file line number Diff line number Diff line change @@ -15,3 +15,8 @@ RUN (groupadd --gid $gid "$username" || groupadd "$username" || true) && (userad
15
15
16
16
# Add sudo and sudoers in manner similar to other ddev containers
17
17
RUN apt update && apt install -y sudo; apt clean -qq && rm -rf /var/lib/apt/lists/*; echo "ALL ALL=NOPASSWD: ALL" > /etc/sudoers.d/ddev-backstop && chmod 440 /etc/sudoers.d/ddev-backstop
18
+
19
+ # Install mkcert
20
+ RUN apt update --fix-missing; apt install -y curl libnss3-tools; curl -JLO "https://dl.filippo.io/mkcert/latest?for=linux/amd64" ; chmod +x mkcert-v*-linux-amd64; cp mkcert-v*-linux-amd64 /usr/local/bin/mkcert
21
+
22
+ USER $username
Original file line number Diff line number Diff line change @@ -14,4 +14,7 @@ if [ -n "$routerIp" ]; then
14
14
IFS=$OIFS
15
15
fi
16
16
17
+ # Adding certs
18
+ CAROOT=/mnt/ddev-global-cache/mkcert/ mkcert -install
19
+
17
20
sleep infinity
Original file line number Diff line number Diff line change 1
1
# ddev-generated
2
2
services :
3
- # This is the service name used when running ddev commands accepting the
4
- # --service flag.
5
3
backstopjs :
6
- # This is the name of the container. It is recommended to follow the same
7
- # name convention used in the main docker-compose.yml file.
8
4
container_name : ddev-${DDEV_SITENAME}-backstopjs
9
5
build :
10
6
context : ' ./backstopjsBuild'
@@ -19,21 +15,21 @@ services:
19
15
# Add init to reap Chrome processes, as noted at
20
16
# https://github.com/puppeteer/puppeteer/blob/main/docs/troubleshooting.md#running-puppeteer-in-docker
21
17
init : true
22
- entrypoint : [ /entrypoint.sh ]
23
18
shm_size : 1gb
24
- external_links :
25
- - web:${DDEV_SITENAME}.${DDEV_TLD}
26
19
environment :
27
20
DDEV_HOSTNAME : $DDEV_HOSTNAME
28
21
NODE_EXTRA_CA_CERTS : /mnt/ddev-global-cache/mkcert/rootCA.pem
29
- # These labels ensure this service is discoverable by ddev.
30
22
labels :
31
23
com.ddev.site-name : ${DDEV_SITENAME}
32
24
com.ddev.approot : ${DDEV_APPROOT}
25
+ entrypoint : [ /entrypoint.sh ]
33
26
volumes :
34
27
- ../tests/backstopjs:/src/tests
35
28
- .:/mnt/ddev_config:ro
36
29
- ddev-global-cache:/mnt/ddev-global-cache
37
- networks :
38
- ddev_default : null
39
- default : null
30
+ networks : [default, ddev_default]
31
+ external_links :
32
+ - ddev-router:${DDEV_SITENAME}.${DDEV_TLD}
33
+ web :
34
+ links :
35
+ - backstopjs
You can’t perform that action at this time.
0 commit comments