Skip to content

Commit

Permalink
HDDS-1667. Docker compose file may referring to incorrect docker imag…
Browse files Browse the repository at this point in the history
…e name. Contributed by Eric Yang.
  • Loading branch information
elek committed Jul 2, 2019
1 parent d8bac50 commit 2f4b37b
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
4 changes: 0 additions & 4 deletions hadoop-ozone/dist/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
<properties>
<file.encoding>UTF-8</file.encoding>
<downloadSources>true</downloadSources>
<docker.image>apache/ozone:${project.version}</docker.image>
<docker.hadoop-runner.version>jdk11</docker.hadoop-runner.version>
</properties>

Expand Down Expand Up @@ -315,9 +314,6 @@
<profiles>
<profile>
<id>docker-build</id>
<properties>
<docker.image>${user.name}/ozone:${project.version}</docker.image>
</properties>
<build>
<plugins>
<plugin>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@
version: "3"
services:
datanode:
image: ${user.name}/ozone:${project.version}
image: ${docker.image}
ports:
- 9864
command: ["/opt/hadoop/bin/ozone","datanode"]
env_file:
- ./docker-config
om:
image: ${user.name}/ozone:${project.version}
image: ${docker.image}
ports:
- 9874:9874
environment:
Expand All @@ -33,7 +33,7 @@ services:
- ./docker-config
command: ["/opt/hadoop/bin/ozone","om"]
scm:
image: ${user.name}/ozone:${project.version}
image: ${docker.image}
ports:
- 9876:9876
env_file:
Expand All @@ -42,7 +42,7 @@ services:
ENSURE_SCM_INITIALIZED: /data/metadata/scm/current/VERSION
command: ["/opt/hadoop/bin/ozone","scm"]
ozone_client:
image: ${user.name}/ozone:${project.version}
image: ${docker.image}
ports:
- 9869
command: ["tail", "-f","/etc/passwd"]
Expand Down
7 changes: 7 additions & 0 deletions hadoop-ozone/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
<declared.ozone.version>${ozone.version}</declared.ozone.version>
<maven-surefire-plugin.version>3.0.0-M1</maven-surefire-plugin.version>
<guice.version>4.0</guice.version>
<docker.image>apache/ozone:${project.version}</docker.image>
</properties>
<modules>
<module>common</module>
Expand Down Expand Up @@ -365,6 +366,12 @@
</build>

<profiles>
<profile>
<id>docker-build</id>
<properties>
<docker.image>${user.name}/ozone:${project.version}</docker.image>
</properties>
</profile>
<profile>
<id>parallel-tests</id>
<build>
Expand Down

0 comments on commit 2f4b37b

Please sign in to comment.