mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-19 05:55:51 +00:00
Update containers module
This commit is contained in:
parent
583cf2f00f
commit
57a49ce3f2
5 changed files with 29 additions and 8 deletions
16
pom.xml
16
pom.xml
|
@ -18,6 +18,20 @@
|
|||
|
||||
<modules>
|
||||
<module>udc-backend</module>
|
||||
<!--<module>udc-containers</module>-->
|
||||
<module>udc-containers</module>
|
||||
</modules>
|
||||
|
||||
<build>
|
||||
<pluginManagement>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-deploy-plugin</artifactId>
|
||||
<configuration>
|
||||
<skip>true</skip>
|
||||
</configuration>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</pluginManagement>
|
||||
</build>
|
||||
</project>
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
|
||||
<docker.skip.build>true</docker.skip.build>
|
||||
<docker.skip.push>true</docker.skip.push>
|
||||
<docker.baseImage>TODO</docker.baseImage>
|
||||
<docker.baseImage>openjdk:8-jre</docker.baseImage>
|
||||
<docker.repository>university-course</docker.repository>
|
||||
<docker.registry.host>localhost</docker.registry.host>
|
||||
</properties>
|
||||
|
|
|
@ -41,8 +41,8 @@
|
|||
<configuration>
|
||||
<artifactItems>
|
||||
<artifactItem>
|
||||
<groupId>TODO</groupId>
|
||||
<artifactId>TODO</artifactId>
|
||||
<groupId>org.springframework.samples</groupId>
|
||||
<artifactId>udc-backend</artifactId>
|
||||
<version>${project.version}</version>
|
||||
<type>jar</type>
|
||||
<overWrite>true</overWrite>
|
||||
|
|
|
@ -1,10 +1,17 @@
|
|||
FROM ${docker.baseImage}
|
||||
|
||||
EXPOSE 8080
|
||||
ENTRYPOINT ["/docker-entrypoint.sh"]
|
||||
WORKDIR "/udc/apps/petclinic"
|
||||
ENV LANG=en_US.UTF-8 \
|
||||
LANGUAGE=en_US.UTF-8 \
|
||||
LC_ALL=en_US.UTF-8
|
||||
|
||||
COPY docker-entrypoint.sh /docker-entrypoint.sh
|
||||
ENV BASE_DIR='/udc/apps/petclinic'
|
||||
|
||||
EXPOSE 8080
|
||||
ENTRYPOINT ["/entrypoint.sh"]
|
||||
|
||||
RUN mkdir -p ${BASE_DIR}
|
||||
|
||||
COPY entrypoint.sh /entrypoint.sh
|
||||
RUN chmod +x /docker-entrypoint.sh
|
||||
|
||||
COPY todo.jar /udc/apps/petclinic/todo.jar
|
||||
|
|
Loading…
Reference in a new issue