-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request !40 from wu/master
- Loading branch information
Showing
1 changed file
with
5 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,7 @@ FROM openjdk:8-jdk | |
RUN mkdir -p /var/lib/om-kafka | ||
|
||
WORKDIR /var/lib/om-kafka | ||
COPY . /var/lib/om-kafka | ||
|
||
# Install basic software support | ||
RUN apt-get update && \ | ||
|
@@ -15,11 +16,10 @@ ENV MAVEN_HOEM=/var/lib/om-kafka/apache-maven-3.8.8 | |
|
||
ENV PATH=$MAVEN_HOEM/bin:$PATH | ||
|
||
MAINTAINER zhongjun <[email protected]> | ||
RUN mvn clean install assembly:single -Dmaven.test.skip && \ | ||
mv ./target/omkafka-1.0-SNAPSHOT.jar ./om-kafka.jar | ||
|
||
RUN git clone https://gitee.com/opensourceway/om-kafka.git && \ | ||
cd om-kafka && \ | ||
mvn clean install assembly:single -Dmaven.test.skip && \ | ||
mv ./target/omkafka-1.0-SNAPSHOT.jar ../om-kafka.jar | ||
RUN useradd -u 1000 omkafka -s /bin/bash -m -U | ||
|
||
USER omkafka | ||
CMD java -jar om-kafka.jar |