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

Marge swiftparcel_web into development #120

Merged
merged 126 commits into from
Oct 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
126 commits
Select commit Hold shift + click to select a range
1385a43
#110: creating new branch
SaintAngeLs Jan 13, 2024
d2cad19
#110: migrating to docker-space
SaintAngeLs Jan 13, 2024
90011b7
#110: migrating to docker-space
SaintAngeLs Jan 13, 2024
3224210
#110: SwiftParcel directory update
SaintAngeLs Jan 13, 2024
d0cd674
#110: appsettings updates
SaintAngeLs Jan 13, 2024
30bf22a
#112: add frontend from frontendUpdate to backend from development
an2508374 Jan 13, 2024
e8189d5
#112: update ntrada.yml file in ApiGateway
an2508374 Jan 13, 2024
37132d6
#112: add ClientId and ClientSecret for Google Authentication in Iden…
an2508374 Jan 13, 2024
18c5aa5
#112: update sign-up post response in IdentityService
an2508374 Jan 13, 2024
bbe727b
#112: update orders post response in OrdersService
an2508374 Jan 13, 2024
f4a48c0
#112: update parcels post response in ParcelsService
an2508374 Jan 13, 2024
b0fbf2a
#112: fix setting isCompany and vipPackage fields during adding new p…
an2508374 Jan 13, 2024
456dfbb
#112: update necessary validation for MiniCurrier in createInquiry
an2508374 Jan 13, 2024
a3136d9
#112: update get orders handler in OrdersService
an2508374 Jan 13, 2024
192eb9c
#112: update sync with backend of confirm and cancel for user
an2508374 Jan 13, 2024
70b7de9
#110: transfering deployment to droplet
SaintAngeLs Jan 14, 2024
bdad087
#113: update auth keys
eggwhat Jan 14, 2024
ee899e6
#113: update auth header
eggwhat Jan 14, 2024
90b5494
#113: fix typo
eggwhat Jan 14, 2024
2d75f94
#110: deviding appsettings into developemnt and production
SaintAngeLs Jan 14, 2024
8788b3d
#110: addin production environment to apigateway
SaintAngeLs Jan 14, 2024
c92cb52
#110: updating the scripts
SaintAngeLs Jan 14, 2024
23ba48a
#113: update ntrada file to fix registration
eggwhat Jan 15, 2024
5d0446a
#113: fix security issue in deliveries
eggwhat Jan 15, 2024
cb484c2
#113: fix security issue in deliveries
eggwhat Jan 15, 2024
442371f
#113: fix missing data extracted from mongo orders
eggwhat Jan 15, 2024
e04bdf8
#60: some fixes in inquiry details modal
an2508374 Jan 15, 2024
b4811b0
#60 (#95): update header for courier
an2508374 Jan 15, 2024
75afe4f
#60 (#95): add delivery page for courier
an2508374 Jan 15, 2024
b50af5c
#60 (#95): update delivery details modal for courier
an2508374 Jan 15, 2024
6e35c89
#60 (#94): some fixes in offer request details modal for office worker
an2508374 Jan 16, 2024
f5f5648
#60: update structure of user details modal for user
an2508374 Jan 16, 2024
f048c78
#60: update structure of order details modal for user
an2508374 Jan 16, 2024
99ec903
#60 (#94): update structure of offer request record for office worker
an2508374 Jan 16, 2024
6865e95
#60: add modal for orders filtering for user
an2508374 Jan 16, 2024
38a5e71
#60 (#94): update structure of inquiry filter modal for user and offi…
an2508374 Jan 16, 2024
4f0d032
#60 (#94): some fixes in inquiry and order filter modals for user and…
an2508374 Jan 16, 2024
920c068
#60 (#95): update structure of delivery filter modal for courier
an2508374 Jan 16, 2024
5f5637b
#60 (#95): fix nulls during filtering in courier and update titles
an2508374 Jan 16, 2024
e167b78
#60 (#95): add filtering for package info in deliveries for couriers
an2508374 Jan 16, 2024
7b59ab9
#60: add margins in modals for filtering
an2508374 Jan 16, 2024
597ee7d
#60: update keywords in modals for filtering to be case insensitive
an2508374 Jan 16, 2024
00ece00
#113: update authorization for deliveries
eggwhat Jan 16, 2024
b8d2f04
#113: add time limit for request to MiniCurrier
eggwhat Jan 16, 2024
9a99df7
#113: disable authorization for offers endpoint
eggwhat Jan 16, 2024
0f3a8f6
#60 (#95): update structure of delivery details modal for courier ope…
an2508374 Jan 17, 2024
6545dd9
#113: add local http requests file
eggwhat Jan 17, 2024
84ebaff
Merge remote-tracking branch 'origin/frontendFix2' into frontendFix2
an2508374 Jan 17, 2024
8a947da
#60 (#95): update logic of delivery details modal for courier operations
an2508374 Jan 17, 2024
2f15a42
#60: some updates at home page and modals for details
an2508374 Jan 17, 2024
94c6e74
#60: add option of checking order details at home page
an2508374 Jan 18, 2024
3eef638
#60: add option for adding order by id for user
an2508374 Jan 18, 2024
cfc215d
#60: fix creating inquiry and presenting offers for anonymous user
an2508374 Jan 18, 2024
9ee894d
#60: add option of sign in during inquiry creating for user
an2508374 Jan 18, 2024
fa87e3b
#110: providing the update from the previous commit
SaintAngeLs Jan 20, 2024
a52717e
#110: removing the frontend folder inside of the swiftparcel_web
SaintAngeLs Jan 20, 2024
c81330e
#110: removing the frontend folder inside of the swiftparcel_web
SaintAngeLs Jan 20, 2024
8eea115
#110: removing the frontend folder inside of the swiftparcel_web
SaintAngeLs Jan 20, 2024
e62d967
#110: resolving the frontendfix2 conflicts
SaintAngeLs Jan 20, 2024
48be870
#110: resolving the build issues
SaintAngeLs Jan 20, 2024
aa91122
#110: prometheus configuration update
SaintAngeLs Jan 20, 2024
e450a63
#110: deployment set up update
SaintAngeLs Jan 20, 2024
78fc180
#110: configuration files udpate
SaintAngeLs Jan 20, 2024
b09d0b6
#110: deployment action update
SaintAngeLs Jan 20, 2024
a691e42
#110: deployment action update
SaintAngeLs Jan 20, 2024
0b0ffb0
#110: deployment action update 2
SaintAngeLs Jan 20, 2024
7e304ef
#110: deployment action update 3
SaintAngeLs Jan 20, 2024
55cfd7f
#110: deployment action update 3
SaintAngeLs Jan 20, 2024
61b6517
#110: deployment action update 3
SaintAngeLs Jan 20, 2024
b6076b5
#110: deployment action update 4
SaintAngeLs Jan 20, 2024
2c82abc
#110: deployment action update 5 final
SaintAngeLs Jan 20, 2024
ba6484d
#110: deployment action update 5 final -> removing the network config…
SaintAngeLs Jan 20, 2024
0a18786
#110: deployment action update 5 final -> removing the network config…
SaintAngeLs Jan 20, 2024
55789aa
#110: update cloudDeployment configuration
SaintAngeLs Jan 20, 2024
9356f05
110: deployting configuration update
SaintAngeLs Jan 20, 2024
7c2635a
110: deployting configuration update
SaintAngeLs Jan 20, 2024
c019699
110: deployting configuration update
SaintAngeLs Jan 20, 2024
08051fc
#110: update cloudDeployment configuration
SaintAngeLs Jan 20, 2024
8555e82
#110: update cloudDeployment configuration
SaintAngeLs Jan 20, 2024
5de759f
#110: update cloudDeployment configuration
SaintAngeLs Jan 20, 2024
2de47f3
#110: update cloudDeployment configuration
SaintAngeLs Jan 20, 2024
e5ef286
#110: update cloudDeployment configuration
SaintAngeLs Jan 20, 2024
eee7ad8
#110: update cloudDeployment configuration
SaintAngeLs Jan 20, 2024
0609ea8
#110: update cloudDeployment configuration
SaintAngeLs Jan 20, 2024
5d0718e
#110: update cloudDeployment configuration
SaintAngeLs Jan 20, 2024
0962421
#110: frontend script dockerize.sh script update
SaintAngeLs Jan 21, 2024
d6d921e
#110: Dockerfile update
SaintAngeLs Jan 21, 2024
ea72098
#110: update the nginx configuration
SaintAngeLs Jan 21, 2024
da8aa43
110: droplet update
SaintAngeLs Jan 21, 2024
07cb0fa
110: deployment script update
SaintAngeLs Jan 21, 2024
4edb33a
110: deployment script update
SaintAngeLs Jan 21, 2024
d5cf676
#110: deployment script update
SaintAngeLs Jan 21, 2024
acc765b
#110: deployment script update
SaintAngeLs Jan 21, 2024
13bf7e3
#110: deployment script (with no --pull)
SaintAngeLs Jan 21, 2024
b28e041
110: swiftParcel frontend Dokcerfile update
SaintAngeLs Jan 21, 2024
89cd874
#110: adding the --no-cache flag
SaintAngeLs Jan 21, 2024
e8deca6
#110: adding the docker-compose pull in the workflow
SaintAngeLs Jan 21, 2024
19f4bc9
#110: update the workflow file
SaintAngeLs Jan 21, 2024
69275d2
#110: package.json update
SaintAngeLs Jan 21, 2024
535f471
#110: update the utils/api
SaintAngeLs Jan 21, 2024
ebaf7cf
#110: update the frontend configuration file
SaintAngeLs Jan 21, 2024
c80809b
#110: update the port frontned is running on
SaintAngeLs Jan 21, 2024
dbf52ad
#110: update the frontend configuration file
SaintAngeLs Jan 21, 2024
a2fb72a
#110: update the frontend image
SaintAngeLs Jan 21, 2024
505396b
#110: update the nginx.conf
SaintAngeLs Jan 21, 2024
cd5df8e
#110: nginx update
SaintAngeLs Jan 21, 2024
c5081d2
#110: update the nginx.conf
SaintAngeLs Jan 21, 2024
07576f6
#110: update the dockerfile fo the frontned
SaintAngeLs Jan 22, 2024
cff8a05
#110: update the dockerfile fo the frontned
SaintAngeLs Jan 22, 2024
022e9c2
#110: update the dockerfile fo the frontned
SaintAngeLs Jan 22, 2024
0bf3c06
#110: nginx update
SaintAngeLs Jan 22, 2024
2b44ac3
#110: nginx update
SaintAngeLs Jan 22, 2024
e513128
#110: nginx update
SaintAngeLs Jan 22, 2024
6fb5091
#110: nginx update
SaintAngeLs Jan 22, 2024
f7e6414
#110: nginx update
SaintAngeLs Jan 22, 2024
494cbf9
#110: nginx update
SaintAngeLs Jan 22, 2024
bf642e2
#110: nginx update
SaintAngeLs Jan 22, 2024
018926d
#110: nginx update
SaintAngeLs Jan 22, 2024
0422fd4
#110: nginx update
SaintAngeLs Jan 22, 2024
fa26a31
#110: nginx update
SaintAngeLs Jan 22, 2024
52e9d84
#110: nginx update
SaintAngeLs Jan 22, 2024
82c8264
#110: nginx update
SaintAngeLs Jan 22, 2024
569f40e
#110: nginx update
SaintAngeLs Jan 22, 2024
8ffc72f
#110: nginx update
SaintAngeLs Jan 22, 2024
6336aa9
#110: nginx update
SaintAngeLs Jan 23, 2024
6e1219b
#110: nginx update
SaintAngeLs Jan 23, 2024
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
57 changes: 57 additions & 0 deletions .github/workflows/cloudDeployment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
name: Deploy to Cloud

