-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: add %IPM mappings automatically on upgrade
...and a bunch of other/related things: * Added <Invoke> elements to handle custom setup steps, including mappings (most critically) and language extensions. Also changed version to use -SNAPSHOT as this is what open source automation assumes. * In IPM.Installer, drive unpacking/installing from EndCompile instead of CreateProjection to avoid lock contention on the class definition itself. (This could be a better solution than asyncSetup in itself - didn't want to go that far in refactoring.) * Add resources for sandbox container (easier to test installs/upgrades there than via act) * Refactor other top-level files - setup-registry.sh to scripts * Some CI tweaks
- Loading branch information
1 parent
98d8184
commit 712d4e0
Showing
9 changed files
with
6,562 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
0
setup-registry.sh → scripts/setup-registry.sh
100755 → 100644
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
ARG BASE=containers.intersystems.com/intersystems/iris-community:2024.1 | ||
FROM ${BASE} | ||
|
||
USER root | ||
|
||
RUN apt-get update \ | ||
&& apt-get install -y jq | ||
|
||
USER irisowner |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#!/bin/bash | ||
|
||
if [ -z $1 ]; then | ||
echo "Enter filename of a previous IPM release asset to install: " | ||
read ASSET_NAME | ||
else | ||
ASSET_NAME=$1 | ||
fi | ||
|
||
if [ "$ASSET_NAME" = "local" ]; then | ||
ASSET_URL="http://registry:52773/registry/packages/zpm/latest/installer" | ||
else | ||
ASSET_URL=`wget -qO- https://api.github.com/repos/intersystems/ipm/releases | jq -r ".[].assets[] | select(.name == \"${ASSET_NAME}\") | .browser_download_url"` | ||
if [ "$ASSET_URL" = "" ]; then | ||
echo "Asset ${ASSET_NAME} not found." | ||
exit | ||
fi | ||
fi | ||
wget $ASSET_URL -O /home/irisowner/zpm.xml | ||
/bin/echo " | ||
set sc = ##class(%SYSTEM.OBJ).Load(\"/home/irisowner/zpm.xml\", \"ck\") | ||
zpm \"list\":1 | ||
zpm \"repo -r -name registry -url http://registry:52773/registry/ -username admin -password SYS\":1 | ||
halt | ||
" | iris session iris -UUSER |
Oops, something went wrong.