diff --git a/.env b/.env new file mode 100644 index 0000000..da3376d --- /dev/null +++ b/.env @@ -0,0 +1 @@ +ARCH= \ No newline at end of file diff --git a/.env-arm64 b/.env-arm64 new file mode 100644 index 0000000..ccf3a16 --- /dev/null +++ b/.env-arm64 @@ -0,0 +1 @@ +ARCH=-arm64 \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index 10b95f7..f9b09f3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,8 +1,5 @@ -#ARG IMAGE=store/intersystems/irishealth-community:2019.4.0.383.0 -#ARG IMAGE=store/intersystems/irishealth-community:2020.1.0.202.0 -#ARG IMAGE=store/intersystems/irishealth-community:2020.2.0.211.0 -#ARG IMAGE=store/intersystems/irishealth-community:2021.1.0.215.3 -ARG IMAGE=containers.intersystems.com/intersystems/irishealth-community:2022.2.0.281.0 +ARG ARCH +ARG IMAGE=containers.intersystems.com/intersystems/irishealth-community$ARCH:2022.2.0.293.0 FROM $IMAGE AS IRISBuilder LABEL maintainer="Renan Lourenco " diff --git a/README.md b/README.md index 9c3e557..bf69016 100644 --- a/README.md +++ b/README.md @@ -8,19 +8,14 @@ Basic setup of ENSDEMO content into InterSystems IRIS for Health. ## Setup -Clone the repository to your desired directory +Clone the repo `git clone https://github.com/OneLastTry/irishealth-ensdemo.git` and then execute from the main directory `docker-compose build`. +_(for arm64 run `docker-compose --env-file=.env-arm64 build`)_ -```bash -git clone https://github.com/OneLastTry/irishealth-ensdemo.git -``` - -Once the repository is cloned, execute: +## Execution -**Always make sure you are inside the main directory to execute docker-compose commands.** +Once the build is complete, from the main directory, start your iris container: -```bash -docker-compose build -``` +- **start container:** `docker-compose up -d` ## Run your Container diff --git a/docker-compose.yml b/docker-compose.yml index fb8ed25..8319042 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -5,6 +5,8 @@ services: init: true build: context: . + args: + ARCH: $ARCH hostname: ensdemo container_name: ensdemo ports: