allow small durability for demo and developent
During development of a container based demo I found the need to access a fresh docker
instance of IRIS image (e.g intersystems/iris-community:2020.2.0.199.0) over and over.
To bypass setting passwords and loading my code repeatedly I developed this workaround.
It is a reduced variant of "Docker - light weight durability"
The base facts:
OK so far!
I have a directory for external data in docker.
Once the script is executed
The external directory should allow rwx access (chmod 777) as the docker image
is just a nobody to your local system. But it wants to write his iris.lck file
Shutdown requires no action as your DB is already outside the docker image located
and next time you have a virgin IRIS system again with your USER DB unchanged.
You may say: It's dirty.
But I can confirm my development speed and fun was significantly increasing.
And a got rid of the boring acts with virgin container images.
How to use:
Have a docker instance for IRIS >>> iris-community:2020.2.0.199.0
Download and untar the archiv micro-durability.tar.gz
chmod 777 to direcory demo/
run your container:
docker run --name iris1 --init -it \
-p 52773:52773 -p 51773:51773 \
-v $(pwd):/external \
Late warning. always check the version of your image!
I just fell into intersystems/iris-community:2020.2.0.204.0
NOTICE: ALL SCRIPTS ARE FOR LINUX ONLY !