Skip to content

Commit

Permalink
docker: reorganize ubuntu_wxgui for docker image creation (#2764)
Browse files Browse the repository at this point in the history
* move docker/ubuntu/wxgui/Dockerfile to own directory in order to enable automated docker image creation.
* update README.md for new docker/ubuntu_wxgui/Dockerfile path
  • Loading branch information
neteler committed Jan 21, 2023
1 parent 8d2563d commit f76b267
Show file tree
Hide file tree
Showing 4 changed files with 90 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ jobs:
- alpine
- debian
- ubuntu
- ubuntu_wxgui
fail-fast: false

steps:
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ docker run -it --rm --user=$(id -u):$(id -g) \
B. Docker image **with graphical user interface - wxGUI**.

```bash
docker build -t grassgis -f docker/ubuntu/wxgui/Dockerfile .
docker build -t grassgis -f docker/ubuntu_wxgui/Dockerfile .
```

Note that the first `grassgis` is the name of the image while the second
Expand Down
File renamed without changes.
88 changes: 88 additions & 0 deletions docker/ubuntu_wxgui/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
# Docker GRASS GIS (Ubuntu Linux)

Dockerfile with an [Ubuntu Linux](https://ubuntu.com/) image with
[GRASS GIS](https://grass.osgeo.org/), [PDAL](https://pdal.io) support and
[grass-session](https://github.com/zarch/grass-session/).

Download size of this image is of approximately 2.6 GB.

Clone this repository and change directory:

```bash
git clone https://github.com/OSGeo/grass.git
cd grass
```

## Ubuntu stable

__Build the docker with__:

```bash
docker build \
--file docker/ubuntu_wxgui/Dockerfile \
--tag grass-py3-pdal:stable-ubuntu .
```

View the images available using `sudo docker images` and open a bash terminal
with:

```bash
$ docker run -it grass-py3-pdal:stable-ubuntu /bin/bash
bash-5.0#
```

__To build a stable version__:

change to the releasebranch or tag you want to build:

```bash
git checkout remotes/origin/releasebranch_8_2
```

and build and enter with:

```bash
$ docker build \
-f docker/ubuntu_wxgui/Dockerfile \
-t grass-py3-pdal:stable-ubuntu .

$ docker run -it grass-py3-pdal:stable-ubuntu /bin/bash
bash-5.0#
```

## Ubuntu latest

__Build the docker with__:

```bash
$ docker build \
--file docker/ubuntu_wxgui/Dockerfile_ubuntu_wxgui_latest_pdal \
--tag grass-py3-pdal:latest-ubuntu .
```

View the images available using `sudo docker images` and open a bash terminal
with:

```bash
$ docker run -it grass-py3-pdal:latest-ubuntu /bin/bash
bash-5.0#
```

__To build a latest version__:

change to the releasebranch or tag you want to build:

```bash
git checkout remotes/origin/releasebranch_8_2
```

and build and enter with:

```bash
$ docker build \
-f docker/ubuntu_wxgui/Dockerfile_ubuntu_wxgui_latest_pdal \
-t grass-py3-pdal:latest-ubuntu .

$ docker run -it grass-py3-pdal:latest-ubuntu /bin/bash
bash-5.0#
```

0 comments on commit f76b267

Please sign in to comment.