Skip to content

Commit d84ad6f

Browse files
committed
add ipv6 support with vagrant/osx
1 parent d5f5cd1 commit d84ad6f

File tree

3 files changed

+72
-21
lines changed

3 files changed

+72
-21
lines changed

Vagrantfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Vagrant.configure("2") do |config|
2323
# within the machine from a port on the host machine. In the example below,
2424
# accessing "localhost:8080" will access port 80 on the guest machine.
2525
# NOTE: This will enable public access to the opened port
26-
config.vm.network "forwarded_port", guest: 8050, host: 8050
26+
config.vm.network "forwarded_port", guest: 80, host: 80
2727
config.vm.network "forwarded_port", guest: 8051, host: 8051
2828

2929
# Create a forwarded port mapping which allows access to a specific port
@@ -34,6 +34,8 @@ Vagrant.configure("2") do |config|
3434
# Create a private network, which allows host-only access to the machine
3535
# using a specific IP.
3636
# config.vm.network "private_network", ip: "192.168.33.10"
37+
config.vm.network "private_network", ip: "172.16.0.50"
38+
config.vm.network "private_network", ip: "fde4:8dba:82e1::c4"
3739

3840
# Create a public network, which generally matched to bridged network.
3941
# Bridged networks make the machine appear as another physical device on

docs/contribute.md

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -107,26 +107,6 @@ To try the production mode of this plugin, just disable the wordpress debug mode
107107
WORDPRESS_DEBUG: 1 # Comment this line the simulate the production mode
108108
```
109109
110-
#### Test Linux behavior from OSX or Windows
111-
112-
You can test the Linux behavior of this project using **Vagrant**.
113-
114-
```bash
115-
vagrant up
116-
vagrant ssh
117-
cd /vagrant
118-
sudo usermod -aG docker $USER
119-
sudo systemctl restart docker
120-
cp .env.example .env
121-
./run-tests.sh
122-
```
123-
124-
To destroy the vagrant instance:
125-
126-
```bash
127-
vagrant destroy
128-
```
129-
130110
### Display the plugin logs
131111
132112
```bash

docs/macos-host.md

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
# Contribute to this plugin from a MacOS host
2+
3+
You can test the Linux behavior of this project using **Vagrant** (you have to install this on your host to continue).
4+
5+
```bash
6+
vagrant up
7+
vagrant ssh
8+
sudo usermod -aG docker vagrant
9+
sudo systemctl restart docker
10+
```
11+
12+
You have to log out and log back for permission to be updated:
13+
```bash
14+
exit
15+
vagrant shh
16+
```
17+
18+
Enabled IPV6 support following [this guide](https://docs.docker.com/config/daemon/ipv6/). (Note that you'll have to create the file `/etc/docker/daemon.json`).
19+
20+
Add yarn: https://linuxize.com/post/how-to-install-yarn-on-ubuntu-18-04/
21+
22+
https://github.com/nodesource/distributions/blob/master/README.md#installation-instructions
23+
24+
Add deps to run playwright:
25+
sudo apt-get install libnss3\
26+
libnspr4\
27+
libatk1.0-0\
28+
libatk-bridge2.0-0\
29+
libxcb1\
30+
libxkbcommon0\
31+
libx11-6\
32+
libxcomposite1\
33+
libxdamage1\
34+
libxext6\
35+
libxfixes3\
36+
libxrandr2\
37+
libgbm1\
38+
libgtk-3-0\
39+
libpango-1.0-0\
40+
libcairo2\
41+
libgdk-pixbuf2.0-0\
42+
libasound2\
43+
libatspi2.0-0
44+
45+
46+
```bash
47+
cd /vagrant
48+
cp .env.example .env
49+
50+
# set DEBUG=0 in .env
51+
52+
SETUP_ONLY=1 ./run-tests.sh
53+
```
54+
55+
sudo vim /etc/hosts
56+
57+
#172.16.0.50 wordpress5-6
58+
fde4:8dba:82e1::c4 wordpress5-6
59+
# select the one you want to try
60+
61+
Access with ipv4 : http://wordpress5-6/wp-admin
62+
63+
### Clean up environnement
64+
65+
To destroy the vagrant instance:
66+
67+
```bash
68+
vagrant destroy
69+
```

0 commit comments

Comments
 (0)