Home Applications iris-google-run-deploy-template

iris-google-run-deploy-template

This application is not supported by InterSystems Corporation. Please be notified that you use it at your own risk.
5
1 reviews
0
Awards
231
Views
14
IPM installs
0
0
Details
Releases
Reviews
Issues
Pull requests
Simple InterSystems IRIS docker solution deployment to Google Run template

What's new in this version

Links update

iris-google-run-deploy-template

This is a template to deploy InterSystems IRIS solution to Google Kubernetes Engine.
The template uses Github Actions and Google Cloud Run

how it works

The worlfow deployes the IRIS with sample cls and with a static frontend with every push to the master branch.
The demo site is available here.

How to use it

Take the workflow file to your repository
Change these lines to your options:

IMAGE_NAME:   iris-google-run-demo
SERVICE:      deploy-demo
DOMAIN_NAME:  deploy.contest.community.intersystems.com

Note, that IMAGE_NAME could be any name for the docker image of your app
SERVICE can be anything, but different from this file
and DOMAIN_NAME could be any 5-level dns name before contest.community.intersystems.com

Also, you need to request the service key to access the GCP cluster for deployemnt your app. Do it in the discord in the Open Exchange channel.
Add the Secret to your Github Repository in Settings/Secrets section with SERVICE_ACCOUNT_KEY name and put the JSON key there.

After that your solution will be deployed into yourname.contest.community.intersystems.com with every push to master automatically.

You can check the deployment status in the Actions section of your repository.

Development

Clone/git pull the repo into any local directory

$ git clone https://github.com/intersystems-community/objectscript-docker-template.git

Open the terminal in this directory and run:

$ docker-compose build
  1. Run the IRIS container with your project:
$ docker-compose up -d

How to start coding

This repository is ready to code in VSCode with ObjectScript plugin.
Install VSCode, Docker and ObjectScript plugin and open the folder in VSCode.
Open /src/cls/PackageSample/ObjectScript.cls class and try to make changes - it will be compiled in running IRIS docker container.
docker_compose

Feel free to delete PackageSample folder and place your ObjectScript classes in a form
/src/Package/Classname.cls
Read more about folder setup for InterSystems ObjectScript

The script in Installer.cls will import everything you place under /src into IRIS.

.vscode/settings.json

Settings file to let you immedietly code in VSCode with VSCode ObjectScript plugin)

.vscode/launch.json

Config file if you want to debug with VSCode ObjectScript

Read about all the files in this artilce

Read more
Made with
Install
zpm install google-run-deploy download archive
Version
1.0.126 Feb, 2021
Category
Technology Example
Works with
InterSystems IRISInterSystems IRIS for Health
First published
26 Feb, 2021
Last checked by moderator
27 Jun, 2023Works