Skip to content

Commit

Permalink
feat: force to build compose project before starting container in dev…
Browse files Browse the repository at this point in the history
… mode
  • Loading branch information
swollner committed Mar 13, 2023
1 parent cba313c commit 9383cd8
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 1 deletion.
5 changes: 4 additions & 1 deletion deploy/docker/compose/src/main/compose/1_connector-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@ services:

services-edu-connector-service:
volumes:
- "${GIT_ROOT}/services-connector/service/src/main/php/vendor:/var/www/html/vendor"
- type: bind
source: ${GIT_ROOT}/services-connector/service/src/main/php/vendor
target: /var/www/html/vendor

- "${GIT_ROOT}/services-connector/service/src/main/php/:/var/www/html/"

# - "${GIT_ROOT}/services-connector/service/src/main/php/:/var/www/html/"
Expand Down
37 changes: 37 additions & 0 deletions service/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -61,4 +61,41 @@
</plugins>
</build>

<profiles>
<profile>
<id>dev</id>

<activation>
<activeByDefault>false</activeByDefault>
<property>
<name>env.DEV</name>
<value>true</value>
</property>
</activation>
<build>
<plugins>
<plugin>
<groupId>uk.co.codezen</groupId>
<artifactId>composer-maven-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>install</goal>
</goals>
<phase>generate-sources</phase>
<configuration>
<phpPath>php</phpPath>
<composerJsonPath>${project.basedir}/src/main/php/composer.json</composerJsonPath>
<buildDirectory>${project.basedir}/src/main/php</buildDirectory>
<withDev>true</withDev>
<withOptimisedAutoloader>false</withOptimisedAutoloader>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>

</project>

0 comments on commit 9383cd8

Please sign in to comment.