We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e7a2406 commit 9bf5028Copy full SHA for 9bf5028
docker-compose.test.yml
@@ -0,0 +1,12 @@
1
+version: '3.7'
2
+
3
+services:
4
+ sup:
5
+ build: .
6
+ command: /root/test/test-command.sh
7
+ environment:
8
+ - STARTUP_COMMAND1=composer --version
9
+ - STARTUP_COMMAND2=php --version
10
+ - STARTUP_COMMAND3=chmod +x /root/test/test-command.sh
11
+ volumes:
12
+ - ./test:/root/test
test/test-command.sh
@@ -0,0 +1,16 @@
+#!/usr/bin/env bash
+set -e
+# Clean the app folder
+cd /opt/
+rm -rf app
+# Create laravel project into app
+composer create-project --prefer-dist laravel/laravel app
+# Start services in the background.
13
+runsvdir /etc/service &
14
15
+# Check if the Services are available
16
+wait-for-it.sh --host=localhost --port=8080
0 commit comments