FogProject image server from FogProject.org. Not all features are working. I will try to find the time to get everything working properly in a future build. Run with
docker run -d -p 21:21 -p 82:80 -p 69:69/udp -p 2049:2049 --privileged -h dockerfog -e WEB_HOST_PORT=82 -e WEB_HOST_IP=192.168.1.117 lspiehler/fogproject
Must run with --privileged argument so that the conatiner's NFS server will start. I will try to fix this in a future release. To get PXE booting to work you will need to use your own DHCP server, setting option 66 to the docker host's IP address and option 67 to undionly.kpxe. If you map your port to 82 like I did above, after starting the container you should be able to access the web interface via http://192.168.1.117:82/fog. It will prompt you to install the database. Click Install/Upgrade Now and then log in with the default username fog and password password.
NOTE: THE IP 192.168.1.117 AND PORT 82 REFERENCED IN THE COMMAND AND DESCRIPTION ABOVE ARE EXAMPLES APPROPRIATE FOR MY ENVIRONMENT. YOU WILL NEED TO CHANGE THE IP ADDRESS TO MATCH THAT OF YOUR DOCKER HOST AND YOU CAN OPTIONALLY CHANGE THE PORT IN CASE YOU ALREADY HAVE A WEB SERVER RUNNING ON YOUR HOST ON PORT 80.
Can you expose the docker file so that I can join as well?
maybe github as well ?
Could I join your project? Is the dockerfile available on github/bitbucket?
I think your onto something.
see this for reference of required hidden files needed in the /install file structure needed on the NFS server. http://www.fogproject.org/wiki/index.php/Windows_Storage_Node
looks like the hidden files need to be transferred from your initial FOGproject install folder of /images into the to the internal NFS share of /images
I'm still having problems with NFS, but I'm not sure where the issue lies yet. I'm finding now that I cannot mount NFS shares from any of my servers with a PXE booted fog client in debug mode. Here's what I've done to move NFS services to the docker host on CentOS 7.
yum -y install nfs-utils
systemctl enable rpcbind
systemctl enable nfs-server
systemctl enable nfs-lock
systemctl enable nfs-idmap
systemctl start rpcbind
systemctl start nfs-server
systemctl start nfs-lock
systemctl start nfs-idmap
mkdir -p /images/postdownloadscripts
chown root:root -R /images
chmod 777 -R /images
echo -e "/images (ro,sync,no_wdelay,insecure_locks,no_root_squash,insecure)\n\
docker run -d -p 21:21 -p 82:80 -p 69:69/udp -v /images:/images -h dockerfog -e WEB_HOST_PORT=82 -e WEB_HOST_IP=192.168.1.117 lspiehler/fogproject
I know my host's NFS server is functioning properly because I can mount the shares on my other boxes. If anyone else has any input, I'm all ears. I've also tried pxe booting my fog clients with multiple different kernels.
I'm playing around with that now. I like the idea because I can avoid running all of the nfs services in the container, the --privileged argument and many of the forwarded ports. Every time I go to upload an image in fog, I get an nfs mount error "No route to host" which sounds like a networking issue, but it isn't. I'll let you know if I get it working.
Just what I was looking for: It runs just fine except getting the file setting correct. Is their a way to have the /images to be redirected to the host machine.
I tried the -v option of -v /mnt/images:/images but could not get FOG to image to the host machine hard drive. Any Ideas?
In anather words im trying to have the /images live on the host machine.
perhaps VOLUME /images