Skip to content

Template project for InterSystems ObjectScript with InterSystems IRIS community Edition docker container

License

Notifications You must be signed in to change notification settings

intersystems-community/objectscript-docker-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

5e37f9f · Aug 2, 2024

History

96 Commits
Nov 20, 2023
Aug 14, 2022
Nov 6, 2020
Aug 15, 2022
Aug 15, 2022
Feb 2, 2024
May 13, 2021
Jan 28, 2020
Jan 25, 2024
Jan 25, 2024
Jan 25, 2024
Aug 2, 2024
Sep 3, 2019
Nov 17, 2022
Aug 2, 2024
May 16, 2023
May 16, 2023
Aug 15, 2022

Repository files navigation

intersystems-objectscript-template

This is a template for InterSystems ObjectScript Github repository. The template goes also with a few files which let you immediately compile your ObjectScript files in InterSystems IRIS Community Edition in a docker container

Prerequisites

Make sure you have git and Docker desktop installed.

Installation

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 Test it

Open IRIS terminal:

$ docker-compose exec iris iris session iris
USER>write ##class(dc.sample.ObjectScript).Test()

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.

What's inside the repository

Dockerfile

The simplest Dockerfile which starts IRIS and imports code from /src folder into it. Use the related docker-compose.yml to easily setup additional parametes like port number and where you map keys and host folders.

.vscode/settings.json

Settings file to let you immediately 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 article