generated from rcemper/mini-docker
-
Notifications
You must be signed in to change notification settings - Fork 1
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
0 parents
commit 697a3b2
Showing
20 changed files
with
453 additions
and
0 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,3 @@ | ||
**/.DS_Store | ||
iris-main.log | ||
.git |
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,11 @@ | ||
*.cls linguist-language=ObjectScript | ||
*.mac linguist-language=ObjectScript | ||
*.int linguist-language=ObjectScript | ||
*.inc linguist-language=ObjectScript | ||
*.csp linguist-language=Html | ||
|
||
*.sh text eol=lf | ||
*.cls text eol=lf | ||
*.mac text eol=lf | ||
*.int text eol=lf | ||
Dockerfil* text eol=lf |
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,12 @@ | ||
name: objectscriptquality | ||
on: push | ||
|
||
jobs: | ||
linux: | ||
name: Linux build | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Execute ObjectScript Quality Analysis | ||
run: wget https://raw.githubusercontent.com/litesolutions/objectscriptquality-jenkins-integration/master/iris-community-hook.sh && sh ./iris-community-hook.sh | ||
|
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,19 @@ | ||
name: Cloud Run Deploy | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
- main | ||
workflow_dispatch: | ||
|
||
jobs: | ||
deploy: | ||
uses: intersystems-community/demo-deployment/.github/workflows/deployment.yml@master | ||
with: | ||
# Replace the name: parameter below to have your application deployed at | ||
# https://project-name.demo.community.intersystems.com/ | ||
name: project-name | ||
secrets: | ||
# Do not forget to add Secret in GitHub Repoository Settings with name SERVICE_ACCOUNT_KEY | ||
SERVICE_ACCOUNT_KEY: ${{ secrets.SERVICE_ACCOUNT_KEY }} |
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: versionbump | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
- main | ||
release: | ||
types: | ||
- released | ||
permissions: | ||
contents: write | ||
|
||
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,25 @@ | ||
name: Build and publish a Docker image to ghcr.io | ||
on: | ||
|
||
# publish on pushes to the main branch (image tagged as "latest") | ||
# image name: will be: ghcr.io/${{ github.repository }}:latest | ||
# e.g.: ghcr.io/intersystems-community/intersystems-iris-dev-template:latest | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
docker_publish: | ||
runs-on: "ubuntu-20.04" | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
# https://github.com/marketplace/actions/push-to-ghcr | ||
- name: Build and publish a Docker image for ${{ github.repository }} | ||
uses: macbre/push-to-ghcr@master | ||
with: | ||
image_name: ${{ github.repository }} | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
# optionally push to the Docker Hub (docker.io) | ||
# docker_io_token: ${{ secrets.DOCKER_IO_ACCESS_TOKEN }} # see https://hub.docker.com/settings/security |
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
.DS_Store | ||
iris-main.log | ||
.env | ||
.git | ||
|
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,6 @@ | ||
:alias enablebi do EnableDeepSee^%SYS.cspServer("/csp/"_$zcvt($namespace,"L")) ; | ||
:alias ssl x "n $namespace set $namespace=""%SYS"", name=$S(""$1""="""":""DefaultSSL"",1:""$1"") do:'##class(Security.SSLConfigs).Exists(name) ##class(Security.SSLConfigs).Create(name)" ; | ||
:alias createdb do $SYSTEM.SQL.Execute("CREATE DATABASE $1") ; | ||
:alias installipm s r=##class(%Net.HttpRequest).%New(),r.Server="pm.community.intersystems.com",r.SSLConfiguration="ISC.FeatureTracker.SSL.Config" d r.Get("/packages/zpm/latest/installer"),$system.OBJ.LoadStream(r.HttpResponse.Data,"c") ; | ||
:alias add%all x "n $namespace set $namespace=""%SYS"",P(""Globals"")=""%DEFAULTDB"",sc=##class(Config.Namespaces).Create(""%All"",.P)" ; | ||
:alias exportglobal d $System.OBJ.Export("$1.GBL","$2$1.xml") ; |
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,17 @@ | ||
{ | ||
"recommendations": [ | ||
"eamodio.gitlens", | ||
"georgejames.gjlocate", | ||
"github.copilot", | ||
"intersystems-community.servermanager", | ||
"intersystems-community.sqltools-intersystems-driver", | ||
"intersystems-community.testingmanager", | ||
"intersystems-community.vscode-objectscript", | ||
"intersystems.language-server", | ||
"mohsen1.prettify-json", | ||
"ms-azuretools.vscode-docker", | ||
"ms-python.python", | ||
"ms-python.vscode-pylance", | ||
"ms-vscode-remote.remote-containers" | ||
] | ||
} |
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,18 @@ | ||
{ | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"type": "objectscript", | ||
"request": "launch", | ||
"name": "ObjectScript Debug Class", | ||
"program": "##class(dc.sample.ObjectScript).Test()", | ||
}, | ||
{ | ||
"type": "objectscript", | ||
"request": "attach", | ||
"name": "ObjectScript Attach", | ||
"processId": "${command:PickProcess}", | ||
"system": true | ||
} | ||
] | ||
} |
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,22 @@ | ||
{ | ||
"files.associations": { | ||
|
||
"Dockerfile*": "dockerfile", | ||
"iris.script": "objectscript" | ||
}, | ||
"objectscript.conn" :{ | ||
"active": true, | ||
"ns": "IRISAPP", | ||
"username": "_SYSTEM", | ||
"password": "SYS", | ||
"docker-compose": { | ||
"service": "iris", | ||
"internalPort": 52773 | ||
}, | ||
"links": { | ||
"UnitTest Portal": "${serverUrl}/csp/sys/%25UnitTest.Portal.Home.cls?$NAMESPACE=IRISAPP" | ||
} | ||
}, | ||
"intersystems.testingManager.client.relativeTestRoot": "tests" | ||
|
||
} |
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 @@ | ||
MIT License | ||
|
||
Copyright (c) 2019 InterSystems Developer Community | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
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,45 @@ | ||
# mini-docker | ||
The package creates a very basic IRIS instance in Docker | ||
It's a proposal for an instance independent of IPM versions. | ||
## Description | ||
This repository provides a generic development environment | ||
for coding productively with InterSystems ObjectScript. | ||
This template: | ||
* Runs InterSystems IRIS Community Edition in a docker container | ||
* besides ZPM it includes WEBTERMINAL and PASSWORDLESS package | ||
* the namespace defaults to USER | ||
* any additional setting is provided by additional package related installation | ||
|
||
### Usage | ||
The container is built directly from **intersystemsdc/iris-community** without any Dockerfile | ||
- **bscript.sh** runs BEFORE IRIS is started | ||
- **script.sh** is executed AFTER the start of IRIS and executes **iris.script** by default | ||
- changing of port mapping happens in **docker-compose.yml** | ||
|
||
### Prerequisites | ||
Make sure you have [git](https://git-scm.com/book/en/v2/Getting-Started-Installing-Git) and [Docker desktop](https://www.docker.com/products/docker-desktop) installed. | ||
### Installation | ||
Clone/git pull the repo into any local directory | ||
``` | ||
$ git clone https://github.com/r-cemper/mini-docker.git | ||
``` | ||
To build and start the container run: | ||
``` | ||
$ docker compose up -d && docker compose logs -f | ||
``` | ||
To open IRIS Terminal do: | ||
``` | ||
$ docker-compose exec iris iris session iris | ||
USER> | ||
``` | ||
or using **WebTerminal** | ||
``` | ||
http://localhost:42773/terminal/ | ||
``` | ||
To access IRIS System Management Portal | ||
``` | ||
http://localhost:42773/csp/sys/UtilHome.csp | ||
``` | ||
### How to use it | ||
This presents OEX package [xxxxxxx]() using the actual IPM module | ||
All user documentation is found there in the [original repo]() |
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,4 @@ | ||
cd /home/irisowner/dev | ||
iris view | ||
iris session iris < iris.script | ||
exit 0 |
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,2 @@ | ||
cp -v /home/irisowner/dev/.iris_init /home/irisowner/ | ||
exit 0 |
Oops, something went wrong.