on:
push:
branches:
- swiftparcel_web # Set this to the branch you want to deploy from

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Set up SSH
run: |
mkdir -p ~/.ssh/
echo "${{ secrets.SSH_PRIVATE_KEY }}" > ~/.ssh/id_rsa
chmod 600 ~/.ssh/id_rsa
ssh-keyscan -H ${{ secrets.DROPLET_IP }} >> ~/.ssh/known_hosts
cat ~/.ssh/known_hosts # Add this line to confirm that the key is added

- name: Check the structure
run: |
pwd
ls -la

- name: Docker Login
run: |
echo ${{ secrets.DOCKER_PASSWORD }} | docker login -u ${{ secrets.DOCKER_USERNAME }} --password-stdin

- name: Run dockerize_all.sh
run: |
chmod +x ./SwiftParcel/d-docker-compose/dockerize_all.sh
./SwiftParcel/d-docker-compose/dockerize_all.sh

- name: Check the structure 2
run: |
pwd
ls -la

- name: Test SSH Connection
run: |
ssh -vvv root@${{ secrets.DROPLET_IP }} "echo SSH Connection Successful"

- name: Stop and Remove Containers
run: |
ssh root@${{ secrets.DROPLET_IP }} "docker ps -q --filter network=swiftparcel-network | xargs -r docker stop && docker ps -a -q --filter network=swiftparcel-network | xargs -r docker rm"

