Skip to content

Commit

Permalink
update image ref with ghcr.io
Browse files Browse the repository at this point in the history
  • Loading branch information
WouterVisscher committed Dec 20, 2023
1 parent f7f1356 commit fb4fbd4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,21 +39,21 @@ layer on top of PROJ; for instance use it with
### Build

```bash
docker build -t nsgi/proj:9.3.1 .
docker build -t geodetischeinfrastructuur/transformations:1.0.0 .
```

### Run

To start an interactive terminal inside the container run:

```bash
docker run -it --rm --name nsgi-proj nsgi/proj:9.3.1
docker run -it --rm --name nsgi-proj ghcr.io/geodetischeinfrastructuur/transformations:1.0.0
```

To invoke `projinfo` from your current terminal sessions run:

```bash
docker run --rm --name nsgi-proj nsgi/proj:9.3.1 projinfo
docker run --rm --name nsgi-proj ghcr.io/geodetischeinfrastructuur/transformations:1.0.0 projinfo
```

## Test
Expand All @@ -62,8 +62,8 @@ To verify if the NSGI transformation `EPSG:7931` -> `EPSG:7415` works as
expected, run the following in a terminal:

```bash
docker build -f validate/Dockerfile -t nsgi/pyproj:3.6.1 .
docker run --rm -it nsgi/pyproj:3.6.1 python
docker build -f validate/Dockerfile -t geodetischeinfrastructuur/pyproj:3.6.1 .
docker run --rm -it geodetischeinfrastructuur/pyproj:3.6.1 python
```

Then run the following Python code:
Expand All @@ -89,7 +89,7 @@ Running the full validation file can be done by running the following docker run
cmd.

```bash
docker run -d --rm -v `pwd`/validate:/validate nsgi/pyproj:3.6.1 python ./validate/validate.py ./validate/Z001_ETRS89andRDNAP.txt ./validate/validation-output.csv
docker run -d --rm -v `pwd`/validate:/validate geodetischeinfrastructuur/pyproj:3.6.1 python ./validate/validate.py ./validate/Z001_ETRS89andRDNAP.txt ./validate/validation-output.csv
```

Or by running the python script directly.
Expand Down
2 changes: 1 addition & 1 deletion validate/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ RUN apt-get update && \
RUN pip install pyproj==3.6.1

# COPY the transformation grids, the modified proj.db and all the other proj files
COPY --from=nsgi/proj:9.3.1 /usr/share/proj/ /usr/local/lib/python3.11/site-packages/pyproj/proj_dir/share/proj/
COPY --from=ghcr.io/geodetischeinfrastructuur/transformations:1.0.0 /usr/share/proj/ /usr/local/lib/python3.11/site-packages/pyproj/proj_dir/share/proj/

0 comments on commit fb4fbd4

Please sign in to comment.