Skip to content
This repository was archived by the owner on Sep 2, 2024. It is now read-only.

572 deploy dodal as repo in prod fixed#704

Merged
d-perl merged 10 commits into
mainfrom
572_deploy_dodal_as_repo_in_prod_fixed
Jun 14, 2023
Merged

572 deploy dodal as repo in prod fixed#704
d-perl merged 10 commits into
mainfrom
572_deploy_dodal_as_repo_in_prod_fixed

Conversation

@olliesilvester

@olliesilvester olliesilvester commented Jun 6, 2023

Copy link
Copy Markdown
Contributor

Fixes #572 and #627

To test:

  1. Run "deploy_artemis.py dev" and confirm issue requirements are satifsfied, and that the symlink is correct
  2. Confirm beamline deployment location is correct

@olliesilvester
olliesilvester marked this pull request as draft June 6, 2023 09:37
@codecov

codecov Bot commented Jun 6, 2023

Copy link
Copy Markdown

Codecov Report

Merging #704 (be37aad) into main (6850043) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main     #704   +/-   ##
=======================================
  Coverage   91.59%   91.59%           
=======================================
  Files          34       34           
  Lines        1666     1666           
=======================================
  Hits         1526     1526           
  Misses        140      140           

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@olliesilvester

Copy link
Copy Markdown
Contributor Author

@DominicOram once this is merged, need to merge GDA changes

@olliesilvester
olliesilvester marked this pull request as ready for review June 6, 2023 12:59

@d-perl d-perl left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

If I try to run either
python deploy/deploy_artemis.py dev or ./deploy/deploy_artemis.sh dev I get a:
PermissionError: [Errno 13] Permission denied: './dls_dev_env.sh'
In a freshly cloned repo from this branch. I think it's probably because it writes to /tmp/ and the system policy here is to not allow execution from /tmp/
I feel that the bash script should have a --help option, and the script should let you specify the location for a dev installation, as well as maybe warning that /tmp/ is not suitable (on RHEL8, anyway)

@olliesilvester

Copy link
Copy Markdown
Contributor Author

If I try to run either python deploy/deploy_artemis.py dev or ./deploy/deploy_artemis.sh dev I get a: PermissionError: [Errno 13] Permission denied: './dls_dev_env.sh' In a freshly cloned repo from this branch. I think it's probably because it writes to /tmp/ and the system policy here is to not allow execution from /tmp/

Are you able to run deploy_artemis.py dev from the main branch? That script also runs ./dls_dev_env.sh from /tmp/

@d-perl

d-perl commented Jun 8, 2023

Copy link
Copy Markdown
Contributor

Yeah, can't run that one either. so I guess it is technically a separate issue that this doesn't work on rhel8 but we might as well fix it

@d-perl d-perl linked an issue Jun 8, 2023 that may be closed by this pull request
@olliesilvester

Copy link
Copy Markdown
Contributor Author

It works on my Red Hat 8 machine, but I can look into what's causing the permission error

@d-perl

d-perl commented Jun 8, 2023

Copy link
Copy Markdown
Contributor

oh, interesting. I wonder if I just need to get someone to change the security policy for my machine then.

@d-perl
d-perl self-requested a review June 14, 2023 09:33

@d-perl d-perl left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

On discussion, we will ignor potential security policy interference in execution from /tmp/ since that doesn't affect many people. will revisit if it becomes a bigger problem

@d-perl
d-perl merged commit 89a2a0f into main Jun 14, 2023
@d-perl
d-perl deleted the 572_deploy_dodal_as_repo_in_prod_fixed branch June 14, 2023 13:21
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

can't run deploy script in dev mode on some RHEL8 machines Deploy dodal as a repo in prod

2 participants