You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -73,87 +73,136 @@ The front-end implementation using React and modern web technologies.
73
73
74
74
---
75
75
76
-
## Installation
76
+
## Installation Guide
77
77
78
-
The Annotat3D project can be built and deployed using either **Docker** or **Singularity**, ensuring flexibility for different environments. Follow the steps below based on your preferred containerization technology.
78
+
The Annotat3D project can be deployed using **Docker** or **Singularity**, providing flexibility for both local and HPC environments.
79
+
80
+
---
79
81
80
82
### Prerequisites
81
-
1.**Docker** or **Singularity** installed on your system:
docker run -d -p 8000:8000 annotat3dweb-prod:latest
121
-
```
112
+
Open your browser and go to:
122
113
123
-
4. Access the web application at `http://localhost:8000`.
114
+
```
115
+
http://localhost:8000
116
+
```
124
117
125
-
### Building with Singularity
118
+
---
126
119
127
-
To build and run Annotat3D using Singularity:
120
+
### Option 2: Build Docker Image Locally
128
121
129
-
1. Clone the repository:
130
-
```bash
131
-
git clone https://github.com/cnpem/annotat3d.git
132
-
cd annotat3d
133
-
```
122
+
Use this option if you want to **customize the container** or include local changes.
134
123
135
-
2. Generate the Singularity recipe and build the Singularity image:
136
-
```bash
137
-
bash container/build_singularity.sh base
138
-
bash container/build_singularity.sh production
139
-
```
124
+
#### 1. Clone the repository
125
+
126
+
```bash
127
+
git clone https://github.com/cnpem/annotat3d.git
128
+
cd annotat3d
129
+
```
140
130
141
-
This script will:
142
-
- Generate Singularity definition files (`container/Singularity-base.def` and `container/Singularity-productions.def`) using the HPCCM recipe.
143
-
- Build the Singularity images base and production (`annotat3d-base.sif` and ``annotat3d-prod.sif``).
131
+
#### 2. Build the Docker image
144
132
145
-
3. Run the Singularity container:
146
-
```bash
147
-
singularity run --nv annotat3d-prod.sif
148
-
```
133
+
Run the build script:
134
+
135
+
```bash
136
+
bash container/build_docker.sh
137
+
```
138
+
139
+
This script will:
140
+
141
+
* Generate a `Dockerfile` from the HPCCM recipe (`container/hpccm-annotat3d.py`).
142
+
* Build the Docker image and tag it as `annotat3dweb-prod:latest`.
149
143
150
-
4. Access the web application at `http://localhost:8000`.
144
+
#### 3. Run the Docker container
145
+
146
+
```bash
147
+
docker run -d -p 8000:8000 annotat3dweb-prod:latest
148
+
```
149
+
150
+
#### 4. Access the web application
151
+
152
+
Open your browser at:
153
+
154
+
```
155
+
http://localhost:8000
156
+
```
157
+
158
+
---
159
+
160
+
### Option3: Building with Singularity
161
+
162
+
Use Singularity in HPC or restricted environments where Docker is unavailable.
163
+
164
+
#### 1. Clone the repository
165
+
166
+
```bash
167
+
git clone https://github.com/cnpem/annotat3d.git
168
+
cd annotat3d
169
+
```
170
+
171
+
#### 2. Build Singularity images
172
+
173
+
```bash
174
+
bash container/build_singularity.sh base
175
+
bash container/build_singularity.sh production
176
+
```
177
+
178
+
This generates:
179
+
180
+
* Definition files: `container/Singularity-base.def` and `container/Singularity-production.def`.
181
+
* Singularity images: `annotat3d-base.sif` and `annotat3d-prod.sif`.
182
+
183
+
#### 3. Run the Singularity container
184
+
185
+
```bash
186
+
singularity run --nv annotat3d-prod.sif
187
+
```
188
+
189
+
*`--nv` enables GPU support if available.
190
+
191
+
#### 4. Access the web application
192
+
193
+
Open your browser at:
194
+
195
+
```
196
+
http://localhost:8000
197
+
```
151
198
152
199
### Notes
153
200
154
-
-**HPCCM Recipe**: The `container/hpccm-annotat3d.py` script generates recipes for both Docker and Singularity containers, ensuring compatibility with HPC environments.
155
-
- Ensure you execute the build scripts from the project’s root directory to avoid path issues.
156
-
- If additional dependencies are required, update the HPCCM recipe file before building the image.
201
+
***HPCCM Recipe** (`container/hpccm-annotat3d.py`) generates container recipes compatible with both Docker and Singularity.
202
+
* Execute build scripts from the project root to avoid path issues.
203
+
* Update the HPCCM recipe if additional dependencies are required.
204
+
***Option 1 (prebuilt Docker image)** is recommended for quick deployment; no cloning required.
205
+
***Option 2 (local build)** is useful for customization or development.
0 commit comments