Skip to content

Commit cce08ca

Browse files
authored
remove Docker Compose volume configuration step from exercise (#210)
1 parent 69fc9e2 commit cce08ca

File tree

2 files changed

+4
-35
lines changed

2 files changed

+4
-35
lines changed

workshop/content/docs/publishing/first.md

Lines changed: 3 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -11,20 +11,12 @@ kindly provided by [Estonian Health Board](https://terviseamet.ee).
1111

1212
You can find this dataset in `workshop/exercises/data/tartu/bathingwater-estonia.csv`.
1313

14-
This exercise consists of two steps:
15-
16-
* adjust `workshop/exercises/pygeoapi.config.yml` to define this dataset as an OGC API - Features *collection*
17-
* ensure that pygeoapi can find and connect to the data file
18-
19-
We will use the `workshop/exercises/docker-compose.yml` file provided.
14+
This exercise consists of adjusting `workshop/exercises/pygeoapi.config.yml` to define this dataset as an OGC API - Features *collection*
2015

2116
## Verify the existing Docker Compose config
2217

2318
Before making any changes, we will make sure that the initial Docker Compose
24-
setup provided to you is actually working. Two files are relevant:
25-
26-
* `workshop/exercises/docker-compose.yml`
27-
* `workshop/exercises/pygeoapi.config.yml`
19+
setup provided to you is actually working.
2820

2921
To test:
3022

@@ -80,6 +72,7 @@ To test:
8072
docker compose down --remove-orphans
8173
```
8274
</div>
75+
8376
## Publish first dataset
8477

8578
You are now ready to publish your first dataset.
@@ -143,30 +136,6 @@ and `lat` in the CSV file. Notice the `storage_crs` parameter, which indicates t
143136
a connection to your dataset of choice. You can always copy a relevant example configuration and place it in the datasets section of
144137
the pygeoapi configuration file for your future project.
145138

146-
## Making data available in the Docker container
147-
148-
As the Docker container (named `pygeoapi`) cannot directly access files on your
149-
local host system, we will use Docker volume mounts. This can be defined
150-
in the `docker-compose.yml` file as follows:
151-
152-
!!! question "Configure access to the data"
153-
154-
1. Open the file `workshop/exercises/docker-compose.yml`
155-
1. Look for the commented section `# Exercise 1 - `
156-
1. Uncomment that line `- ./data:/data`
157-
158-
The relevant lines read:
159-
160-
``` {.yml linenums="43"}
161-
volumes:
162-
- ./pygeoapi/pygeoapi.config.yml:/pygeoapi/local.config.yml
163-
- ./data:/data # Exercise 1 - Ready to pull data from here
164-
- ./plugins/process/squared.py:/pygeoapi/pygeoapi/process/squared.py # Exercise 8
165-
```
166-
167-
The local `./pygeoapi/pygeoapi.config.yml` file was already mounted. Now
168-
we have also mounted (made available) the entire local directory `./data`.
169-
170139
## Test
171140

172141
!!! question "Start with updated configuration"

workshop/exercises/docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,5 +42,5 @@ services:
4242

4343
volumes:
4444
- ./pygeoapi.config.yml:/pygeoapi/local.config.yml
45-
# - ./data:/data # Exercise 1 - First - Ready to pull data from here
45+
- ./data:/data
4646
- ./plugins/process/squared.py:/pygeoapi/pygeoapi/process/squared.py # Exercise 8

0 commit comments

Comments
 (0)