Skip to content

Commit

Permalink
feat: support for building and running with docker
Browse files Browse the repository at this point in the history
  • Loading branch information
Pil0tXia committed Oct 4, 2023
1 parent b4513f8 commit 1941e31
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 6 deletions.
23 changes: 22 additions & 1 deletion eventmesh-console/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,24 @@
# Getting Started

// TODO
## Build on source code

```
cd eventmesh-console
./gradlew clean bootJar
```

```
java -jar build/libs/eventmesh-console-0.0.1-SNAPSHOT.jar
```

## Build and Run with Docker

```
cd eventmesh-console
./gradlew clean bootJar
docker build -t yourname/eventmesh-console -f docker/Dockerfile .
```

```
docker run -d --name eventmesh-console -p 8080:8080 yourname/eventmesh-console
```
8 changes: 3 additions & 5 deletions eventmesh-console/docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,8 @@
# limitations under the License.
#

# TODO to be verified
FROM java:8
FROM openjdk:8-jre-alpine
VOLUME /tmp
ADD eventmesh-admin-*.jar eventmesh-admin.jar
RUN sh -c 'touch /eventmesh-admin.jar'
COPY build/libs/eventmesh-console-*.jar eventmesh-console.jar
ENV JAVA_OPTS=""
ENTRYPOINT [ "sh", "-c", "java $JAVA_OPTS -jar /eventmesh-admin.jar" ]
ENTRYPOINT ["sh", "-c", "java $JAVA_OPTS -jar /eventmesh-console.jar"]

0 comments on commit 1941e31

Please sign in to comment.