Skip to content

Commit

Permalink
Add instructions to build image locally
Browse files Browse the repository at this point in the history
  • Loading branch information
benlee0423 authored Jul 9, 2024
1 parent e433e85 commit 657ee01
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,25 @@ If the [Tethys Platform](https://www.tethysplatform.org/) is used to visualize t
**Catchments Time Series**
![1715704450639](https://github.com/CIROH-UA/NGIAB-CloudInfra/blob/main/image/README/1715704450639.png)
### Build NGIAB locally
Here is the commands that build ngiab image locally using docker build.
```
cd docker
docker build -f Dockerfile.ngen-deps -t awiciroh/ngen-deps . --no-cache
docker build -f Dockerfile.t-route -t awiciroh/t-route . --no-cache --build-arg TAG_NAME=latest
docker build -f Dockerfile.ngen -t awiciroh/ngen . --no-cache --build-arg TAG_NAME=latest
docker build -f Dockerfile -t awiciroh/ciroh-ngen-image:latest . --no-cache --build-arg TAG_NAME=latest
```
This image will not be pushed to Docker hub, and will stay in local machine.
If you need to run guide.sh with the image built, image tag must match with your machine platform.
For Arm64 architecture, use latest tag.
For X86 architecture, use latest-x86 tag.
Note: buildx command cannot be used in local build.
**Additional Resources:**
Expand Down

0 comments on commit 657ee01

Please sign in to comment.