In order to get started with the project, clone it from github:
git clone [email protected]:kristoffeys/immozo-web.git
If you don't have docker installed on your system go to their site, where you can download docker. Follow the installation instructions there.
Once you have docker up and running. you'll need to change a setting in order for elasticsearch to work smoothly. Underneath the needed commands per OS:
Linux: sysctl -w vm.max_map_count=262144
macOS with Docker for mac: screen ~/Library/Containers/com.docker.docker/Data/vms/0/tty afther this command you should be able to run sysctl -w vm.max_map_count=262144, to make this change persistent, add the line vm.max_map_count=262144 to /etc/sysctl.conf and run sudo sysctl -p afterwards
Windows and macOS with Docker Toolbox: docker-machine ssh after you've ssh'd in your docker machine: sudo sysctl -w vm.max_map_count=262144
Once this is done, start the containers and intialize them via
make init
In order for xDebug to work, you'll have to configure your IDE.
For PhpStorm, go to Settings > Languages & Frameworks > PHP > Servers and add your server:
Name: immozo-docker
Host: localhost
Port: 8000
Note: that we've also configure the xDebug port to 9001. This should also be changed in your IDE. (for PhpStorm this can be done in Settings > Languages & Frameworks > PHP > Debug)
On Mac in order to get xDebug to work, following command needs to be executed:
ifconfig lo0 alias 10.254.254.254
You can make this change permanently by creating a com.immozo.docker_alias.plist file in /Library/LaunchDaemons with following content:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>docker_alias</string>
<key>ProgramArguments</key>
<array>
<string>ifconfig</string>
<string>lo0</string>
<string>alias</string>
<string>10.254.254.254</string>
</array>
<key>RunAtLoad</key>
<true/>
</dict>
</plist>
When grumphp doesn't seem to find npm, add in pre-commit hook: PATH=/usr/local/bin:$PATH
Content type
Image
Digest
Size
883.9 MB
Last updated
over 7 years ago
docker pull immozo/elasticsearch