Join the community today
Become a Member

Docker Discuss CentminMod Docker Image

Discussion in 'Centmin Mod Docker Development' started by Guilherme Jaccoud, Dec 23, 2014.

Tags:
  1. Guilherme Jaccoud

    Guilherme Jaccoud Member

    63
    30
    18
    May 29, 2014
    Ratings:
    +30
    Local Time:
    7:34 AM
    @eva2000 I'm updating NP-Stack tonight.
    Do you have any suggestion about the HSTS/SPDY header issue?
     
  2. eva2000

    eva2000 Administrator Staff Member

    46,204
    10,506
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +16,289
    Local Time:
    8:34 PM
    Nginx 1.19.x
    MariaDB 5.5/10.x
    separate server location contexts for port 80 and port 443 :)
     
  3. eva2000

    eva2000 Administrator Staff Member

    46,204
    10,506
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +16,289
    Local Time:
    8:34 PM
    Nginx 1.19.x
    MariaDB 5.5/10.x
    @Guilherme Jaccoud tried my hand at modifying your beautiful NP-Stack with a bit of Centmin Mod settings like flavour at github.com/centminmod/docker-nginx-mini. I git cloned NP-Stack repo and modified it so the full change log is at Commits · centminmod/docker-nginx-mini · GitHub for ideas. So thanks for all the hard work in setting up a very fully functional supervisord config with it's own stop/start/status/restart functionality via nps command (y)

    It's still YUM package based Nginx and PHP-FPM. Ripping out full Centmin Mod Nginx + PHP-FPM source based compilation for use in Docker Nginx is a bit more work that I have time for right now. Just wanted to see what can be done quickly. Docker Nginx Mini is just intended as a fall back Nginx instance for the idea I had outlined at Docker Discuss - Docker ideas for Centmin Mod LEMP stack | Centmin Mod Community - http works fine. But still working out an issue where https/SSL with self signed certificate doesn't work for some reason. Also PHP pages are blank LOL.. so I must of messed up somewhere as PHP pages work fine in your NP-Stack docker version :)
     
    Last edited: Feb 28, 2015
  4. Guilherme Jaccoud

    Guilherme Jaccoud Member

    63
    30
    18
    May 29, 2014
    Ratings:
    +30
    Local Time:
    7:34 AM
    wow!! @eva2000 that's awesome! Looking your commits was a great lesson, thank you very much!

    Supervisord functions via nps command can still be extended a little, but the nps command should not be limited to supervisord, it should act as a the main command to control most container functionalities.

    I was about to rewrite the nginx config as you suggested earlier, however, before that, I was trying to run the container as a non-root user and found it to be a little complicated because it seems that in CentOS 7 Docker build, users in the wheel group can't install programs and installing as root and then running as another user creates permission issues with supervisord (How We Run as a Non-Root Inside Docker Container - Yegor Bugayenko). I'm still thinking about how to solve that.

    Again, thanks for everything. I'll have a deeper look into docker-nginx-mini and see how we can collaborate to it's development.

    Cheers!
     
  5. eva2000

    eva2000 Administrator Staff Member

    46,204
    10,506
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +16,289
    Local Time:
    8:34 PM
    Nginx 1.19.x
    MariaDB 5.5/10.x
    cheers and you're welcome @Guilherme Jaccoud that's what I meant nps command extends to service management alternative using supervisord seeing as init.d/systemd doesn't work in Docker containers. Might add your nps functionality to my MariaDB 10/10.1 and Percona 5.6 Docker images too later on :)

    Yeah for ease of use and my intended use will still with root user for Nginx containers. Docker Nginx Mini is intended as a second Nginx fallback instance for Centmin Mod Nginx :)