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

Noticeboard Parser #1

Open
wants to merge 74 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
74 commits
Select commit Hold shift + click to select a range
49f0c86
feat: project init
Bikram-ghuku Oct 1, 2024
c282eee
feat: added basic endpoints
Bikram-ghuku Oct 1, 2024
185c2a9
feat: added request maker
Bikram-ghuku Oct 2, 2024
7c827c8
feat: added more parameters to decode
Bikram-ghuku Oct 2, 2024
933c83b
fix: response parameters to decode
Bikram-ghuku Oct 2, 2024
cb5403f
feat: made client reuseable
Bikram-ghuku Oct 2, 2024
9708e6e
feat: added cron, get notices, initialse client functions
Bikram-ghuku Oct 2, 2024
60f762a
feat: added last message checker
Bikram-ghuku Oct 2, 2024
f90d849
fix: writing file error
Bikram-ghuku Oct 2, 2024
2cd1498
feat: updated gitignore
Bikram-ghuku Oct 2, 2024
bf1e4cc
feat: added field correction and printer message
Bikram-ghuku Oct 2, 2024
40f76d6
feat: increment refresh timer
Bikram-ghuku Oct 2, 2024
4889afb
feat: update logger message
Bikram-ghuku Oct 2, 2024
43e55b4
fix: latest single msg -> latest all message
Bikram-ghuku Oct 2, 2024
f62faeb
refactor: naming
Bikram-ghuku Oct 2, 2024
13df9c3
Initial commit
Bikram-ghuku Oct 2, 2024
08cd0f2
feat: add to docs template
Bikram-ghuku Oct 2, 2024
da36e8f
feat: remove workflow
Bikram-ghuku Oct 2, 2024
a824448
feat: update docs
Bikram-ghuku Oct 2, 2024
682dede
feat: added example env file
Bikram-ghuku Oct 2, 2024
5c2ea5e
feat: made repeat after time a env var
Bikram-ghuku Oct 2, 2024
b869d91
refactor: message
Bikram-ghuku Oct 2, 2024
3bb2808
feat: handle attachements
Bikram-ghuku Oct 2, 2024
6968777
feat: require only sso token
Bikram-ghuku Oct 2, 2024
80d85e4
feat: added modules
Bikram-ghuku Oct 2, 2024
89dd649
feat: added erp login
Bikram-ghuku Oct 2, 2024
e81f446
feat: add to new package
Bikram-ghuku Oct 2, 2024
b864d08
feat: added erp creds
Bikram-ghuku Oct 2, 2024
9954ae1
feat: add otp
Bikram-ghuku Oct 2, 2024
b0a0377
feat: add empty security question checker
Bikram-ghuku Oct 3, 2024
5c80e07
feat: remove login scripts
Bikram-ghuku Oct 3, 2024
54473d7
feat: add project files
Bikram-ghuku Oct 4, 2024
ec6ab4b
fix: merge conflicts
Bikram-ghuku Oct 4, 2024
d2b3419
docs(readme): update links
Bikram-ghuku Oct 4, 2024
4f14154
docs(readme): update information
Bikram-ghuku Oct 4, 2024
1ace229
docs(readme): update project details
Bikram-ghuku Oct 4, 2024
1532dc2
docs(readme): update stats links
Bikram-ghuku Oct 4, 2024
6288ddb
docs(readme): update logo link
Bikram-ghuku Oct 4, 2024
6c95658
feat: added basic erp login
Bikram-ghuku Oct 5, 2024
2e7592c
feat: remove unwanted code
Bikram-ghuku Oct 5, 2024
ec329d7
feat: update pkg name
Bikram-ghuku Oct 5, 2024
230f21b
feat: added erplogin to cron
Bikram-ghuku Oct 5, 2024
114e120
feat: continue session without relogin
Bikram-ghuku Oct 5, 2024
b278866
feat: added gmail libraries
Bikram-ghuku Oct 5, 2024
5069a7e
feat: update gitignore
Bikram-ghuku Oct 5, 2024
e4b0781
feat: added automated otp fetching
Bikram-ghuku Oct 5, 2024
6a7c4f0
feat: confidential file
Bikram-ghuku Oct 5, 2024
6fdb456
feat: automatic security question handler
Bikram-ghuku Oct 5, 2024
0db5535
feat: automatic security question handler
Bikram-ghuku Oct 5, 2024
9b47023
feat: read if already present
Bikram-ghuku Oct 5, 2024
a55d9c0
feat: added logs
Bikram-ghuku Oct 5, 2024
be61f44
docs(README): add installation instructions
Bikram-ghuku Oct 6, 2024
1926cba
feat: init ntfy
Bikram-ghuku Oct 6, 2024
7321db3
feat: add ntfy
Bikram-ghuku Oct 6, 2024
6737d87
docs(README): update run instruction
Bikram-ghuku Oct 6, 2024
53e19ec
feat: add ntfy post
Bikram-ghuku Oct 6, 2024
561a385
feat: restructure files
Bikram-ghuku Oct 6, 2024
9746d9c
feat: add docker compose
Bikram-ghuku Oct 9, 2024
9cf4ded
feat: capitalise env vars
Bikram-ghuku Oct 9, 2024
fd106ae
feat: multimodule go
Bikram-ghuku Oct 9, 2024
5846d16
feat: use erp login package go
Bikram-ghuku Oct 14, 2024
68711b5
feat: add new login script
Bikram-ghuku Oct 14, 2024
7a495ee
feat: update .env.example
Bikram-ghuku Oct 14, 2024
cf165cd
feat: update docker compose
Bikram-ghuku Oct 14, 2024
751a3b7
docs(README): update instructions
Bikram-ghuku Oct 14, 2024
626b101
feat: update workflow
Bikram-ghuku Oct 15, 2024
31bcf2a
fix: remove dockerignore
Bikram-ghuku Oct 15, 2024
9c245c4
fix: remove metaploy, update dockerfile
Bikram-ghuku Oct 19, 2024
486207e
refactor: error messages
Bikram-ghuku Oct 19, 2024
835e518
feat: add monitoring service
Bikram-ghuku Dec 6, 2024
501a4ac
feat: monitoring service run always
Bikram-ghuku Dec 6, 2024
a4e2e3b
feat: add monitoring service to go work
Bikram-ghuku Dec 6, 2024
f183115
feat: add delimiters
Bikram-ghuku Dec 6, 2024
4d40667
feat: allow docker daemon connection
Bikram-ghuku Dec 6, 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
3 changes: 3 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
NTFY_ADDR=
REPEAT=120
MFINS_CONFIG=
24 changes: 12 additions & 12 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,27 +31,27 @@ jobs:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}

