Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add image for Joomla! #929

Merged
merged 4 commits into from
Aug 4, 2015
Merged

Add image for Joomla! #929

merged 4 commits into from
Aug 4, 2015

Conversation

mbabker
Copy link
Contributor

@mbabker mbabker commented Jul 25, 2015

This PR adds a Docker image for the Joomla! CMS

Docs PR: docker-library/docs#293

@psftw
Copy link
Contributor

psftw commented Aug 4, 2015

The apache tag runs well, but I seem to be having trouble getting the fpm tag working. I'm seeing connection reset errors when attempting to hit container-ip:9000 in my browser. Am I doing something wrong?

docker run --name mysql3 -e MYSQL_ROOT_PASSWORD=my-secret-pw -d mysql:5.6
docker run --name joomla3 --link mysql3:mysql -d joomla:fpm

@mbabker
Copy link
Contributor Author

mbabker commented Aug 4, 2015

Shouldn't be. The configs are all based on the WordPress image since that
so closely matches Joomla's environment, I'll have to re-check it and see
if I missed something.

On Monday, August 3, 2015, Peter Salvatore notifications@github.com wrote:

The apache tag runs well, but I seem to be having trouble getting the fpm
tag working. I'm seeing connection reset errors when attempting to hit
container-ip:9000 in my browser. Am I doing something wrong?

docker run --name mysql3 -e MYSQL_ROOT_PASSWORD=my-secret-pw -d mysql:5.6
docker run --name joomla3 --link mysql3:mysql -d joomla:fpm


Reply to this email directly or view it on GitHub
#929 (comment)
.

@md5
Copy link
Contributor

md5 commented Aug 4, 2015

@psftw Browsers don't speak the FastCGI protocol, so you won't be able to test the image that way.

See here for a test I wrote that's able to speak FastCGI directly to port 9000 for testing.

Another option would be to set up an appropriate Nginx config to front the FPM image. See this gist for an example: https://gist.github.com/md5/d9206eacb5a0ff5d6be0

@yosifkit
Copy link
Member

yosifkit commented Aug 4, 2015

I only have one suggestion, since the htaccess file comes with in the zip, why not just a quick sed to just create the file with the single change? That way you won't need to update or even track the file in the docker-joomla repo.

if [ ! -e .htaccess ]; then
    sed -r 's/^(Options -Indexes.*)$/#\1/' htaccess.txt > .htaccess
    chown www-data:www-data .htaccess
fi

And I have one question, is JOOMLA_UPSTREAM_VERSION needed? We have it in the wordpress image because we are slightly lazy; wordpress releases 4.0, but we treat it as 4.0.0 since 4.0.1 would also be 4.0. And now @tianon is fixing it in docker-library/wordpress#91.

@mbabker
Copy link
Contributor Author

mbabker commented Aug 4, 2015

sed is something I'm not strong in so the way I did it works, but if that's quicker/easier I'll definitely push it in.

All of Joomla's version numbers use the major.minor.patch format always, so I can apply that change too.

@yosifkit
Copy link
Member

yosifkit commented Aug 4, 2015

That was fast 🤘. LGTM.

Anything else @tianon?

@yosifkit
Copy link
Member

yosifkit commented Aug 4, 2015

Build test of #929; 3cc5168 (joomla):

$ url="https://raw.githubusercontent.com/docker-library/official-images/3cc5168da859df45eab761e0cc42a8997a356e4b/library/joomla"
$ bashbrew build "$url"
Cloning joomla (git://github.com/joomla/docker-joomla) ...
Processing joomla:3.4.3-apache ...
Processing joomla:3.4.3 ...
Processing joomla:3.4-apache ...
Processing joomla:3.4 ...
Processing joomla:3-apache ...
Processing joomla:apache ...
Processing joomla:3 ...
Processing joomla:latest ...
Processing joomla:3.4.3-fpm ...
Processing joomla:3.4-fpm ...
Processing joomla:3-fpm ...
Processing joomla:fpm ...
$ bashbrew list --uniq "$url" | xargs test/run.sh
testing joomla:3.4.3-apache
    'utc' [1/3]...passed
    'cve-2014--shellshock' [2/3]...passed
    'no-hard-coded-passwords' [3/3]...passed
testing joomla:3.4.3-fpm
    'utc' [1/3]...passed
    'cve-2014--shellshock' [2/3]...passed
    'no-hard-coded-passwords' [3/3]...passed

@tianon
Copy link
Member

tianon commented Aug 4, 2015

Nice, definitely a +1 from me for using sed instead -- that'll make sure future updates to the htaccess upstream automatically make their way into the image. 👍

LGTM

tianon added a commit that referenced this pull request Aug 4, 2015
@tianon tianon merged commit 6e82215 into docker-library:master Aug 4, 2015
@mbabker mbabker deleted the add-joomla branch August 4, 2015 18:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants