Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Main #5

Open
wants to merge 18 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions .github/workflows/Main-CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,16 @@ jobs:
- name: Checkout
uses: actions/checkout@v3


- name: Set up OpenJDK 19
uses: actions/setup-java@v2
with:
java-version: '19'
distribution: 'adopt'

- name: Build Java code
run: |
javac ./src/Main.java

- name: Login to Docker Hub
uses: docker/login-action@v2
with:
Expand All @@ -26,7 +35,7 @@ jobs:
uses: docker/setup-buildx-action@v2


- name: Build and run docker-image with the Dockerfile
- name: Build the docker-image with the Dockerfile
run: |
docker build --tag registeration-process:v2.0 .

Expand Down
16 changes: 9 additions & 7 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ services:
student-statistics-process:
build: .
image: 5aleda4rf/student-statistics-process:latest
# volumes:
# - C:\Users\5aleda4rf\IdeaProjects\data:/app/data/batch
volumes:
- ./data:/app/data/batch
ports:
- "80:80"
stdin_open: true
Expand All @@ -14,14 +14,16 @@ services:
registeration-process:
build: .
image: 5aleda4rf/registeration-process:latest
# volumes:
# - C:\Users\5aleda4rf\IdeaProjects\data:/app/data/batch
volumes:
- ./data:/app/data/batch
ports:
- "81:81"
stdin_open: true
tty: true


# Note:- Volumes Commented, in GitHub because you need to define the local path.
# If you download this file in your pc, only uncomment this and put your local path to mount it and run
# Like This:- Your Local Path:/app/data/batch

# Note:- Volumes Notes,
# If you download this file in your pc, only put your local path instead of "./data" to mount it and run
# Like This:- Your Local Path:/app/data/batch

Loading