<commit_before>docker-sculpin
==============

A basic docker image for Sculpin, the PHP static site generator

Building the base image
-----------------------

To create the base image `timani/sculpin`, execute the following command on the tutum-docker-php folder:

    docker build -t timani/sclupin .


Running your Sculpin docker image
------------------------------------

Start your image binding the external ports 8000 in all interfaces to your container:

    docker run -t -i -p 8000:8000 sculpin /bin/bash

Test your deployment:

    curl http://localhost:8000

Hello world!


Loading your own Sculpin site
-----------------------------------

This image can be used as a base image for your Sculpin site. Create a new `Dockerfile` in your 
PHP application folder with the following contents:

    FROM timani/sclupin

After that, build the new `Dockerfile`:

    docker build -t username/my-sculpin-site .

And test it:

    docker run -d -p 8000:8000 username/my-sculpin-site

Test your deployment:

    curl http://localhost:8000

That's it!


Loading your custom PHP application with composer requirements
--------------------------------------------------------------

Create a Dockerfile like the following:

    FROM timani/sculpin
    RUN apt-get update && apt-get install -yq git && rm -rf /var/lib/apt/lists/*
    RUN rm -fr /var/www
    ADD . /var/www
    RUN composer install

- Replacing `git` with any dependencies that your composer packages might need.
- Add your php application to `/var/www`<commit_msg>Update with direction on how to build<commit_after>docker-sculpin
==============

A basic docker image for Sculpin, the PHP static site generator

Building the base image
-----------------------

To create the base image `timani/sculpin`, execute the following command on the tutum-docker-php folder:

    docker build -t timani/sclupin .


Running your Sculpin docker image
------------------------------------

Start your image binding the external ports 8000 in all interfaces to your container:

    docker run -t -i -p 8000:8000 sculpin /bin/bash

Test your deployment:

    curl http://localhost:8000

Hello world!


Loading your own Sculpin site
-----------------------------------

This image can be used as a base image for your Sculpin site. Create a new `Dockerfile` in your 
PHP application folder with the following contents:

    FROM timani/sclupin

After that, build the new `Dockerfile`:

    docker build -t username/my-sculpin-site .

And test it:

    docker run -d -p 8000:8000 username/my-sculpin-site

Test your deployment:

    git clone git clone https://github.com/sculpin/sculpin-blog-skeleton.git example-site
    cd example-site 
    sculpin.phar install
    sculpin.phar generate --watch --server

That's it!


Loading your custom PHP application with composer requirements
--------------------------------------------------------------

Create a Dockerfile like the following:

    FROM timani/sculpin
    RUN apt-get update && apt-get install -yq git && rm -rf /var/lib/apt/lists/*
    RUN rm -fr /var/www
    ADD . /var/www
    RUN composer install

- Replacing `git` with any dependencies that your composer packages might need.
- Add your php application to `/var/www`
{'fraction_non_alphanumeric': 0.1629560915275201, 'fraction_numerical': 0.016079158936301793, 'mean_word_length': 2.2742914979757085, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 1, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1578840', 'n_tokens_mistral': 958, 'n_tokens_neox': 841, 'n_words': 375}