Skip to content

Conversation

@HarshCasper
Copy link
Member

Fixes #42

@HarshCasper HarshCasper force-pushed the docker-cd branch 2 times, most recently from 02e4144 to 0e7353f Compare March 2, 2022 11:50
@aornugent aornugent requested a review from abhineet97 March 2, 2022 22:44
@aornugent
Copy link

Thanks @HarshCasper - can you add a little extra context explaining the pipeline? Where will it be published, how often is it run etc.

Copy link
Collaborator

@abhineet97 abhineet97 left a comment

Choose a reason for hiding this comment

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

Thank you for the PR, Harsh! It looks good except for some minor issues.

name: Docker CI/CD

on:
schedule:
Copy link
Collaborator

@abhineet97 abhineet97 Mar 11, 2022

Choose a reason for hiding this comment

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

I don't see the need of publishing a new image every day. Can you elaborate on your intention behind this?

Copy link
Member Author

Choose a reason for hiding this comment

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

It was something that we have done with upstream images to ensure that we get to know if something breaks (like on FLINT and FLINT.Example). Hence we add this additional step to build and push the images on a cron schedule. Let me know if we can remove this in case of Taswira.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Got it. While that sounds like a good step, I don't think it's required for taswira because there's nothing in it that could break overnight. I think, things will only break after a change. Do you agree?

- pylint>=2.5.2
- dash==1.13.3
- dash-leaflet==0.0.19
- markupsafe<2.1
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why these two new dependencies? Where are they used?

Copy link
Member Author

Choose a reason for hiding this comment

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

Without these dependencies, the build fails. Reference: https://mojaglobal.slack.com/archives/C01113X44FR/p1646205676283029

Copy link
Collaborator

Choose a reason for hiding this comment

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

Ah, I see, but not sure why this issue didn't occur in my machine.

Anyway, can you pin jinja2 to an absolute version number?

steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Lint using pylint
Copy link
Collaborator

Choose a reason for hiding this comment

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

This step that lints the code using pylint is missing in the new workflow.

I had added that step to ensure code quality. It'd be great if we can add it to the new workflow as well.

Copy link
Member Author

Choose a reason for hiding this comment

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

I will add that!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Publish a moja global Taswira package

3 participants