Skip to content

Commit 4b34ab2

Browse files
authored
Clean up some of the code used in Chapter 5 (#21)
* cleanup some code * rename dir * clean up code * minor corrections to text
1 parent bee319d commit 4b34ab2

25 files changed

Lines changed: 83 additions & 105 deletions

File tree

source-code/chapter-3/python-app/README.md

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,3 @@ Refer to the [book repo](https://github.com/apress/practical-docker-with-python)
1919

2020
where `<token>` is the [Telegram Bot API](https://core.telegram.org/bots/api) token
2121

22-
23-
### Credits
24-
25-
- [Ken](https://github.com/KenStoneBlue) for letting me know that I didn't add requirements!
26-
- [Karan](https://github.com/mr-karan) for initial work
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
232420721

source-code/chapter-3/python-app/telegram.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111

1212
def get_updates(last_updated):
13-
log.debug('Checking for requests, last updated passed is: {last_updated}')
13+
log.info('Checking for requests, last updated passed is: {last_updated}')
1414
sleep(UPDATE_PERIOD)
1515
response = requests.get(f"{API_BASE}/getUpdates", params={'offset': last_updated+1})
1616
json_response = FALSE_RESPONSE
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
### README
22

3-
This exercise contains the source code for the first exercise of chapter 4. At the start of the chapter, we introduced a simple Dockerfile that did not build due to syntax errors. Here, you’ll fix the Dockerfile and add some of the instructions that you learned about in this chapter.
3+
This directory contains the source code for the first exercise of chapter 4. At the start of the chapter, we introduced a simple Dockerfile that did not build due to syntax errors. Here, you’ll fix the Dockerfile and add some of the instructions that you learned about in this chapter.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
### README
22

3-
This exercise contains the source code for the second exercise of chapter 4. In this exercise, you will build two Docker images
3+
This directory contains the source code for the second exercise of chapter 4. In this exercise, you will build two Docker images
44

55
- Using the standard build process using python:3 as the base image (present in [docker-multi-stage/standard-build](docker-multi-stage/standard-build) directory.
66
- Using Multi-Stage builds (present [docker-multi-stage/multistage-build](docker-multi-stage/multistage-build) directory.

source-code/chapter-4/exercise-3/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
### README
22

3-
This exercise contains the source code for the third exercise of chapter 4. In this exercise, we compose a Dockerfile for Newsbot and then use the Dockerfile to build a Docker image and run the container.
3+
This directory contains the source code for the third exercise of chapter 4. In this exercise, we compose a Dockerfile for Newsbot and then use the Dockerfile to build a Docker image and run the container.
44

55

66
### Building the Docker image
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
### README
22

3-
This exercise contains the source code for the first exercise of chapter 5. In this exercise, we build an nginx Docker image with a Docker volume attached, which contains a custom nginx configuration. Toward the second part of the exercise, we will attach a bind mount and a volume containing a static web page and a custom nginx configuration. The intent of the exercise is help the readers understand how to leverage volumes and bind mounts to make local development easy.
3+
This directory contains the source code for the first exercise of chapter 5. In this exercise, we build an nginx Docker image with a Docker volume attached, which contains a custom nginx configuration. Toward the second part of the exercise, we will attach a bind mount and a volume containing a static web page and a custom nginx configuration. The intent of the exercise is help the readers understand how to leverage volumes and bind mounts to make local development easy.

source-code/chapter-5/exercise-2/docker-subreddit-fetcher-volume/Dockerfile

Lines changed: 0 additions & 15 deletions
This file was deleted.

source-code/chapter-5/exercise-2/docker-subreddit-fetcher-volume/README.md

Lines changed: 0 additions & 9 deletions
This file was deleted.

source-code/chapter-5/exercise-2/docker-subreddit-fetcher-volume/constants.py

Lines changed: 0 additions & 11 deletions
This file was deleted.

0 commit comments

Comments
 (0)