Update containers module

This commit is contained in:
Alexander Sharov 2018-09-25 21:45:42 +04:00
parent 583cf2f00f
commit 57a49ce3f2
5 changed files with 29 additions and 8 deletions

16
pom.xml
View file

@ -18,6 +18,20 @@
<modules> <modules>
<module>udc-backend</module> <module>udc-backend</module>
<!--<module>udc-containers</module>--> <module>udc-containers</module>
</modules> </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> </project>

View file

@ -24,7 +24,7 @@
<docker.skip.build>true</docker.skip.build> <docker.skip.build>true</docker.skip.build>
<docker.skip.push>true</docker.skip.push> <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.repository>university-course</docker.repository>
<docker.registry.host>localhost</docker.registry.host> <docker.registry.host>localhost</docker.registry.host>
</properties> </properties>

View file

@ -41,8 +41,8 @@
<configuration> <configuration>
<artifactItems> <artifactItems>
<artifactItem> <artifactItem>
<groupId>TODO</groupId> <groupId>org.springframework.samples</groupId>
<artifactId>TODO</artifactId> <artifactId>udc-backend</artifactId>
<version>${project.version}</version> <version>${project.version}</version>
<type>jar</type> <type>jar</type>
<overWrite>true</overWrite> <overWrite>true</overWrite>

View file

@ -1,10 +1,17 @@
FROM ${docker.baseImage} FROM ${docker.baseImage}
EXPOSE 8080 ENV LANG=en_US.UTF-8 \
ENTRYPOINT ["/docker-entrypoint.sh"] LANGUAGE=en_US.UTF-8 \
WORKDIR "/udc/apps/petclinic" 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 RUN chmod +x /docker-entrypoint.sh
COPY todo.jar /udc/apps/petclinic/todo.jar COPY todo.jar /udc/apps/petclinic/todo.jar