Skip to content

Commit 369be32

Browse files
committed
Update Chapter 4 README.md
1 parent 5ff4921 commit 369be32

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

chapter4/README.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ services:
2525
- nw
2626
```
2727
This service uses the same image that we used in Chapter 3. The declaration of the first volume is also analogous to what we declared in Chapter 3. The second volume mounts the script `init-tables.sh` in the `chapter4` folder to the folder `docker-entrypoint-initdb.d`. This is a feature of the `postgres` image: Any script in that folder will be used to setup the database when first started. We are using this feature to setup a table and insert two entries just like we did by hand in Chapter 3. Feel free to look into `init-tables.sh` to see that the commands are basically the same.
28-
`docker-compose` allows us to declare a bunch of enviromental variables via a file - we have named this file env_file and it is similar to what we defined back in Chapter 3.
28+
`docker-compose` allows us to declare a bunch of environmental variables via a file - we have named this file env_file and it is similar to what we defined back in Chapter 3.
2929
Lastly, we attach the `db` service to the network `nw`. More on this later! Let us first move on to the jupyter service.
3030
```
3131
jupyter-server:
@@ -63,11 +63,15 @@ volumes:
6363
While there was a lot of new material in Chapter 4, building and running looks surprisingly familiar:
6464
```
6565
docker-compose build
66-
docker-compose up
66+
docker-compose up
6767
```
6868

69-
Those two commands setup both our services and establish the network `nw`. Note that we added an example notebook in our `jupyter-server` service. Enter the server as usual and open it. You find some commands that load the content of the database into a pandas dataframe. We have a working platform!
69+
Those two commands setup both our services and establish the network `nw`. Note that we added an example notebook in our `jupyter-server` service. Enter the server as usual and open it. You find some commands that load the content of the database into a pandas dataframe.
70+
71+
![dataframe](./img/ipython.png)
72+
73+
We have a working platform!
7074

7175
Note that we can connect to the database using `user@db:5432`, this is because in our network `nw`, the database server can be found via its name `db`.
7276

73-
This completes our tutorial, we hope you enjoyed it! If you are interested in containerization technologies and concepts such as Infrastructure as Code, be sure to check out the [DevOps Engineering program](https://www.insightdevops.com) at Insight Data Science!
77+
This completes our tutorial, we hope you enjoyed it! If you are interested in containerization technologies and concepts such as Infrastructure as Code, continuous integration and deployment and scalable infrastructures, be sure to check out the [DevOps Engineering program](https://www.insightdevops.com) at Insight Data Science!

0 commit comments

Comments
 (0)