[Docker] Composer with Intl Extension
Well, I recently convert my apps to docker. And I feel like, it's awesome! I can reinstall my Ubuntu for 1000x hahaha.. By dockerizing my apps, I'm no longer confused on setting the apps every time. It's like I can run it everywhere with the same configuration.
One of the dockerized apps I've used is, composer. Of course it's a main apps. How can I work if I cant use composer. Back in the past, I installed composer in a container. Later, I knew it was not a good practice. Working with docker, means we are working with root mode. And we shouldn't run composer in root, right? Beside, it's not best practise to install docker in a container. It's quite finicky to run inside a container and run composer. It's a nope then.
Official docker composer
There's an official docker composer out there. You can find it here: Docker Composer. The instructions are clear. I'm sure you could follow it. Once I used it, but I'm using another now hahaha.. This official docker composer doesn't come with intl-extension which I really need in order to get the framework done. I'm using CakePHP 3 which it's rely on Symfony library. And Symfony needs this intl extension. For normal uasage, this composer would suits most people.
Docker composer with intl [see update]
This is what I need. In short, go to this docker hub. What a life saver. Now I could work again #yay. Do you know how I'm suffering by using composer inside a container? It's a lot, dude! Grab it and spend your hours on something else!
PS. You still need do the instructions in official docker composer in order to make it works. Just adjusted the image to docker-with-intl composer, since the hub is quite simple :D
I got another answer. This one is from the author of docker-composer, RobLoach. He said, if we could just pass `--ignore-platform-reqs` when running the composer. Well, and it just works. For detail option, please refer to composer docs (https://getcomposer.org/doc/03-cli.md) as well.
Update 31 August, 2016
How to add extension php-intl |
4 comments
Write commentsIni ngomongin apa sih. Gak ad yg ku mengerti
ReplyLaaah.. Tagnya aja sudah beda :|
Replyini plis ngomongin apa sih. emang kaya gini ada yg baca po?
ReplyAda, dong.. Kalau yang kayak gini, yang datang dari luar wkwkwkwk.. Dan ini juga jadi catatan juga hahaha..
Reply