Skip to content

Commit

Permalink
feat: add docker build manual and fix dockerhub push (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
Pil0tXia authored Aug 31, 2023
1 parent 30684f8 commit 9162540
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,17 @@ jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Login to DockerHub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
- name: Build and push
uses: docker/build-push-action@v3
uses: docker/build-push-action@v4
with:
push: true
tags: eventmesh/eventmesh-dashboard:latest
file: ./docker/Dockerfile
context: ./
tags: apache/eventmesh-dashboard:latest
file: docker/Dockerfile
context: .
20 changes: 20 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,26 @@ You can start editing the page by modifying `pages/index.tsx`. The page auto-upd

The `pages/api` directory is mapped to `/api/*`. Files in this directory are treated as [API routes](https://nextjs.org/docs/api-routes/introduction) instead of React pages.

## Getting Started with Docker

Pull the image and run the container by following commands:

```
docker pull apache/eventmesh-dashboard:latest
```

```
docker run -d --name eventmesh-dashboard -p 8080:80 -t apache/eventmesh-dashboard:latest
```

Open [http://localhost:8080](http://localhost:8080) in your browser to see the result.

You can also build a mirror of your own by executing the following command in the root of your git repository:

```
docker build -t <your-name>/eventmesh-dashboard:latest -f docker/Dockerfile .
```

## Learn More

To learn more about Next.js, take a look at the following resources:
Expand Down

0 comments on commit 9162540

Please sign in to comment.