install and config phinx for migrations

This commit is contained in:
GotPPay
2018-06-25 14:45:13 +02:00
parent 8678e68792
commit 6f09dcf264
5 changed files with 799 additions and 14 deletions

View File

@@ -1,9 +1,34 @@
FROM php:7.0-apache
#for frontend config
ENV REACT_APP_TEST_URL=http://localhost:8000/api-wiaas \
REACT_APP_PROD_URL=http://localhost:8000/api-wiaas \
REACT_APP_DEV_URL=http://legacy.wiaas.saburly.com/api-wiaas
#for api-wiaas config
ENV WIAAS_URL=http://legacy.wiaas.saburly.com
ENV DB_SERVER=db \
DB_NAME=ricoh_dash \
DB_USER=developer \
DB_PASS=developer
#for phinx config
ENV DEV_DB_HOST=db \
DEV_DB_NAME=ricoh_dash \
DEV_DB_USER=developer \
DEV_DB_PASS=developer
ENV PROD_DB_HOST=db \
PROD_DB_NAME=ricoh_dash \
PROD_DB_USER=developer \
PROD_DB_PASS=developer
ENV TEST_DB_HOST=db \
TEST_DB_NAME=ricoh_dash \
TEST_DB_USER=developer \
TEST_DB_PASS=developer
RUN apt-get update && apt-get install -y git unzip gnupg
RUN curl -sL https://deb.nodesource.com/setup_8.x | bash -
RUN apt-get install -y nodejs