mirror of
https://codeberg.org/demostf/api-client.git
synced 2026-06-03 16:44:09 +02:00
add download convenience method
This commit is contained in:
parent
a9c66dc43b
commit
1f752f36c7
5 changed files with 128 additions and 10 deletions
|
|
@ -5,12 +5,12 @@ docker rm -f api-test-fpm
|
|||
docker rm -f api-test
|
||||
|
||||
mkdir -p /tmp/api-test-data
|
||||
chmod 0777 /tmp/api-test-data
|
||||
chmod -R 0777 /tmp/api-test-data
|
||||
|
||||
docker run -d --name api-test-db -e POSTGRES_PASSWORD=test -p 15432:5432 demostf/db
|
||||
docker run -d --name api-test-fpm --link api-test-db:db -v /tmp/api-test-data:/demos \
|
||||
-e DEMO_ROOT=/demos -e DEMO_HOST=localhost -e DB_TYPE=pgsql \
|
||||
-e DB_HOST=db -e DB_PORT=5432 -e DB_DATABASE=postgres -e DB_USERNAME=postgres \
|
||||
-e DB_PASSWORD=test -e APP_ROOT=http://api.localhost -e EDIT_SECRET=edit \
|
||||
-e DB_PASSWORD=test -e APP_ROOT=http://localhost:8888 -e EDIT_SECRET=edit \
|
||||
demostf/api
|
||||
docker run -d --name api-test --link api-test-fpm:api -p 8888:80 demostf/api-nginx-test
|
||||
docker run -d --name api-test --link api-test-fpm:api -v /tmp/api-test-data:/demos -p 8888:80 demostf/api-nginx-test
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue