Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
F
folio-scripts
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
demo
folio-scripts
Commits
7726e53e
Commit
7726e53e
authored
Dec 04, 2020
by
卢浩元
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
目录整理
parent
0006946a
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
697 additions
and
0 deletions
+697
-0
install-tag-images.py
docker_images/install-tag-images.py
+20
-0
install-to-pull.py
docker_images/install-to-pull.py
+21
-0
install-to-push.py
docker_images/install-to-push.py
+21
-0
extract-permissions.py
permissions/extract-permissions.py
+18
-0
platform-complete-all-permissions.json
platform-complete/platform-complete-all-permissions.json
+0
-0
platform-complete-okapi-install.json
platform-complete/platform-complete-okapi-install.json
+218
-0
platform-complete-stripes-install.json
platform-complete/platform-complete-stripes-install.json
+214
-0
platform-core-all-permissions.json
platform-core/platform-core-all-permissions.json
+0
-0
platform-core-no-auth-permissions.json
platform-core/platform-core-no-auth-permissions.json
+0
-0
platform-core-okapi-install.json
platform-core/platform-core-okapi-install.json
+46
-0
platform-core-stripes-install.json
platform-core/platform-core-stripes-install.json
+74
-0
convert-stripes-modules.py
stripes/convert-stripes-modules.py
+10
-0
folio_acquisition
stripes/folio_acquisition
+1
-0
folio_data-export-import
stripes/folio_data-export-import
+2
-0
my-modules
stripes/my-modules
+52
-0
No files found.
docker_images/install-tag-images.py
0 → 100644
View file @
7726e53e
import
json
from
docker
import
Client
def
right_replace
(
string
,
old
,
new
,
max
=
1
):
return
string
[::
-
1
]
.
replace
(
old
[::
-
1
],
new
[::
-
1
],
max
)[::
-
1
]
id_list
=
[]
client
=
Client
(
base_url
=
'unix://var/run/docker.sock'
)
with
open
(
"platform-complete-okapi-install.json"
,
"r"
,
encoding
=
'utf-8'
)
as
f
:
ids
=
json
.
loads
(
f
.
read
())
print
(
ids
,
type
(
ids
))
for
i
in
ids
:
print
(
i
[
'id'
])
tag
=
right_replace
(
i
[
'id'
],
'-'
,
":"
)
id_list
.
append
(
'folioorg/'
+
tag
)
print
(
id_list
)
for
image
in
id_list
:
client
.
tag
(
image
,
'harbor.k2software.cn/'
+
image
)
docker_images/install-to-pull.py
0 → 100644
View file @
7726e53e
import
json
from
docker
import
Client
def
right_replace
(
string
,
old
,
new
,
max
=
1
):
return
string
[::
-
1
]
.
replace
(
old
[::
-
1
],
new
[::
-
1
],
max
)[::
-
1
]
id_list
=
[]
client
=
Client
(
base_url
=
'unix://var/run/docker.sock'
)
with
open
(
"platform-complete-okapi-install.json"
,
"r"
,
encoding
=
'utf-8'
)
as
f
:
ids
=
json
.
loads
(
f
.
read
())
print
(
ids
,
type
(
ids
))
for
i
in
ids
:
print
(
i
[
'id'
])
tag
=
right_replace
(
i
[
'id'
],
'-'
,
":"
)
id_list
.
append
(
'folioorg/'
+
tag
)
print
(
id_list
)
for
image
in
id_list
:
for
line
in
client
.
pull
(
image
,
stream
=
True
):
print
(
json
.
dumps
(
json
.
loads
(
line
),
indent
=
4
))
docker_images/install-to-push.py
0 → 100644
View file @
7726e53e
import
json
from
docker
import
Client
def
right_replace
(
string
,
old
,
new
,
max
=
1
):
return
string
[::
-
1
]
.
replace
(
old
[::
-
1
],
new
[::
-
1
],
max
)[::
-
1
]
id_list
=
[]
client
=
Client
(
base_url
=
'unix://var/run/docker.sock'
)
with
open
(
"platform-complete-okapi-install.json"
,
"r"
,
encoding
=
'utf-8'
)
as
f
:
ids
=
json
.
loads
(
f
.
read
())
print
(
ids
,
type
(
ids
))
for
i
in
ids
:
print
(
i
[
'id'
])
tag
=
right_replace
(
i
[
'id'
],
'-'
,
":"
)
id_list
.
append
(
'folioorg/'
+
tag
)
print
(
id_list
)
for
image
in
id_list
:
for
line
in
client
.
push
(
'harbor.k2software.cn/'
+
image
,
stream
=
True
):
print
(
json
.
dumps
(
json
.
loads
(
line
),
indent
=
4
))
permissions/extract-permissions.py
0 → 100644
View file @
7726e53e
import
json
permissions
=
[]
permissionNames
=
[]
result
=
{}
with
open
(
"../platform-core/platform-core-no-auth-permissions.json"
,
"r"
,
encoding
=
'utf-8'
)
as
f
:
json_str
=
json
.
loads
(
f
.
read
())
permissions
=
json_str
[
"permissions"
]
for
p
in
permissions
:
permissionNames
.
append
(
p
[
"permissionName"
])
with
open
(
"platform-core-no-auth-permissions.json"
,
"w"
,
encoding
=
'utf-8'
)
as
fw
:
result
[
"id"
]
=
"99999999-9999-4999-9999-999999999999"
result
[
"userId"
]
=
"99999999-9999-4999-9999-999999999999"
result
[
"permissions"
]
=
permissionNames
fw
.
write
(
json
.
dumps
(
result
,
indent
=
4
))
platform-complete/platform-complete-all-permissions.json
0 → 100644
View file @
7726e53e
This diff is collapsed.
Click to expand it.
platform-complete/platform-complete-okapi-install.json
0 → 100644
View file @
7726e53e
[
{
"action"
:
"enable"
,
"id"
:
"mod-orders-storage-11.1.4"
},
{
"action"
:
"enable"
,
"id"
:
"mod-configuration-5.5.0"
},
{
"action"
:
"enable"
,
"id"
:
"mod-inventory-storage-19.4.4"
},
{
"action"
:
"enable"
,
"id"
:
"mod-users-17.2.2"
},
{
"action"
:
"enable"
,
"id"
:
"mod-login-7.1.1"
},
{
"action"
:
"enable"
,
"id"
:
"mod-permissions-5.12.2"
},
{
"action"
:
"enable"
,
"id"
:
"mod-pubsub-1.3.3"
},
{
"action"
:
"enable"
,
"id"
:
"mod-circulation-storage-12.1.4"
},
{
"action"
:
"enable"
,
"id"
:
"mod-source-record-storage-4.1.3"
},
{
"action"
:
"enable"
,
"id"
:
"mod-inventory-16.1.3"
},
{
"action"
:
"enable"
,
"id"
:
"mod-organizations-storage-3.2.1"
},
{
"action"
:
"enable"
,
"id"
:
"mod-finance-storage-6.0.1"
},
{
"action"
:
"enable"
,
"id"
:
"mod-finance-4.0.1"
},
{
"action"
:
"enable"
,
"id"
:
"mod-calendar-1.10.1"
},
{
"action"
:
"enable"
,
"id"
:
"mod-event-config-1.6.1"
},
{
"action"
:
"enable"
,
"id"
:
"mod-template-engine-1.12.0"
},
{
"action"
:
"enable"
,
"id"
:
"mod-email-1.9.1"
},
{
"action"
:
"enable"
,
"id"
:
"mod-sender-1.4.0"
},
{
"action"
:
"enable"
,
"id"
:
"mod-notify-2.7.1"
},
{
"action"
:
"enable"
,
"id"
:
"mod-feesfines-15.9.2"
},
{
"action"
:
"enable"
,
"id"
:
"mod-patron-blocks-1.1.4"
},
{
"action"
:
"enable"
,
"id"
:
"mod-notes-2.10.2"
},
{
"action"
:
"enable"
,
"id"
:
"mod-circulation-19.2.8"
},
{
"action"
:
"enable"
,
"id"
:
"mod-orders-11.1.2"
},
{
"action"
:
"enable"
,
"id"
:
"mod-agreements-3.0.1"
},
{
"action"
:
"enable"
,
"id"
:
"mod-licenses-3.0.1"
},
{
"action"
:
"enable"
,
"id"
:
"mod-audit-1.0.4"
},
{
"action"
:
"enable"
,
"id"
:
"mod-courses-1.1.1"
},
{
"action"
:
"enable"
,
"id"
:
"mod-data-export-3.0.4"
},
{
"action"
:
"enable"
,
"id"
:
"mod-data-import-converter-storage-1.9.2"
},
{
"action"
:
"enable"
,
"id"
:
"mod-source-record-manager-2.4.3"
},
{
"action"
:
"enable"
,
"id"
:
"mod-data-import-1.11.1"
},
{
"action"
:
"enable"
,
"id"
:
"mod-kb-ebsco-java-3.6.3"
},
{
"action"
:
"enable"
,
"id"
:
"mod-tags-0.7.2"
},
{
"action"
:
"enable"
,
"id"
:
"mod-erm-usage-3.0.2"
},
{
"action"
:
"enable"
,
"id"
:
"mod-invoice-storage-4.1.2"
},
{
"action"
:
"enable"
,
"id"
:
"mod-invoice-4.1.2"
},
{
"action"
:
"enable"
,
"id"
:
"mod-organizations-1.1.1"
},
{
"action"
:
"enable"
,
"id"
:
"mod-oai-pmh-3.2.4"
},
{
"action"
:
"enable"
,
"id"
:
"mod-quick-marc-1.2.2"
},
{
"action"
:
"enable"
,
"id"
:
"mod-codex-mux-2.9.2"
},
{
"action"
:
"enable"
,
"id"
:
"mod-password-validator-1.8.2"
},
{
"action"
:
"enable"
,
"id"
:
"mod-authtoken-2.6.0"
},
{
"action"
:
"enable"
,
"id"
:
"mod-users-bl-6.1.1"
},
{
"action"
:
"enable"
,
"id"
:
"mod-login-saml-2.0.1"
},
{
"action"
:
"enable"
,
"id"
:
"mod-ncip-1.6.3"
},
{
"action"
:
"enable"
,
"id"
:
"mod-gobi-1.11.1"
},
{
"action"
:
"enable"
,
"id"
:
"mod-patron-4.3.0"
},
{
"action"
:
"enable"
,
"id"
:
"mod-rtac-2.0.1"
},
{
"action"
:
"enable"
,
"id"
:
"mod-aes-0.0.3"
},
{
"action"
:
"enable"
,
"id"
:
"mod-codex-inventory-1.8.0"
},
{
"action"
:
"enable"
,
"id"
:
"mod-codex-ekb-1.7.2"
},
{
"action"
:
"enable"
,
"id"
:
"mod-erm-usage-harvester-2.0.2"
},
{
"action"
:
"enable"
,
"id"
:
"mod-user-import-3.2.1"
}
]
platform-complete/platform-complete-stripes-install.json
0 → 100644
View file @
7726e53e
[
{
"id"
:
"folio_acquisition-units-2.2.0"
,
"action"
:
"enable"
},
{
"id"
:
"folio_agreements-5.0.1"
,
"action"
:
"enable"
},
{
"id"
:
"folio_calendar-5.0.0"
,
"action"
:
"enable"
},
{
"id"
:
"folio_checkin-4.0.1"
,
"action"
:
"enable"
},
{
"id"
:
"folio_checkout-5.0.1"
,
"action"
:
"enable"
},
{
"id"
:
"folio_circulation-4.0.2"
,
"action"
:
"enable"
},
{
"id"
:
"folio_circulation-log-1.0.1"
,
"action"
:
"enable"
},
{
"id"
:
"folio_courses-3.0.2"
,
"action"
:
"enable"
},
{
"id"
:
"folio_data-export-3.0.2"
,
"action"
:
"enable"
},
{
"id"
:
"folio_data-import-3.0.3"
,
"action"
:
"enable"
},
{
"id"
:
"folio_developer-4.0.0"
,
"action"
:
"enable"
},
{
"id"
:
"folio_eholdings-5.0.2"
,
"action"
:
"enable"
},
{
"id"
:
"folio_erm-comparisons-1.1.1"
,
"action"
:
"enable"
},
{
"id"
:
"folio_erm-usage-4.0.1"
,
"action"
:
"enable"
},
{
"id"
:
"folio_finance-2.2.0"
,
"action"
:
"enable"
},
{
"id"
:
"folio_inventory-5.0.5"
,
"action"
:
"enable"
},
{
"id"
:
"folio_invoice-2.2.2"
,
"action"
:
"enable"
},
{
"id"
:
"folio_licenses-5.0.1"
,
"action"
:
"enable"
},
{
"id"
:
"folio_local-kb-admin-3.0.0"
,
"action"
:
"enable"
},
{
"id"
:
"folio_myprofile-4.0.1"
,
"action"
:
"enable"
},
{
"id"
:
"folio_notes-4.0.0"
,
"action"
:
"enable"
},
{
"id"
:
"folio_oai-pmh-1.3.1"
,
"action"
:
"enable"
},
{
"id"
:
"folio_orders-2.2.6"
,
"action"
:
"enable"
},
{
"id"
:
"folio_organizations-2.2.1"
,
"action"
:
"enable"
},
{
"id"
:
"folio_plugin-create-inventory-records-1.0.0"
,
"action"
:
"enable"
},
{
"id"
:
"folio_plugin-find-agreement-5.0.0"
,
"action"
:
"enable"
},
{
"id"
:
"folio_plugin-find-contact-2.2.1"
,
"action"
:
"enable"
},
{
"id"
:
"folio_plugin-find-eresource-1.0.0"
,
"action"
:
"enable"
},
{
"id"
:
"folio_plugin-find-erm-usage-data-provider-2.0.0"
,
"action"
:
"enable"
},
{
"id"
:
"folio_plugin-find-import-profile-3.0.0"
,
"action"
:
"enable"
},
{
"id"
:
"folio_plugin-find-instance-4.0.0"
,
"action"
:
"enable"
},
{
"id"
:
"folio_plugin-find-interface-2.2.1"
,
"action"
:
"enable"
},
{
"id"
:
"folio_plugin-find-license-5.0.0"
,
"action"
:
"enable"
},
{
"id"
:
"folio_plugin-find-organization-2.2.0"
,
"action"
:
"enable"
},
{
"id"
:
"folio_plugin-find-package-title-2.0.0"
,
"action"
:
"enable"
},
{
"id"
:
"folio_plugin-find-po-line-2.2.1"
,
"action"
:
"enable"
},
{
"id"
:
"folio_plugin-find-user-4.0.1"
,
"action"
:
"enable"
},
{
"id"
:
"folio_quick-marc-2.0.1"
,
"action"
:
"enable"
},
{
"id"
:
"folio_receiving-1.2.1"
,
"action"
:
"enable"
},
{
"id"
:
"folio_requests-4.0.5"
,
"action"
:
"enable"
},
{
"id"
:
"folio_search-3.1.0"
,
"action"
:
"enable"
},
{
"id"
:
"folio_servicepoints-4.0.1"
,
"action"
:
"enable"
},
{
"id"
:
"folio_stripes-core-6.0.0"
,
"action"
:
"enable"
},
{
"id"
:
"folio_stripes-smart-components-5.0.4"
,
"action"
:
"enable"
},
{
"id"
:
"folio_tags-4.0.0"
,
"action"
:
"enable"
},
{
"id"
:
"folio_tenant-settings-5.0.1"
,
"action"
:
"enable"
},
{
"id"
:
"folio_users-5.0.8"
,
"action"
:
"enable"
},
{
"id"
:
"edge-ncip-1.4.0"
,
"action"
:
"enable"
},
{
"id"
:
"edge-orders-2.3.0"
,
"action"
:
"enable"
},
{
"id"
:
"edge-oai-pmh-2.3.0"
,
"action"
:
"enable"
},
{
"id"
:
"edge-patron-4.3.0"
,
"action"
:
"enable"
},
{
"id"
:
"edge-rtac-2.1.1"
,
"action"
:
"enable"
},
{
"id"
:
"edge-sip2-1.4.0"
,
"action"
:
"enable"
}
]
platform-core/platform-core-all-permissions.json
0 → 100644
View file @
7726e53e
This diff is collapsed.
Click to expand it.
platform-core/platform-core-no-auth-permissions.json
0 → 100644
View file @
7726e53e
This diff is collapsed.
Click to expand it.
platform-core/platform-core-okapi-install.json
0 → 100644
View file @
7726e53e
[
{
"id"
:
"mod-calendar-1.10.1"
,
"action"
:
"enable"
},
{
"id"
:
"mod-source-record-storage-4.1.3"
,
"action"
:
"enable"
},
{
"id"
:
"mod-inventory-16.1.3"
,
"action"
:
"enable"
},
{
"id"
:
"mod-feesfines-15.9.2"
,
"action"
:
"enable"
},
{
"id"
:
"mod-patron-blocks-1.1.4"
,
"action"
:
"enable"
},
{
"id"
:
"mod-notes-2.10.2"
,
"action"
:
"enable"
},
{
"id"
:
"mod-circulation-19.2.7"
,
"action"
:
"enable"
},
{
"id"
:
"mod-codex-mux-2.9.2"
,
"action"
:
"enable"
},
{
"id"
:
"mod-tags-0.7.2"
,
"action"
:
"enable"
},
{
"id"
:
"mod-login-saml-2.0.1"
,
"action"
:
"enable"
},
{
"id"
:
"mod-codex-inventory-1.8.0"
,
"action"
:
"enable"
}
]
platform-core/platform-core-stripes-install.json
0 → 100644
View file @
7726e53e
[
{
"id"
:
"folio_calendar-5.0.0"
,
"action"
:
"enable"
},
{
"id"
:
"folio_checkin-4.0.1"
,
"action"
:
"enable"
},
{
"id"
:
"folio_checkout-5.0.1"
,
"action"
:
"enable"
},
{
"id"
:
"folio_circulation-4.0.2"
,
"action"
:
"enable"
},
{
"id"
:
"folio_developer-4.0.0"
,
"action"
:
"enable"
},
{
"id"
:
"folio_inventory-5.0.5"
,
"action"
:
"enable"
},
{
"id"
:
"folio_myprofile-4.0.1"
,
"action"
:
"enable"
},
{
"id"
:
"folio_plugin-create-inventory-records-1.0.0"
,
"action"
:
"enable"
},
{
"id"
:
"folio_plugin-find-instance-4.0.0"
,
"action"
:
"enable"
},
{
"id"
:
"folio_plugin-find-user-4.0.1"
,
"action"
:
"enable"
},
{
"id"
:
"folio_requests-4.0.4"
,
"action"
:
"enable"
},
{
"id"
:
"folio_search-3.1.0"
,
"action"
:
"enable"
},
{
"id"
:
"folio_servicepoints-4.0.1"
,
"action"
:
"enable"
},
{
"id"
:
"folio_stripes-core-6.0.0"
,
"action"
:
"enable"
},
{
"id"
:
"folio_stripes-smart-components-5.0.4"
,
"action"
:
"enable"
},
{
"id"
:
"folio_tags-4.0.0"
,
"action"
:
"enable"
},
{
"id"
:
"folio_tenant-settings-5.0.1"
,
"action"
:
"enable"
},
{
"id"
:
"folio_users-5.0.7"
,
"action"
:
"enable"
}
]
stripes/convert-stripes-modules.py
0 → 100644
View file @
7726e53e
import
json
id_list
=
[]
with
open
(
"platform-complete-stripes-install.json"
,
"r"
,
encoding
=
'utf-8'
)
as
f
:
ids
=
json
.
loads
(
f
.
read
())
print
(
ids
,
type
(
ids
))
with
open
(
"my-modules"
,
"w"
)
as
m
:
for
i
in
ids
:
m
.
write
(
i
[
'id'
]
+
"
\n
"
)
stripes/folio_acquisition
0 → 100644
View file @
7726e53e
folio_acquisition-units-2.2.0
stripes/folio_data-export-import
0 → 100644
View file @
7726e53e
folio_data-export-3.0.2
folio_data-import-3.0.3
stripes/my-modules
0 → 100644
View file @
7726e53e
folio_agreements-5.0.1
folio_calendar-5.0.0
folio_checkin-4.0.1
folio_checkout-5.0.1
folio_circulation-4.0.2
folio_circulation-log-1.0.1
folio_courses-3.0.2
folio_data-export-3.0.2
folio_data-import-3.0.3
folio_developer-4.0.0
folio_eholdings-5.0.2
folio_erm-comparisons-1.1.1
folio_erm-usage-4.0.1
folio_finance-2.2.0
folio_inventory-5.0.5
folio_invoice-2.2.2
folio_licenses-5.0.1
folio_local-kb-admin-3.0.0
folio_myprofile-4.0.1
folio_notes-4.0.0
folio_oai-pmh-1.3.1
folio_orders-2.2.6
folio_organizations-2.2.1
folio_plugin-create-inventory-records-1.0.0
folio_plugin-find-agreement-5.0.0
folio_plugin-find-contact-2.2.1
folio_plugin-find-eresource-1.0.0
folio_plugin-find-erm-usage-data-provider-2.0.0
folio_plugin-find-import-profile-3.0.0
folio_plugin-find-instance-4.0.0
folio_plugin-find-interface-2.2.1
folio_plugin-find-license-5.0.0
folio_plugin-find-organization-2.2.0
folio_plugin-find-package-title-2.0.0
folio_plugin-find-po-line-2.2.1
folio_plugin-find-user-4.0.1
folio_quick-marc-2.0.1
folio_receiving-1.2.1
folio_requests-4.0.5
folio_search-3.1.0
folio_servicepoints-4.0.1
folio_stripes-core-6.0.0
folio_stripes-smart-components-5.0.4
folio_tags-4.0.0
folio_tenant-settings-5.0.1
folio_users-5.0.8
edge-ncip-1.4.0
edge-orders-2.3.0
edge-oai-pmh-2.3.0
edge-patron-4.3.0
edge-rtac-2.1.1
edge-sip2-1.4.0
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment