- This is a Dev Environment for PHP using PODMAN pods an alternative to docker.
- Well for me, it's More lighter and is deamonless
unqualified-search-registries = ['docker.io','ghrc.io','quay.io']
- can be added to the following files:
- Option 1: create or update
$HOME/.config/containers/registries.conf
- Option 2: update
/etc/containers/registries.conf
- i would prefer the option 1 for cleaner
- copy the
init.sh
on your directory - using curl
curl https://raw.githubusercontent.com/tomexsans/podman-phpdev/refs/heads/main/init.sh > init.sh
- using wget
wget https://raw.githubusercontent.com/tomexsans/podman-phpdev/refs/heads/main/init.sh
- make it executable
chmod +x init.sh
- configure the bash file for paths Especially the sourceFiles path
- the Bash script will automatically generate
index.php
andindex.html
file on the${srcPath}/html
directory. Remove or comment out if you don't want to overwrite existing files - execute the file
bash init.sh
or./init.sh
- if you don't want to create a pod a
podman-compos.yml
file is available just runpodman compose up -d
- ensure
podman-compose
anddocker-compose
is installed on your system
- after the
init.sh
nginx may be down because of dependencies which are not yet done loading. - Just start it manually
# list running
podman ps
# List pods
podman pod list
# want to enter a container?
podman exec -ti <container name> bash
- Podman has a GUI https://podman-desktop.io/
- the command
sudo sysctl net.ipv4.ip_unprivileged_port_start=80
is just for the current session - a fix would be to add the config permanently
# open conf
sudo nano /etc/sysctl.conf
# Add this line to the end or check if it exists
net.ipv4.ip_unprivileged_port_start=80
# restart systl
sudo sysctl -p
# check if exists
sysctl net.ipv4.ip_unprivileged_port_start
- Free to Use!
- Free to Fork!
- Free to modify!
- Free to do what you want :D