Changeset 53895
- Timestamp:
- 08/13/2022 11:23:26 PM (2 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/.github/workflows/phpunit-tests.yml
r53736 r53895 47 47 # - Logs Docker debug information (about the Docker installation within the runner). 48 48 # - Starts the WordPress Docker container. 49 # - Starts the Memcached server after the Docker network has been created (if desired).50 49 # - Logs general debug information about the runner. 51 50 # - Logs the running Docker containers. … … 160 159 npm run env:start 161 160 162 # The memcached server needs to start after the Docker network has been set up with `npm run env:start`.163 - name: Start the Memcached server.164 if: ${{ matrix.memcached }}165 run: |166 cp tests/phpunit/includes/object-cache.php src/wp-content/object-cache.php167 docker run --name memcached --net $(basename "$PWD")_wpdevnet -d memcached168 169 161 - name: General debug information 170 162 run: | -
trunk/docker-compose.yml
r53636 r53895 49 49 - ./tools/local-env/php-config.ini:/usr/local/etc/php/conf.d/php-config.ini 50 50 - ./:/var/www 51 52 # Copy or delete the Memcached dropin plugin file as appropriate. 53 command: /bin/sh -c "if [ $LOCAL_PHP_MEMCACHED = true ]; then cp -n /var/www/tests/phpunit/includes/object-cache.php /var/www/src/wp-content/object-cache.php; else rm -f /var/www/src/wp-content/object-cache.php; fi && exec php-fpm" 51 54 52 55 depends_on: … … 105 108 - localhost:host-gateway 106 109 110 ## 111 # The Memcached container. 112 ## 113 memcached: 114 image: memcached 115 116 networks: 117 - wpdevnet 118 119 ports: 120 - 11211:11211 121 107 122 volumes: 108 123 # So that sites aren't wiped every time containers are restarted, MySQL uses a persistent volume. -
trunk/tools/local-env/scripts/start.js
r53358 r53895 10 10 11 11 // Start the local-env containers. 12 execSync( 'docker-compose up -d wordpress-develop', { stdio: 'inherit' } ); 12 const containers = ( process.env.LOCAL_PHP_MEMCACHED === 'true' ) 13 ? 'wordpress-develop memcached' 14 : 'wordpress-develop'; 15 execSync( `docker-compose up -d -- ${containers}`, { stdio: 'inherit' } ); 13 16 14 17 // If Docker Toolbox is being used, we need to manually forward LOCAL_PORT to the Docker VM.
Note: See TracChangeset
for help on using the changeset viewer.