Skip to content

Commit

Permalink
Merge branch 'develop_3x' into test/addresspart-unit-tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sayed4900 authored Mar 19, 2024
2 parents f06ed37 + 7c58d3a commit 590e3f1
Show file tree
Hide file tree
Showing 78 changed files with 15,428 additions and 795 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/frontend-qa.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ name: OpenELis Frontend QA framework workflow
on:
push:
branches: [ 'develop_3x' ]
pull_request:
branches: ['develop_3x']
workflow_dispatch:
jobs:
install:
Expand Down
27 changes: 27 additions & 0 deletions .github/workflows/label-merge-conflict.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Auto Label Conflicts

permissions:
issues: write
pull-requests: write

on:
push:
branches: [develop_3x]
pull_request:
branches: [develop_3x]

jobs:
auto-label:
if: github.repository == 'I-TECH-UW/OpenELIS-Global-2'
runs-on: ubuntu-latest
steps:
- uses: prince-chrismc/label-merge-conflicts-action@v2
with:
conflict_label_name: "merge conflict"
github_token: ${{ secrets.GITHUB_TOKEN }}
max_retries: 5
wait_ms: 15000
detect_merge_changes: false
conflict_comment: |
:wave: Hi, @${author},
Conflicts have been detected against the base branch. Please rebase your branch against the base branch.
12 changes: 12 additions & 0 deletions .github/workflows/publish-frontend-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ name: Publish 3.X Dev FrontEnd Docker image
on:
push:
branches: [ 'develop_3x']
pull_request:
branches: [develop_3x]
workflow_dispatch:


Expand Down Expand Up @@ -37,6 +39,7 @@ jobs:
uses: docker/setup-buildx-action@v3

- name: Login to DockerHub
if: github.event_name == 'push'
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
Expand All @@ -50,6 +53,7 @@ jobs:
images: ${{ env.DOCKER_NAME }}

- name: Build and push Docker image
if: github.event_name == 'push'
uses: docker/build-push-action@v5
with:
context: ./frontend
Expand All @@ -58,3 +62,11 @@ jobs:
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=registry,ref=${{github.repository}}:latest
cache-to: type=inline

- name: Build Docker image
if: github.event_name == 'pull_request'
uses: docker/build-push-action@v5
with:
context: ./frontend
push: false

14 changes: 14 additions & 0 deletions .github/workflows/publish-frontend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ name: Publish 3.X FrontEnd Docker image
on:
push:
branches: [ 'develop_3x']
pull_request:
branches: [develop_3x]
release:
types: [published]
workflow_dispatch:
Expand Down Expand Up @@ -38,6 +40,7 @@ jobs:
uses: docker/setup-buildx-action@v3

- name: Log in to the Container registry
if: github.event_name == 'push'
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
Expand All @@ -51,6 +54,7 @@ jobs:
images: ${{ env.DOCKER_NAME }}

- name: Build and push Docker image
if: github.event_name == 'push'
uses: docker/build-push-action@v5
with:
context: ./frontend
Expand All @@ -60,3 +64,13 @@ jobs:
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=registry,ref=${{github.repository}}:latest
cache-to: type=inline

- name: Build Docker image
if: github.event_name == 'pull_request'
uses: docker/build-push-action@v5
with:
context: ./frontend
file: ./frontend/Dockerfile.prod
push: false


12 changes: 12 additions & 0 deletions .gitpod.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# This configuration file is created to run on Gitpod.
# Please adjust to your needs (see https://www.gitpod.io/docs/introduction/learn-gitpod/gitpod-yaml)
# and commit this file to your remote git repository to share the goodness with others.

# Learn more from ready-to-use templates: https://www.gitpod.io/docs/introduction/getting-started/quickstart

tasks:
- name: Build the Dependencies and Start the docker containers
init: cd dataexport && mvn clean install -DskipTests && cd .. && mvn clean install
command: docker-compose -f dev.docker-compose.yml up -d


13 changes: 9 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,20 @@ You can find more information on how to set up OpenELIS at our [docs page](http:
docker-compose -f build.docker-compose.yml up -d --build

#### Running docker compose With locally compiled/built Artifacts (ie the War file and React code) For Developers
1. Clone the Repository
1. Fork the [OpenELIS-Global Repository](https://github.com/I-TECH-UW/OpenELIS-Global-2.git) and clone the forked repo. The `username` below is the `username` of your Github profile.

git clone https://github.com/I-TECH-UW/OpenELIS-Global-2.git
git clone https://github.com/username/OpenELIS-Global-2.git

2. innitialize and build sub modules

cd OpenELIS-Global-2
git submodule update --init --recursive
cd OpenELIS-Global-2/dataexport
cd dataexport
mvn clean install -DskipTests

3. Build the War file

cd OpenELIS-Global-2
cd ..
mvn clean install -DskipTests

4. Start the containers to mount the locally compiled artifacts
Expand All @@ -52,3 +53,7 @@ You can find more information on how to set up OpenELIS at our [docs page](http:
| Legacy UI | https://localhost/api/OpenELIS-Global/  | admin: adminADMIN! |
| New React UI | https://localhost/ | admin: adminADMIN!

**Note:** If your browser indicates that the website is not secure after accessing any of these links, simply follow these steps:
1. Scroll down on the warning page.
2. Click on the "Advanced" button.
3. Finally, click on "Proceed to https://localhost" to access the development environment.
Loading

1 comment on commit 590e3f1

@tendomart
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's this PR about?

Please sign in to comment.