https://github.com/slok/docker-octopress
Octopress container
https://github.com/slok/docker-octopress
Last synced: 6 months ago
JSON representation
Octopress container
- Host: GitHub
- URL: https://github.com/slok/docker-octopress
- Owner: slok
- License: mit
- Created: 2014-07-25T18:51:39.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2015-03-31T08:30:50.000Z (over 10 years ago)
- Last Synced: 2025-02-16T07:55:41.279Z (8 months ago)
- Language: Shell
- Size: 137 KB
- Stars: 2
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
docker-octopress
================Customize to your octopress project (Dockerfile)
--------------------------------------##Locale
Set the locale of your octopress project:
# Set correct local
RUN locale-gen es_ES.UTF-8
ENV LANG es_ES.UTF-8
ENV LC_CTYPE es_ES.UTF-8##Octopress project
Change the line in the Dockerfile to your octopress project (So we install the correct gem versions)
For example:
RUN git clone -b source https://github.com/ticketbis/ticketbis.github.io.git octopress
To a fresh and new octopress:
RUN git clone git://github.com/imathis/octopress.git octopress
Also is commented but if you have an octopress new fresh install you would like
to uncomment default theme installation:
RUN rake installRun the container
=================Run the docker container (will be removed when exit), map localhost 4000 port to
container 4000 port, and our /home/slok/projects/ path to /home/octopress/projects
container path:docker run --rm -it -p 4000:4000 -v /home/slok/projects/:/home/octopress/projects slok/octopress
Example: https://asciinema.org/a/11050