Skip to content

Commit

Permalink
Merge pull request #514 from ESIPFed/docker-image
Browse files Browse the repository at this point in the history
Docker image
  • Loading branch information
saivivek116 authored May 14, 2024
2 parents bd97f6e + 3e48c6e commit 64ea95a
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions docs/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,17 +53,19 @@ Use maven to build. In the command line, go to the root folder and execute `mvn

**Step 2**: Pull geoweaver image using command:

`docker pull jensensun/geoweaver`
`docker pull geoweaver/geoweaver`

for other versions, visit [docker hub](https://hub.docker.com/repository/docker/geoweaver/geoweaver/general)

**Step 3**: Run geoweaver using command:

`docker run -t -i -v <YOUR_HOME_DIRECTORY>:/home/marsvegan/ -p 8070:8070 jensensun/geoweaver`
`docker run -t -i -v <YOUR_HOME_DIRECTORY>:/home/marsvegan/ -p 8070:8070 -e PASSWORD="YOUR_PASSWORD" geoweaver/geoweaver`

> *What is going on?* : `-v <YOUR_HOME_DIRECTORY>:/home/marsvegan/` is for mounting your current home directory into the docker containers. `marsvegan` is the user name within geoweaver containers. `-p 8070:8070` maps the port so you can access Geoweaver from your browser. `jensensun/geoweaver` is the published docker image url in DockerHub.
> *What is going on?* : `-v <YOUR_HOME_DIRECTORY>:/home/marsvegan/` is for mounting your current home directory into the docker containers. `marsvegan` is the user name within geoweaver containers. `-p 8070:8070` maps the port so you can access Geoweaver from your browser. `-e` is for specifying environment variable `PASSWORD`. `geoweaver/geoweaver` is the published docker image url in DockerHub.
*Tip*: You can create an alias, so next time, you won't copy and paste such a long command:

`alias geoweaver="docker run -t -i -v <YOUR_HOME_DIRECTORY>:/home/marsvegan/ -p 8070:8070 jensensun/geoweaver"`
`alias geoweaver="docker run -t -i -v <YOUR_HOME_DIRECTORY>:/home/marsvegan/ -p 8070:8070 geoweaver/geoweaver"`


Then start it by simply typing: `geoweaver`
Expand Down

0 comments on commit 64ea95a

Please sign in to comment.