Skip to content

Commit

Permalink
Add instructions to build image locally (#206)
Browse files Browse the repository at this point in the history
* Add instructions to build image locally

* add info for windows
  • Loading branch information
benlee0423 authored Jul 30, 2024
1 parent e433e85 commit 97a5138
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,26 @@ 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.\
For windows user, the build should be run as administrator.
Note: buildx command cannot be used in local build.
**Additional Resources:**
Expand Down

0 comments on commit 97a5138

Please sign in to comment.