Skip to content

Commit

Permalink
feat(jans-linux-setup): Gluu CE to Flex migration script
Browse files Browse the repository at this point in the history
Signed-off-by: Mustafa Baser <[email protected]>
  • Loading branch information
devrimyatar committed Jan 23, 2025
1 parent d7200cb commit 8578f87
Show file tree
Hide file tree
Showing 2 changed files with 487 additions and 0 deletions.
28 changes: 28 additions & 0 deletions jans-linux-setup/tools/gluu2flex-migration/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Gluu to Flex Migration

## 1. Inside Gluu 4.x container:

1.1 Download Janssen archieve: `wget https://github.com/JanssenProject/jans/archive/refs/heads/jans-linux-setup-gluu2flex-migration.zip`

1.2 Extract archieve: `unzip jans-linux-setup-gluu2flex-migration.zip`

1.3 Execute script: `python3 jans-jans-linux-setup-gluu2flex-migration/jans-linux-setup/tools/gluu2flex-migration/gluu2flex.py`

1.4 You need do copy directory `jans-jans-linux-setup-gluu2flex-migration/jans-linux-setup/tools/gluu2flex-migration`
to target Janssen instance, thus make tarball:
`tar -zcf gluu_source.tgz jans-jans-linux-setup-gluu2flex-migration/jans-linux-setup/tools/gluu2flex-migration`

## 2. Install Jannsen instance (on a fresh VM):

2.1 Get `gluu_source.tgz` file you created in Step-1.4, and extract: `tar -zxf gluu_source.tgz`

2.2 You need salt, so `cat jans-jans-linux-setup-gluu2flex-migration/jans-linux-setup/tools/gluu2flex-migration/migration_source/data.json`

2.3 Download Janssen installer: `wget https://raw.githubusercontent.com/JanssenProject/jans/main/jans-linux-setup/jans_setup/install.py`

2.4 Install a fresh Janssen Instance with salt of Gluu Instance, for example: `python3 install.py --args="-encode-salt=0xZ6nwAjvZlz8nOovDIZFSJT"`
NOTE!!: Replace your salt

2.6 Copy source directory to setup directory:
`cp -r jans-jans-linux-setup-gluu2flex-migration/jans-linux-setup/tools/gluu2flex-migration/ /opt/jans/jans-setup/tools`
2.5 Execute migratin script: `python3 /opt/jans/jans-setup/tools/gluu2flex-migration/gluu2flex.py`
Loading

0 comments on commit 8578f87

Please sign in to comment.