Skip to content

Commit 9a1820e

Browse files
committed
Refined instructions for local installation setup
1 parent e7416a1 commit 9a1820e

File tree

1 file changed

+28
-6
lines changed

1 file changed

+28
-6
lines changed

README.md

+28-6
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ mkdir $BAHMNI_DIR
2525
### Download the Docker Compose project itself:
2626

2727
```
28-
export VERSION=2.0.0-SNAPSHOT && \
28+
export VERSION=2.4.0-SNAPSHOT && \
2929
# Download the project && \
3030
mvn org.apache.maven.plugins:maven-dependency-plugin:3.2.0:get -DremoteRepositories=https://nexus.mekomsolutions.net/repository/maven-public -Dartifact=net.mekomsolutions:bahmni-docker-compose:$VERSION:zip -Dtransitive=false --legacy-local-repository && \
3131
# Unzip the project in $BAHMNI_DIR/bahmni-docker-compose-$VERSION && \
@@ -41,7 +41,7 @@ Fetch the distribution of your choice:
4141
Eg, Bahmni Distro **Haiti**:
4242
```
4343
export DISTRO_GROUP="haiti" && \
44-
export DISTRO_VERSION="1.2.0-SNAPSHOT" && \
44+
export DISTRO_VERSION="2.4.0" && \
4545
# Download the distro && \
4646
mvn org.apache.maven.plugins:maven-dependency-plugin:3.2.0:get -DremoteRepositories=https://nexus.mekomsolutions.net/repository/maven-public -Dartifact=net.mekomsolutions:bahmni-distro-$DISTRO_GROUP:$DISTRO_VERSION:zip -Dtransitive=false --legacy-local-repository && \
4747
# Unzip the distro in $BAHMNI_DIR/bahmni-distro-$DISTRO_GROUP-$DISTRO_VERSION && \
@@ -64,18 +64,40 @@ export EIP_CONFIG_PATH=$DISTRO_PATH/eip_config
6464

6565
The complete list of available variables can be found in [.env](.env).
6666

67+
### Move to the location of bahmni-docker-compose project
68+
69+
```bash
70+
cd $BAHMNI_DIR/bahmni-docker-compose-$VERSION
71+
```
72+
6773
### Start Bahmni:
6874

75+
<table>
76+
<tr>
77+
<td> macOS </td> <td> Linux </td>
78+
</tr>
79+
<tr>
80+
<td>
81+
82+
```bash
83+
docker compose -p $DISTRO_GROUP up
6984
```
70-
cd $BAHMNI_DIR/bahmni-docker-compose-$VERSION && \
71-
docker-compose -p $DISTRO_GROUP up
85+
86+
</td>
87+
<td>
88+
89+
```bash
90+
sudo -E docker compose -p $DISTRO_GROUP up
7291
```
92+
</td>
93+
</tr>
94+
</table>
95+
7396
<p align="center">
7497
<img src="./readme/docker-compose-up-shadow.png" alt="docker-compose up" height="200">
7598
</p>
7699

77-
**Important:** This assumes that you run the `docker` command as the same user and in the same window in which you exported your variables.
78-
If Docker is run as `sudo`, the variables won't have an effect. Make sure to either export them as root, or run `docker` with `sudo -E` option to preserve the user environment. See [Docker on Linux Post-install steps](https://docs.docker.com/engine/install/linux-postinstall/)
100+
**Important:** This assumes that you run the `docker` command as the same user and in the same window in which you exported your variables. On Linux we advise to run `docker` with `sudo -E` option to preserve the user environment as `su`. See [Docker on Linux Post-install steps](https://docs.docker.com/engine/install/linux-postinstall/)
79101

80102
### Access the servers:
81103

0 commit comments

Comments
 (0)