Skip to content

Commit

Permalink
build(misc): add latest tag to docker images for each release (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
DaveXiong authored Oct 23, 2024
1 parent 5c1e29a commit 021c0f4
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 15 deletions.
18 changes: 14 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,28 +39,38 @@ jobs:
context: .
file: ./docker/app-controller/Dockerfile
push: true
tags: "cloudnexusopsdockerhub/kraken-app-controller:${{ steps.vars.outputs.release-version }}"
tags: |
cloudnexusopsdockerhub/kraken-app-controller:${{ steps.vars.outputs.release-version }}
cloudnexusopsdockerhub/kraken-app-controller:latest
- name: Build kraken-app-hub container
uses: docker/build-push-action@v5
with:
context: .
file: ./docker/app-hub/Dockerfile
push: true
tags: "cloudnexusopsdockerhub/kraken-app-hub:${{ steps.vars.outputs.release-version }}"
tags: |
cloudnexusopsdockerhub/kraken-app-hub:${{ steps.vars.outputs.release-version }}
cloudnexusopsdockerhub/kraken-app-hub:latest
- name: Build kraken-app-agent container
uses: docker/build-push-action@v5
with:
context: .
file: ./docker/app-agent/Dockerfile
push: true
tags: "cloudnexusopsdockerhub/kraken-app-agent:${{ steps.vars.outputs.release-version }}"
tags: |
cloudnexusopsdockerhub/kraken-app-agent:${{ steps.vars.outputs.release-version }}
cloudnexusopsdockerhub/kraken-app-agent:latest
- name: Build kraken-app-portal container
uses: docker/build-push-action@v5
with:
context: .
file: ./docker/app-portal/Dockerfile
push: true
tags: "cloudnexusopsdockerhub/kraken-app-portal:${{ steps.vars.outputs.release-version }}"
tags: |
cloudnexusopsdockerhub/kraken-app-portal:${{ steps.vars.outputs.release-version }}
cloudnexusopsdockerhub/kraken-app-portal:latest
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ cd docker
docker-compose up
```

If all services start correctly, the following servers will be accessible:
If all services start correctly, the following servers will be accessible(The default login is **admin/admin**):

- Portal: http://localhost:3000
- Controller: http://localhost:8001
Expand All @@ -79,8 +79,8 @@ For a more customizable setup, you can compile and run the project from the sour

Before compile the source code, ensure you have the following prerequisites:

- Maven (https://maven.apache.org)
- JDK 17 or later
- [Maven] (https://maven.apache.org)
- [JDK 17 or later](https://openjdk.org/)
- NodeJS 20 or later (https://nodejs.org/en)
- NPM

Expand Down
8 changes: 4 additions & 4 deletions docker/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,15 @@ services:
networks:
- kraken-dev
kraken-app-portal:
image: cloudnexusopsdockerhub/kraken-app-portal:1.0.1
image: cloudnexusopsdockerhub/kraken-app-portal:latest
ports:
- '3000:8080'
environment:
RUNTIME_BASE_API: http://localhost:8001
networks:
- kraken-dev
kraken-app-hub:
image: cloudnexusopsdockerhub/kraken-app-hub:1.0.1
image: cloudnexusopsdockerhub/kraken-app-hub:latest
volumes:
- >-
./app-hub/application-default.yaml:/opt/app/config/application-default.yaml:ro
Expand All @@ -64,7 +64,7 @@ services:
networks:
- kraken-dev
kraken-app-controller:
image: cloudnexusopsdockerhub/kraken-app-controller:1.0.1
image: cloudnexusopsdockerhub/kraken-app-controller:latest
volumes:
- >-
./app-controller/application-default.yaml:/opt/app/config/application-default.yaml:ro
Expand All @@ -78,7 +78,7 @@ services:
networks:
- kraken-dev
kraken-app-agent:
image: cloudnexusopsdockerhub/kraken-app-agent:1.1.1
image: cloudnexusopsdockerhub/kraken-app-agent:latest
volumes:
- >-
./app-agent/application-default.yaml:/opt/app/config/application-default.yaml:ro
Expand Down
8 changes: 4 additions & 4 deletions docker/dockerBuild.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
# execute this script from the root of the project

# Build the docker image for the api-hub
docker buildx build -t mycloudnexus/kraken-app-hub:latest -f ./docker/app-hub/Dockerfile .
docker buildx build -t cloudnexusopsdockerhub/kraken-app-hub:latest -f ./docker/app-hub/Dockerfile .

# Build the docker image for the api-agent
docker buildx build -t mycloudnexus/kraken-app-agent:latest -f ./docker/app-agent/Dockerfile .
docker buildx build -t cloudnexusopsdockerhub/kraken-app-agent:latest -f ./docker/app-agent/Dockerfile .

# Build the docker image for the api-controller
docker buildx build -t mycloudnexus/kraken-app-controller:latest -f ./docker/app-controller/Dockerfile .
docker buildx build -t cloudnexusopsdockerhub/kraken-app-controller:latest -f ./docker/app-controller/Dockerfile .


# Build the docker image for the portal-app
docker buildx build -t mycloudnexus/kraken-app-portal:latest -f ./docker/app-portal/Dockerfile .
docker buildx build -t cloudnexusopsdockerhub/kraken-app-portal:latest -f ./docker/app-portal/Dockerfile .

0 comments on commit 021c0f4

Please sign in to comment.