Skip to content

Commit

Permalink
added support to arm64 silicon
Browse files Browse the repository at this point in the history
  • Loading branch information
OneLastTry committed Jul 26, 2022
1 parent 725bce7 commit d93bb4b
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 15 deletions.
1 change: 1 addition & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ARCH=
1 change: 1 addition & 0 deletions .env-arm64
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ARCH=-arm64
7 changes: 2 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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 <[email protected]>"
Expand Down
15 changes: 5 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 2 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ services:
init: true
build:
context: .
args:
ARCH: $ARCH
hostname: ensdemo
container_name: ensdemo
ports:
Expand Down

0 comments on commit d93bb4b

Please sign in to comment.