- name: Clean up existing Cloud networks
run: |
ssh root@${{ secrets.DROPLET_IP }} "docker network rm swiftparcel-network || true"

- name: Deploy to Cloud
run: |
scp -r ./SwiftParcel/d-docker-compose root@${{ secrets.DROPLET_IP }}:${{ secrets.CLOUD_PROJECT_PATH }}
ssh root@${{ secrets.DROPLET_IP }} "cd ${{ secrets.CLOUD_PROJECT_PATH }}/SwiftParcel/d-docker-compose && docker-compose -f ${{ secrets.CLOUD_DEPLOYMENT_FILE }} pull && docker-compose -f ${{ secrets.CLOUD_DEPLOYMENT_FILE }} up -d --force-recreate"
4 changes: 2 additions & 2 deletions SwiftParcel.API.Gateway/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ FROM mcr.microsoft.com/dotnet/aspnet:6.0
WORKDIR /app
COPY --from=build /app/out .
ENV ASPNETCORE_URLS http://*:80
ENV ASPNETCORE_ENVIRONMENT docker
ENTRYPOINT ["dotnet", "SwiftParcel.Services.Customers.Api.dll"]
ENV ASPNETCORE_ENVIRONMENT production
ENTRYPOINT ["dotnet", "SwiftParcel.API.Gateway.dll"]
12 changes: 12 additions & 0 deletions SwiftParcel.API.Gateway/scripts/dockerize.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/bash
export ASPNETCORE_ENVIRONMENT=Development

cd ../

docker build -t swift-parcel-apigateway-service:latest .

docker tag swift-parcel-apigateway-service:latest adrianvsaint/swift-parcel-apigateway-service:latest

docker push adrianvsaint/swift-parcel-apigateway-service

docker push swiftparcel/swift-parcel-apigateway-service
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@
},
"seq": {
"enabled": true,
"url": "http://localhost:5341",
"url": "http://seq:5341",
"apiKey": "secret"
}
},
"metrics": {
"enabled": true,
"influxEnabled": false,
"prometheusEnabled": true,
"influxUrl": "http://localhost:8086",
"influxUrl": "http://influx:8086",
"database": "swiftparcel",
"env": "local",
"interval": 5
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"logger": {
"excludePaths": ["/", "/ping", "/metrics"],
"console": {
"enabled": true
},
"file": {
"enabled": true,
"path": "logs/logs.txt",
"interval": "day"
},
"seq": {
"enabled": true,
"url": "http://seq:5341",
"apiKey": "secret"
}
},
"metrics": {
"enabled": true,
"influxEnabled": false,
"prometheusEnabled": true,
"influxUrl": "http://influx:8086",
"database": "swiftparcel",
"env": "local",
"interval": 5
}
}
Loading
Loading