Skip to content

Commit

Permalink
Merge pull request #2 from a645162/dev
Browse files Browse the repository at this point in the history
feat(CI/CD): Build Docker Image
  • Loading branch information
a645162 authored Sep 11, 2024
2 parents dcb50f1 + 2a529c0 commit 1e27d4b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ jobs:
uses: docker/build-push-action@v5
with:
context: .
file: Docker/Dockerfile
file: Dockerfile
platforms:
linux/amd64,
linux/arm64,
Expand Down
8 changes: 8 additions & 0 deletions build_with_docker.py
Original file line number Diff line number Diff line change
@@ -1,18 +1,26 @@
import os

image_name = "group-center-builder"
print("=" * 20)
print(f"Build Jar({image_name}) using Docker")
print("=" * 20)

# Build Image
print("=" * 20)
print("== Build Image")
os.system(f"docker build -t {image_name} -f Docker/Dockerfile-Build .")

# Run Containers
print("=" * 20)
print("== Run Containers")
os.system(f"docker run --rm -v .:/usr/local/group-center {image_name}")

# Remove Image
print("=" * 20)
print("== Remove Image")
os.system(f"docker rmi {image_name}")

# Done
print("=" * 20)
print("== Done")
print("=" * 20)

0 comments on commit 1e27d4b

Please sign in to comment.