- name: Cache Docker layers SERVICE_NAME
- name: Cache Docker layers mfins
uses: actions/cache@v3
with:
path: /tmp/.buildx-cache-SERVICE_NAME
key: ${{ runner.os }}-buildx-SERVICE_NAME-${{ github.sha }}
path: /tmp/.buildx-cache-mfins
key: ${{ runner.os }}-buildx-mfins-${{ github.sha }}
restore-keys: |
${{ runner.os }}-buildx-SERVICE_NAME-
${{ runner.os }}-buildx-mfins-

- name: Build & Push SERVICE_NAME
- name: Build & Push mfins
uses: docker/build-push-action@v5
with:
context: .
context: ./mfins/
push: true
tags: ${{ secrets.DOCKERHUB_USERNAME }}/SERVICE_NAME:latest
cache-from: type=local,src=/tmp/.buildx-cache-SERVICE_NAME
cache-to: type=local,dest=/tmp/.buildx-cache-SERVICE_NAME-new,mode=max
tags: ${{ secrets.DOCKERHUB_USERNAME }}/mfins:latest
cache-from: type=local,src=/tmp/.buildx-cache-mfins
cache-to: type=local,dest=/tmp/.buildx-cache-mfins-new,mode=max

- name: Move SERVICE_NAME cache
- name: Move mfins cache
run: |
rm -rf /tmp/.buildx-cache-SERVICE_NAME
mv /tmp/.buildx-cache-SERVICE_NAME-new /tmp/.buildx-cache-SERVICE_NAME
rm -rf /tmp/.buildx-cache-mfins
mv /tmp/.buildx-cache-mfins-new /tmp/.buildx-cache-mfins

