Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
supr-ldap-integration
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Swestore
supr-ldap-integration
Commits
538a1241
Commit
538a1241
authored
1 year ago
by
Einar Largenius
Browse files
Options
Downloads
Patches
Plain Diff
Add a document describing possible update
parent
4a13e3f4
Branches
python2
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
python3-update.md
+59
-0
59 additions, 0 deletions
python3-update.md
with
59 additions
and
0 deletions
python3-update.md
0 → 100644
+
59
−
0
View file @
538a1241
Supr-ldap-integration Python3 Update Plan
=========================================
This explains preliminary plans to update the supr-integration scripts to
python3. A repo of the code is available here:
https://gitlab.liu.se/swestore/supr-ldap-integration. The master branch is
the old python2 version. The branch with the work in progress update is
python3.
A partially updated version is checked out at ldaptest:/opt/. I lack
sufficient knowledge to even test it so progress has stalled.
The Current Deployed Version
============================
The version thats currently deployed has had a few minor changes. The code
is currently deployed to ldaptest and ldap1 in the directory /supr. Changes
since last year (2022) include:
-
Created a upstream git repository.
-
Merged changes between the versions available on the two servers.
-
Update the email template being sent out to new users to use current links.
-
Removed all references to IPA and IRODS, as they are no longer used.
The Update Plan
===============
Here are a few things that I think should change:
-
Update to python3, python2 has been deprecated for a while now.
-
Have a better way of deploying the scripts.
-
Have some way of managing dependencies.
Deploy Scripts In a Better Way
------------------------------
I currently apply changes by pushing to the gitlab repository and then pull
the changes from the ldap_master servers. This still feels frail but is
better than copying files over.
I have a few ideas on how this could be better:
-
Use puppet to automatically install the code
-
Create a .rpm-package with the code
Dependency Management
---------------------
Another related issue is how to manage dependencies, currently the code
relies on a virtual-env to install dependencies. This works but has turned
out to be tricky to automate.
An alternative could be to if one were to install it through the package
manager to declare dependencies that way. Or if puppet is used to deploy,
then dependencies could be installed that way, with or without virtual-envs.
I also believe that the file supr.py belongs to another package but has been
included by copying it into the repo. It would be good to include it as a
proper dependency instead.
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment