mirror of
git://develop.git.wordpress.org/
synced 2025-02-06 23:50:43 +01:00
2654756a03
This adds a devcontainer configuration tested for use with GitHub Codespaces. It is currently built on top of the Docker `wordpress` image for initial trial purposes. We should eventually be using our own containers to fully own the environment. This should be considered a beta run to get a sense of how well cloud dev containers work for core contributors, in particular at contributor day events with limited bandwidth and mobile devices. Props samruddhikhandale, dinhtungdu, helen, craiglpeters, sam1el, wirecat. See #57187. git-svn-id: https://develop.svn.wordpress.org/trunk@55303 602fd350-edb4-49c9-b593-d223f7449a82
19 lines
548 B
Bash
19 lines
548 B
Bash
#!/bin/sh
|
|
|
|
set -eux
|
|
|
|
if [ "${CODESPACE_NAME}" = "" ]; then
|
|
SITE_HOST="http://localhost:8080"
|
|
else
|
|
SITE_HOST="https://${CODESPACE_NAME}-8080.${GITHUB_CODESPACES_PORT_FORWARDING_DOMAIN}"
|
|
fi
|
|
|
|
# Install dependencies
|
|
cd /workspaces/wordpress-develop
|
|
npm install && npm run build:dev
|
|
|
|
# Install WordPress and activate the plugin/theme.
|
|
cd /var/www/html
|
|
echo "Setting up WordPress at $SITE_HOST"
|
|
wp core install --url="$SITE_HOST" --title="WordPress Trunk" --admin_user="admin" --admin_email="admin@example.com" --admin_password="password" --skip-email
|