push:
name: Push Code Stage
Expand Down
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,9 @@
.DS_Store
.vscode
node-modules/
.env
lastmsg.json
client_secret.json
.token
erpcreds.json
.session
117 changes: 60 additions & 57 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,19 @@
<br />
<!-- UPDATE -->
<div align="center">
<a href="https://github.com/metakgp/PROJECT_NAME">
<img width="140" alt="image" src="https://raw.githubusercontent.com/metakgp/design/main/logos/logo.jpg">
<a href="https://github.com/metakgp/mfins">
<img width="140" alt="image" src="https://raw.githubusercontent.com/metakgp/design/main/logos/black-large.jpg">
</a>

<h3 align="center">PROJECT_NAME</h3>
<h3 align="center">MFINS</h3>

<p align="center">
<!-- UPDATE -->
<i>Project one liner slogan goes here</i>
<i>My Freakin' Internal Noticeboard Scrapper</i>
<br />
<a href="https://UPDATE.metakgp.org">Website</a>
·
<a href="https://github.com/proffapt/PROJECT_NAME/issues">Request Feature / Report Bug</a>
<a href="https://github.com/metakgp/mfins/issues">Request Feature / Report Bug</a>
</p>
</div>

Expand All @@ -56,26 +56,19 @@
## About The Project
<!-- UPDATE -->
<div align="center">
<a href="https://github.com/metakgp/PROJECT_NAME">
<a href="https://github.com/metakgp/mfins">
<img width="80%" alt="image" src="https://user-images.githubusercontent.com/86282911/206632547-a3b34b47-e7ae-4186-a1e6-ecda7ddb38e6.png">
</a>
</div>

_Detailed explaination of the project goes here_

This a microservice designed to send notceboard messages for the internal noticeboard to Naarad (NTFY). It uses the SSO token and jsessionid to access the noticeboard present in the erp. It checks for a new message every 2 minutes.
<p align="right">(<a href="#top">back to top</a>)</p>

<div id="supports"></div>

### Supports:
<!-- UPDATE -->
1. Shells
* `bash`
* `zsh`
2. OS(s)
* any `*nix`[`GNU+Linux` and `Unix`]
<!-- ### Supports: -->

<p align="right">(<a href="#top">back to top</a>)</p>
<!-- <p align="right">(<a href="#top">back to top</a>)</p> -->

## Getting Started

