Files
refstack/docker/nginx/refstack_dev.key

16 lines
887 B
Plaintext
Raw Normal View History

Local Refstack in Docker Main purpose of this path is providing a way how to easily create local env of Refstack API with from your latest code in Docker container. I should be helpful for testing new features and newcomers developers. run-in-docker [OPTIONS] [COMMAND] - run refstack container (if it is not running), upload latest project code into container and run Refstack API in it (default COMMAND is 'api-up'). Just run ./drun-in-docker, wait untill it finish and then check it on https://127.0.0.1 It is important to set env[REFSTACK_HOST] with public host for your local API. By default 127.0.0.1 is used, should work fine if you access to your local Refstack only from your localhost. You can customize Refstack API config with editing docker/templates/refstack.conf.tmpl. It is a bash template. You can use ${SOME_ENV_VARIABLE} in it. Available options: -r Force delete '${CONTAINER}' container and run it again -i Run container with isolated MySQL data. By default MySQL data stores in refstack_data_DATA-BASE-REVISON container It reuses if such container exists. If you want to drop DB data, just execute sudo docker rm refstack_data_DATA-BASE-REVISON -b Force delete '${IMAGE}' image and built it ag -d Turn on debug information -h Print usage message In-container commands: api-up - sync project and run Refstack API api-init-db - initialize Refstack database api-db-version - get current migration version of Refstack database api-sync - sync project files in contaner with project on host activate - activate python virtual env mysql - open mysql console Requirements: Docker 1.6 (How to update on Ubuntu http://www.ubuntuupdates.org/ppa/docker) Change-Id: I26422aecaf68af6c340ebcc2a8a36d2a4907d84c
2015-05-08 19:23:26 +03:00
-----BEGIN RSA PRIVATE KEY-----
MIICWwIBAAKBgQDCnxeCqV2vvybuUjP6BLhCsX314elpwP3huBUKD9STACip+MCL
J+Lpigx3mygQwyE/55RLg0AvfnaLq9VMRYW2vJCRoeUAprafqoll4x9n/lNEcAWn
B4I2aDTqiflfPD1vePSIQ/db/5Q2JgzbVVB7ewScO5653eTCyQJgXt0teQIDAQAB
AoGAaPWDqGPOsslUJZMPlPaWqOEwHTsIto/uW5z7O8Ht0plzVLdin6mTJn/c2WRD
50ZU2DH8N/1A0FxTcl/pWIjl4wZPDOQ3W8EVcQ30gqV1vunXOi5jDGulCv0nsDXK
YifHxRDehr+ND20IqsQFv+k4PBBTcOMJ+7YpM+DrLubNAkECQQDmOsKF1jumAMP9
CIkJ8wzXIzAk07w4QXLK1DMoSQVHI0Zz0KjCyJNNbR1w5J7c3QD4KWbIt/PSWuz/
L+/G6YTjAkEA2Gf7AhFRv1cLg/l/1SwXtVb9MOh7Gf27XuTZeKyV202Fq0y6FhK/
AQPPQfWQYcsrLkKwegIERtaY34ALLQPu8wJAUBsz4cOH35u2lc0peXfDCPwqXTX6
8Iv9OAubfTHjDzx74AJDJfsKHc+Qhd5WVDzlgHNPWxl+UbvnaGcyg8BuxwJAXVAA
wPR83leHRKH5yA6aLnxS8prcMenhuFpPl6Q7ffOgdqu/9bKhn6tn3BYp6rEzbmAd
Po7OD0mLY5wPtZpjlwJAShmD4/1gjmV1aYAxQs6gPDDCr5oycn7jyta59gcwKdAv
zO5eKW1jMd+gg4jk3TiuLECdorUoGGbvIxEeP1gGBA==
-----END RSA PRIVATE KEY-----