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

EPP-99: Add 755 permission to bash files #17

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

adityababumallisettiHO
Copy link
Contributor

@adityababumallisettiHO adityababumallisettiHO commented Dec 31, 2024

What?

  • Permission issues have been restricting scripts from executing in pipeline ( past permisssions 644)
  • Checked with other services and changed to 755
  • Added Missing drone and Docker Ignore files
  • prevents adding unwanted files to the images and reduces the image build time

Why?

  • Cron steps are failing due to permission denied issue
  • Bash scripts permission are denying the execution permissions which are now updated to execute during pipeline execution

How?

  • chmod 755 to make files executable
  • Add missing ignore files to the repo

Testing?

As we cant wait for scheduled time to execute cron jobs. We can run the cron jobs manually. I can test from this feature branch once tested will merge to master branch and do testing again for one final time. We are also testing the slack webhook to send payload to respective slack channels

Screenshots (optional)

Anything Else? (optional)

Check list

  • I have reviewed my own pull request for linting issues (e.g. adding new lines)
  • I have written tests (if relevant)
  • I have created a JIRA number for my branch
  • I have created a JIRA number for my commit
  • I have followed the chris beams method for my commit https://cbea.ms/git-commit/
    here is an example commit
  • Ensure drone builds are green especially tests
  • I will squash the commits before merging

* Permission issues have been restricting scripts from executing in pipeline
* Checked with other services and changed to 755
* Added Missing drone and Docker Ignore files
* prevents adding unwanted files to the images and reduces the image build time
* Docker Daemon can take 60 Seconds to start
* Drone pipeline complaining of Docker Daemon not starting
* this is same as using   - n=0; while [ "$n" -lt 60 ] && ! docker stats --no-stream >/dev/null 2>&1; do n=$(( n + 1 )); sleep 1; done
* ACP documentations supports us to use this instead https://docs.acp.homeoffice.gov.uk/how-to/drone-ci/#docker-in-docker
* ACP documented solution havent resolved the issue
* Now we are using the commands used in build_image step to wait for docker daemon to start.
* Add pull if not exists to avoid unnecessarily pulling existing image
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.

1 participant