forked from doublefint/cache-udl
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
116 additions
and
77 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: versionbump | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
- main | ||
pull_request: | ||
branches: | ||
- master | ||
- main | ||
release: | ||
types: | ||
- released | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Bump version | ||
run: | | ||
git config --global user.name 'ProjectBot' | ||
git config --global user.email '[email protected]' | ||
VERSION=$(sed -n '0,/.*<Version>\(.*\)<\/Version>.*/s//\1/p' module.xml) | ||
VERSION=`echo $VERSION | awk -F. '/[0-9]+\./{$NF++;print}' OFS=.` | ||
sed -i "0,/<Version>\(.*\)<\/Version>/s//<Version>$VERSION<\/Version>/" module.xml | ||
git add module.xml | ||
git commit -m 'auto bump version' | ||
git push |
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,28 @@ | ||
name: unittest | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
- main | ||
pull_request: | ||
branches: | ||
- master | ||
- main | ||
release: | ||
types: | ||
- released | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Build and Test | ||
uses: docker/build-push-action@v2 | ||
with: | ||
context: . | ||
push: false | ||
load: true | ||
tags: ${{ github.repository }}:${{ github.sha }} | ||
build-args: TESTS=1 |
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 |
---|---|---|
@@ -1,25 +1,31 @@ | ||
ARG IMAGE=store/intersystems/irishealth:2019.3.0.308.0-community | ||
ARG IMAGE=store/intersystems/iris-community:2019.3.0.309.0 | ||
ARG IMAGE=store/intersystems/iris-community:2019.4.0.379.0 | ||
ARG IMAGE=store/intersystems/iris-community:2020.1.0.199.0 | ||
ARG IMAGE=intersystemsdc/irishealth-community:2020.3.0.200.0-zpm | ||
ARG IMAGE=intersystemsdc/iris-community:2020.4.0.547.0-zpm | ||
ARG IMAGE=containers.intersystems.com/intersystems/iris:2021.1.0.215.0 | ||
ARG IMAGE=intersystemsdc/iris-community | ||
FROM $IMAGE | ||
|
||
USER root | ||
WORKDIR /home/irisowner/irisbuild | ||
|
||
WORKDIR /opt/irisapp | ||
RUN chown ${ISC_PACKAGE_MGRUSER}:${ISC_PACKAGE_IRISGROUP} /opt/irisapp | ||
## install git | ||
## USER root | ||
##RUN apt update && apt-get -y install git | ||
##USER ${ISC_PACKAGE_MGRUSER} | ||
|
||
USER irisowner | ||
ARG TESTS=0 | ||
ARG MODULE="dc-sample-template" | ||
ARG NAMESPACE="IRISAPP" | ||
|
||
COPY Installer.cls . | ||
COPY src src | ||
COPY irissession.sh / | ||
SHELL ["/irissession.sh"] | ||
## Embedded Python environment | ||
ENV IRISUSERNAME "_SYSTEM" | ||
ENV IRISPASSWORD "SYS" | ||
ENV IRISNAMESPACE $NAMESPACE | ||
ENV PYTHON_PATH=/usr/irissys/bin/ | ||
ENV PATH "/usr/irissys/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/irisowner/bin" | ||
|
||
RUN \ | ||
do $SYSTEM.OBJ.Load("Installer.cls", "ck") \ | ||
set sc = ##class(App.Installer).setup() | ||
|
||
# bringing the standard shell back | ||
SHELL ["/bin/bash", "-c"] | ||
RUN --mount=type=bind,src=.,dst=. \ | ||
#pip3 install -r requirements.txt && \ | ||
iris start IRIS && \ | ||
iris session IRIS < iris.script && \ | ||
([ $TESTS -eq 0 ] || iris session iris -U $NAMESPACE "##class(%ZPM.PackageManager).Shell(\"test $MODULE -v -only\",1,1)") && \ | ||
iris stop IRIS quietly |
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
// Unexpire passwords to simplify dev mode. Comment these two lines for Production use | ||
zn "%SYS" | ||
Do ##class(Security.Users).UnExpireUserPasswords("*") | ||
|
||
; enabling callin for Embedded Python | ||
do ##class(Security.Services).Get("%Service_CallIn",.prop) | ||
set prop("Enabled")=1 | ||
set prop("AutheEnabled")=48 | ||
do ##class(Security.Services).Modify("%Service_CallIn",.prop) | ||
|
||
// create IRISAPP namespace | ||
do $SYSTEM.OBJ.Load("/home/irisowner/irisbuild/Installer.cls", "ck") | ||
set sc = ##class(App.Installer).setup() | ||
|
||
|
||
// load all the code of the project as a ZPM package | ||
zn "IRISAPP" | ||
do ##class(dev.code).workdir("/irisrun/repo/src") | ||
|
||
zpm "load /home/irisowner/irisbuild/ -v":1:1 | ||
halt |
This file was deleted.
Oops, something went wrong.
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