alexellis / ghost-on-docker

Ghost Blog on Docker - Dockerfile for ARM etc
MIT License
110 stars 22 forks source link

What is sed in your Dockerfile? #11

Closed Vadorequest closed 7 years ago

Vadorequest commented 7 years ago

Hello, I'm trying to understand what you did in your Dockerfile but I don't find any reference for the sed command.

RUN sed -i s/my-ghost-blog.com/blog.alexellis.io/g config.js

I assume it's a third party software?

johnmccabe commented 7 years ago

Hey @Vadorequest, sed is a linux utility for making changes to text - https://www.gnu.org/software/sed/manual/sed.html#Introduction

In this RUN line its editing the config.js file, searching (s/) for the text my-ghost-blog.com and when it encounters it change it to blog.alexellis.io - and its doing it for every occurrence in the file (/g).

100% recommend reading up on sed, its amazingly useful.

Vadorequest commented 7 years ago

@alexellis Thanks for your blog about Ghost and Docker. It took me a while to figure out how to put all the pieces together, but I've got a good setup, very light, and super easy to install on any VPS. https://github.com/Vadorequest/eclats-de-voix

Thanks again!