mirror of https://github.com/veops/cmdb.git
feat: support docker deploy mysql and redis
Signed-off-by: ashing <axingfly@gmail.com>
This commit is contained in:
parent
b8fa68ec8d
commit
9e5c926bfd
8
Makefile
8
Makefile
|
@ -15,10 +15,18 @@ env:
|
||||||
npm install yarn && \
|
npm install yarn && \
|
||||||
make deps
|
make deps
|
||||||
|
|
||||||
|
docker-mysql:
|
||||||
|
@docker run --name some-mysql -p 3306:3306 -e MYSQL_ROOT_PASSWORD=my-secret-pw -d mysql:latest
|
||||||
|
|
||||||
|
docker-redis:
|
||||||
|
@docker run --name some-redis -p 6379:6379 -d redis:latest
|
||||||
|
|
||||||
deps:
|
deps:
|
||||||
|
cd cmdb-api && \
|
||||||
pipenv install --dev && \
|
pipenv install --dev && \
|
||||||
pipenv run flask db-setup && \
|
pipenv run flask db-setup && \
|
||||||
pipenv run flask cmdb-init-cache && \
|
pipenv run flask cmdb-init-cache && \
|
||||||
|
cd .. && \
|
||||||
cd cmdb-ui && yarn install && cd ..
|
cd cmdb-ui && yarn install && cd ..
|
||||||
|
|
||||||
api:
|
api:
|
||||||
|
|
Loading…
Reference in New Issue