Expand All @@ -84,10 +77,7 @@ To set up a local instance of the application, follow the steps below.
### Prerequisites
The following dependencies are required to be installed for the project to function properly:
<!-- UPDATE -->
* npm
```sh
npm install npm@latest -g
```
* [golang](https://go.dev/doc/install)

<p align="right">(<a href="#top">back to top</a>)</p>

Expand All @@ -97,16 +87,29 @@ _Now that the environment has been set up and configured to properly compile and
<!-- UPDATE -->
1. Clone the repository
```sh
git clone https://github.com/metakgp/PROJECT_NAME.git
git clone https://github.com/metakgp/mfins.git
```
2. Make the script executable
2. Change directory to the folder
```sh
cd ./PROJECT_NAME
chmod +x ./PROJECT_NAME
cd ./mfins
```
3. Execute the script
3. Copy the `.env.example` to `.env` file
```shell
cp .env.example .env
```
4. Fill the .env files with your erp credentials

5. Create `lastmsg.json` and add `{}` in it
```sh
touch lastmsg.json && echo {} > lastmsg.json
```
6. Create `erpcreds.json` and add roll_no, password, answers

7. Create a google OAuth client secret and client id and add it to `client_secret.json`

8. Execute the script
```sh
./PROJECT_NAME
go run ./mfins
```

<p align="right">(<a href="#top">back to top</a>)</p>
Expand All @@ -118,7 +121,7 @@ _Now that the environment has been set up and configured to properly compile and
Use this space to show useful examples of how this project can be used. Additional screenshots, code examples and demos work well in this space.

<div align="center">
<a href="https://github.com/metakgp/PROJECT_NAME">
<a href="https://github.com/metakgp/mfins">
<img width="80%" alt="image" src="https://user-images.githubusercontent.com/86282911/206632640-40dc440e-5ef3-4893-be48-618f2bd85f37.png">
</a>
</div>
Expand All @@ -128,40 +131,40 @@ Use this space to show useful examples of how this project can be used. Addition
## Contact

<p>
📫 Metakgp -
<a href="https://slack.metakgp.org">
<img align="center" alt="Metakgp's slack invite" width="22px" src="https://raw.githubusercontent.com/edent/SuperTinyIcons/master/images/svg/slack.svg" />
</a>
<a href="mailto:[email protected]">
<img align="center" alt="Metakgp's email " width="22px" src="https://raw.githubusercontent.com/edent/SuperTinyIcons/master/images/svg/gmail.svg" />
</a>
<a href="https://www.facebook.com/metakgp">
<img align="center" alt="metakgp's Facebook" width="22px" src="https://raw.githubusercontent.com/edent/SuperTinyIcons/master/images/svg/facebook.svg" />
</a>
<a href="https://www.linkedin.com/company/metakgp-org/">
<img align="center" alt="metakgp's LinkedIn" width="22px" src="https://raw.githubusercontent.com/edent/SuperTinyIcons/master/images/svg/linkedin.svg" />
</a>
<a href="https://twitter.com/metakgp">
<img align="center" alt="metakgp's Twitter " width="22px" src="https://raw.githubusercontent.com/edent/SuperTinyIcons/master/images/svg/twitter.svg" />
</a>
<a href="https://www.instagram.com/metakgp_/">
<img align="center" alt="metakgp's Instagram" width="22px" src="https://raw.githubusercontent.com/edent/SuperTinyIcons/master/images/svg/instagram.svg" />
</a>
📫 Metakgp -
<a href="https://slack.metakgp.org">
<img align="center" alt="Metakgp's slack invite" width="22px" src="https://raw.githubusercontent.com/edent/SuperTinyIcons/master/images/svg/slack.svg" />
</a>
<a href="mailto:[email protected]">
<img align="center" alt="Metakgp's email " width="22px" src="https://raw.githubusercontent.com/edent/SuperTinyIcons/master/images/svg/gmail.svg" />
</a>
<a href="https://www.facebook.com/metakgp">
<img align="center" alt="metakgp's Facebook" width="22px" src="https://raw.githubusercontent.com/edent/SuperTinyIcons/master/images/svg/facebook.svg" />
</a>
<a href="https://www.linkedin.com/company/metakgp-org/">
<img align="center" alt="metakgp's LinkedIn" width="22px" src="https://raw.githubusercontent.com/edent/SuperTinyIcons/master/images/svg/linkedin.svg" />
</a>
<a href="https://twitter.com/metakgp">
<img align="center" alt="metakgp's Twitter " width="22px" src="https://raw.githubusercontent.com/edent/SuperTinyIcons/master/images/svg/twitter.svg" />
</a>
<a href="https://www.instagram.com/metakgp_/">
<img align="center" alt="metakgp's Instagram" width="22px" src="https://raw.githubusercontent.com/edent/SuperTinyIcons/master/images/svg/instagram.svg" />
</a>
</p>

### Maintainer(s)

The currently active maintainer(s) of this project.

<!-- UPDATE -->
- [NAME](https://github.com/GITHUB_USERNAME)
- [Bikram Ghuku](https://github.com/bikram-ghuku)

### Creator(s)

Honoring the original creator(s) and ideator(s) of this project.

<!-- UPDATE -->
- [NAME](https://github.com/GITHUB_USERNAME)
- [Arpit Bhardwaj](https://github.com/proffapt)

<p align="right">(<a href="#top">back to top</a>)</p>

Expand All @@ -176,16 +179,16 @@ Honoring the original creator(s) and ideator(s) of this project.

<!-- MARKDOWN LINKS & IMAGES -->

[contributors-shield]: https://img.shields.io/github/contributors/metakgp/PROJECT_NAME.svg?style=for-the-badge
[contributors-url]: https://github.com/metakgp/PROJECT_NAME/graphs/contributors
[forks-shield]: https://img.shields.io/github/forks/metakgp/PROJECT_NAME.svg?style=for-the-badge
[contributors-shield]: https://img.shields.io/github/contributors/metakgp/mfins.svg?style=for-the-badge
[contributors-url]: https://github.com/metakgp/mfins/graphs/contributors
[forks-shield]: https://img.shields.io/github/forks/metakgp/mfins.svg?style=for-the-badge
[forks-url]: https://github.com/metakgp/PROJECT_NAME/network/members
[stars-shield]: https://img.shields.io/github/stars/metakgp/PROJECT_NAME.svg?style=for-the-badge
[stars-url]: https://github.com/metakgp/PROJECT_NAME/stargazers
[issues-shield]: https://img.shields.io/github/issues/metakgp/PROJECT_NAME.svg?style=for-the-badge
[issues-url]: https://github.com/metakgp/PROJECT_NAME/issues
[license-shield]: https://img.shields.io/github/license/metakgp/PROJECT_NAME.svg?style=for-the-badge
[license-url]: https://github.com/metakgp/PROJECT_NAME/blob/master/LICENSE
[stars-shield]: https://img.shields.io/github/stars/metakgp/mfins.svg?style=for-the-badge
[stars-url]: https://github.com/metakgp/mfins/stargazers
[issues-shield]: https://img.shields.io/github/issues/metakgp/mfins.svg?style=for-the-badge
[issues-url]: https://github.com/metakgp/mfins/issues
[license-shield]: https://img.shields.io/github/license/metakgp/mfins.svg?style=for-the-badge
[license-url]: https://github.com/metakgp/mfins/blob/master/LICENSE
[wiki-shield]: https://custom-icon-badges.demolab.com/badge/metakgp_wiki-grey?logo=metakgp_logo&style=for-the-badge
[wiki-url]: https://wiki.metakgp.org
[slack-url]: https://slack.metakgp.org
23 changes: 23 additions & 0 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
services:
mfins:
build:
context: ./mfins
dockerfile: Dockerfile
image: metakgp/mfins
container_name: mfins
volumes:
- $MFINS_CONFIG/.env:/app/.env
- $MFINS_CONFIG/client_secret.json:/app/client_secret.json
- $MFINS_CONFIG/erpcreds.json:/app/erpcreds.json
- $MFINS_CONFIG/lastmsg.json:/app/lastmsg.json
- $MFINS_CONFIG/.token:/app/.token
- $MFINS_CONFIG/.session:/app/.session

mfins_doctor:
build:
context: ./mfins-doctor
dockerfile: Dockerfile
image: metakgp/mfins-doctor
container_name: mfins-doctor
volumes:
- /var/run/docker.sock:/var/run/docker.sock
6 changes: 6 additions & 0 deletions go.work
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
go 1.23.1

use (
./mfins
./mfins-doctor
)
61 changes: 61 additions & 0 deletions go.work.sum
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
cel.dev/expr v0.16.0/go.mod h1:TRSuuV7DlVCE/uwv5QbAiW/v8l5O8C4eEPHeu7gf7Sg=
cloud.google.com/go v0.115.1 h1:Jo0SM9cQnSkYfp44+v+NQXHpcHqlnRJk2qxh6yvxxxQ=
cloud.google.com/go v0.115.1/go.mod h1:DuujITeaufu3gL68/lOFIirVNJwQeyf5UXyi+Wbgknc=
cloud.google.com/go/compute v1.23.3 h1:6sVlXXBmbd7jNX0Ipq0trII3e4n1/MsADLK6a+aiVlk=
cloud.google.com/go/compute v1.23.3/go.mod h1:VCgBUoMnIVIR0CscqQiPJLAG25E3ZRZMzcFZeQ+h8CI=
cloud.google.com/go/compute/metadata v0.3.0/go.mod h1:zFmK7XCadkQkj6TtorcaGlCW1hT1fIilQDwofLpJ20k=
cloud.google.com/go/compute/metadata v0.5.0/go.mod h1:aHnloV2TPI38yx4s9+wAZhHykWvVCfu7hQbF+9CWoiY=
cloud.google.com/go/longrunning v0.5.6/go.mod h1:vUaDrWYOMKRuhiv6JBnn49YxCPz2Ayn9GqyjaBT8/mA=
cloud.google.com/go/translate v1.10.3/go.mod h1:GW0vC1qvPtd3pgtypCv4k4U8B7EdgK9/QEF2aJEUovs=
github.com/census-instrumentation/opencensus-proto v0.4.1/go.mod h1:4T9NM4+4Vw91VeyqjLS6ao50K5bOcLKN6Q42XnYaRYw=
github.com/cespare/xxhash/v2 v2.3.0/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs=
github.com/cncf/xds/go v0.0.0-20240723142845-024c85f92f20/go.mod h1:W+zGtBO5Y1IgJhy4+A9GOqVhqLpfZi+vwmdNXUehLA8=
github.com/creack/pty v1.1.18/go.mod h1:MOBLtS5ELjhRRrroQr9kyvTxUAFNvYEK993ew/Vr4O4=
github.com/envoyproxy/go-control-plane v0.13.0/go.mod h1:GRaKG3dwvFoTg4nj7aXdZnvMg4d7nvT/wl9WgVXn3Q8=
github.com/envoyproxy/protoc-gen-validate v1.1.0/go.mod h1:sXRDRVmzEbkM7CVcM06s9shE/m23dg3wzjl0UWqJ2q4=
github.com/golang/glog v1.2.2/go.mod h1:6AhwSGph0fcJtXVM/PEHPqZlFeoLxhs7/t5UDAwmO+w=
github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk=
github.com/golang/protobuf v1.5.4/go.mod h1:lnTiLA8Wa4RWRcIUkrtSVa5nRhsEGBg48fD6rSs7xps=
github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY=
github.com/google/go-pkcs11 v0.3.0/go.mod h1:6eQoGcuNJpa7jnd5pMGdkSaQpNDYvPlXWMcjXXThLlY=
github.com/iancoleman/strcase v0.3.0/go.mod h1:iwCmte+B7n89clKwxIoIXy/HfoL7AsD47ZCWhYzw7ho=
github.com/kr/pretty v0.3.1/go.mod h1:hoEshYVHaxMs3cyo3Yncou5ZscifuDolrwPKZanG3xk=
github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE=
github.com/lyft/protoc-gen-star/v2 v2.0.4-0.20230330145011-496ad1ac90a4/go.mod h1:amey7yeodaJhXSbf/TlLvWiqQfLOSpEk//mLlc+axEk=
github.com/planetscale/vtprotobuf v0.6.1-0.20240319094008-0393e58bdf10/go.mod h1:t/avpk3KcrXxUnYOhZhMXJlSEyie6gQbtLq5NM3loB8=
github.com/prometheus/client_model v0.6.0/go.mod h1:NTQHnmxFpouOD0DpvP4XujX3CdOAGQPoaGhyTchlyt8=
github.com/russross/blackfriday v1.6.0/go.mod h1:ti0ldHuxg49ri4ksnFxlkCfN+hvslNlmVHqNRXXJNAY=
github.com/spf13/afero v1.10.0/go.mod h1:UBogFpq8E9Hx+xc5CNTTEpTnuHVmXDwZcZcE1eb/UhQ=
github.com/stretchr/objx v0.5.2/go.mod h1:FRsXN1f5AsAjCGJKqEizvkpNtU+EGNCLh3NxZ/8L+MA=
github.com/xeipuuv/gojsonpointer v0.0.0-20180127040702-4e3ac2762d5f/go.mod h1:N2zxlSyiKSe5eX1tZViRH5QA0qijqEDrYZiPEAiq3wU=
github.com/xeipuuv/gojsonreference v0.0.0-20180127040603-bd5ef7bd5415/go.mod h1:GwrjFmJcFw6At/Gs6z4yjiIwzuJ1/+UwLxMQDVQXShQ=
github.com/xeipuuv/gojsonschema v1.2.0/go.mod h1:anYRn/JVcOK2ZgGU+IjEV4nwlhoK5sQluxsYJ78Id3Y=
github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY=
go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.54.0/go.mod h1:B9yO6b04uB80CzjedvewuqDhxJxi11s7/GtiGa8bAjI=
go.uber.org/goleak v1.3.0/go.mod h1:CoHD4mav9JJNrW/WLlf7HGZPjdw8EucARQHekz1X6bE=
golang.org/x/crypto v0.28.0 h1:GBDwsMXVQi34v5CCYUm2jkJvu4cbtru2U4TN2PSyQnw=
golang.org/x/crypto v0.28.0/go.mod h1:rmgy+3RHxRZMyY0jjAJShp2zgEdOqj2AO7U0pYmeQ7U=
golang.org/x/mod v0.17.0/go.mod h1:hTbmBsO62+eylJbnUtE2MGJUyE7QWk4xUqPFrRgJ+7c=
golang.org/x/net v0.21.0/go.mod h1:bIjVDfnllIU7BJ2DNgfnXvpSvtn8VRwhlsaeUTyUS44=
golang.org/x/net v0.28.0/go.mod h1:yqtgsTWOOnlGLG9GFRrK3++bGOUEkNBoHZc8MEDWPNg=
golang.org/x/oauth2 v0.22.0/go.mod h1:XYTD2NtWslqkgxebSiOHnXEap4TF09sJSc7H1sXbhtI=
golang.org/x/sync v0.9.0 h1:fEo0HyrW1GIgZdpbhCRO0PkJajUS5H9IFUztCgEo2jQ=
golang.org/x/sync v0.9.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk=
golang.org/x/sys v0.24.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
golang.org/x/sys v0.26.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
golang.org/x/telemetry v0.0.0-20240228155512-f48c80bd79b2/go.mod h1:TeRTkGYfJXctD9OcfyVLyj2J3IxLnKwHJR8f4D8a3YE=
golang.org/x/term v0.25.0 h1:WtHI/ltw4NvSUig5KARz9h521QvRC8RmF/cuYqifU24=
golang.org/x/term v0.25.0/go.mod h1:RPyXicDX+6vLxogjjRxjgD2TKtmAO6NZBsBRfrOLu7M=
golang.org/x/text v0.17.0/go.mod h1:BuEKDfySbSR4drPmRPG/7iBdf8hvFMuRexcpahXilzY=
golang.org/x/text v0.19.0/go.mod h1:BuEKDfySbSR4drPmRPG/7iBdf8hvFMuRexcpahXilzY=
golang.org/x/time v0.6.0/go.mod h1:3BpzKBy/shNhVucY/MWOyx10tF3SFh9QdLuxbVysPQM=
golang.org/x/tools v0.21.1-0.20240508182429-e35e4ccd0d2d/go.mod h1:aiJjzUbINMkxbQROHiO6hDPo2LHcIPhhQsa9DLh0yGk=
google.golang.org/appengine v1.6.8/go.mod h1:1jJ3jBArFh5pcgW8gCtRJnepW8FzD1V44FJffLiz/Ds=
google.golang.org/genproto v0.0.0-20240903143218-8af14fe29dc1/go.mod h1:hL97c3SYopEHblzpxRL4lSs523++l8DYxGM1FQiYmb4=
google.golang.org/genproto/googleapis/bytestream v0.0.0-20240903143218-8af14fe29dc1/go.mod h1:q0eWNnCW04EJlyrmLT+ZHsjuoUiZ36/eAEdCCezZoco=
google.golang.org/genproto/googleapis/rpc v0.0.0-20240814211410-ddb44dafa142/go.mod h1:UqMtugtsSgubUsoxbuAoiCXvqvErP7Gf0so0mK9tHxU=
google.golang.org/genproto/googleapis/rpc v0.0.0-20241021214115-324edc3d5d38/go.mod h1:GX3210XPVPUjJbTUbvwI8f2IpZDMZuPJWDzDuebbviI=
google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw=
google.golang.org/protobuf v1.33.0/go.mod h1:c6P6GXX6sHbq/GpV6MGZEdwhWPcYBgnhAHhKbcUYpos=
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c/go.mod h1:JHkPIbrfpd72SG/EVd6muEfDQjcINNoR0C8j2r3qZ4Q=
16 changes: 0 additions & 16 deletions metaploy/PROJECT_NAME.metaploy.conf

This file was deleted.

14 changes: 0 additions & 14 deletions metaploy/postinstall.sh

This file was deleted.

13 changes: 13 additions & 0 deletions mfins-doctor/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
FROM golang:1.23.1 AS builder
WORKDIR /src
COPY go.mod go.sum ./
RUN go mod download
COPY . .
RUN CGO_ENABLED=1 GOOS=linux go build -o ./build --tags "fts5" -a -ldflags '-linkmode external -extldflags "-static"' .

FROM alpine:latest AS app
RUN apk --no-cache add tzdata ca-certificates bash
ENV TZ="Asia/Kolkata"
WORKDIR /app
COPY --from=builder /src/build .
CMD ["./build"]
Loading