Browse Source

Move the docker related content to a better folder

pull/142/head
Raymond Tau 5 years ago
parent
commit
98414fa447
16 changed files with 7 additions and 7 deletions
  1. +0
    -0
      docker/CONTRIBUTORS.rst
  2. +0
    -0
      docker/LICENSE.rst
  3. +7
    -7
      docker/README.rst
  4. +0
    -0
      docker/bootstrap.sh
  5. +0
    -0
      docker/build_docker.sh
  6. +0
    -0
      docker/docker-compose.example.yml
  7. +0
    -0
      docker/nginx/nginx.conf
  8. +0
    -0
      docker/nginx/sites-enabled/default
  9. +0
    -0
      docker/pinry/.gitignore
  10. +0
    -0
      docker/pinry/local_settings.example.py
  11. +0
    -0
      docker/scripts/_start_gunicorn.sh
  12. +0
    -0
      docker/scripts/gen_key.sh
  13. +0
    -0
      docker/scripts/start.sh
  14. +0
    -0
      docker/start_docker.sh
  15. +0
    -0
      docker/tests/http_status_code.sh
  16. +0
    -0
      docker/tests/test.sh

docker-contents/CONTRIBUTORS.rst → docker/CONTRIBUTORS.rst View File


docker-contents/LICENSE.rst → docker/LICENSE.rst View File


docker-contents/README.rst → docker/README.rst View File

@@ -16,14 +16,14 @@ Running this will get the latest version of pinry itself::

git clone https://github.com/pinry/pinry
cd pinry
./docker-contents/bootstrap.sh
./docker/bootstrap.sh

Now you can start your container by command like this::

# this is where your database and pins localted
mkdir data
# use absolute path for docker to avoid using default data-volume (we use directory instead)
./docker-contents/start_docker.sh `readlink -f data`
./docker/start_docker.sh `readlink -f data`

Please visit `http://your-ip` to visit your instance and register a new account, enjoy it.

@@ -41,7 +41,7 @@ Building docker-pinry again

Running this will build you a docker image with the latest version of pinry::

./docker-contents/build_docker.sh
./docker/build_docker.sh


Running docker-pinry in manual way
@@ -59,12 +59,12 @@ Then you have two choice to run docker-pinry

Fist one, with automaticlly configured default arguments::

./docker-contents/start_docker.sh /mnt/pinry
./docker/start_docker.sh /mnt/pinry


Second one, start docker by hand with customized arguments::

SETTINGS_PATH=$(readlink -f docker-contents/pinry/local_settings.py) \
SETTINGS_PATH=$(readlink -f docker/pinry/local_settings.py) \
DATA_PATH=$(readlink -f /mnt/pinry) \
sudo docker run -d=true -p=10000:80 \
-v=${DATA_PATH}:/data \
@@ -86,7 +86,7 @@ Running docker-pinry with docker-compose
Just config your ``docker-compose.yml`` and then run::

sudo pip install -U docker-compose
sudo docker-compose --project-directory docker-contents up -d
sudo docker-compose --project-directory docker up -d


Notes on the run commands
@@ -132,4 +132,4 @@ stronger database solution.

.. _official getting started guide: http://www.docker.io/gettingstarted/
.. _website: http://getpinry.com/
.. _additional pinry configuration settings: https://github.com/pinry/pinry/blob/master/docker-contents/pinry/local_settings.example.py
.. _additional pinry configuration settings: https://github.com/pinry/pinry/blob/master/docker/pinry/local_settings.example.py

docker-contents/bootstrap.sh → docker/bootstrap.sh View File


docker-contents/build_docker.sh → docker/build_docker.sh View File


docker-contents/docker-compose.example.yml → docker/docker-compose.example.yml View File


docker-contents/nginx/nginx.conf → docker/nginx/nginx.conf View File


docker-contents/nginx/sites-enabled/default → docker/nginx/sites-enabled/default View File


docker-contents/pinry/.gitignore → docker/pinry/.gitignore View File


docker-contents/pinry/local_settings.example.py → docker/pinry/local_settings.example.py View File


docker-contents/scripts/_start_gunicorn.sh → docker/scripts/_start_gunicorn.sh View File


docker-contents/scripts/gen_key.sh → docker/scripts/gen_key.sh View File


docker-contents/scripts/start.sh → docker/scripts/start.sh View File


docker-contents/start_docker.sh → docker/start_docker.sh View File


docker-contents/tests/http_status_code.sh → docker/tests/http_status_code.sh View File


docker-contents/tests/test.sh → docker/tests/test.sh View File


Loading…
Cancel
Save