Skip to content

Commit 8acf56f

Browse files
authored
Update README.md
Add container example.
1 parent 9e4ce55 commit 8acf56f

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,24 @@ covid ph --plain
197197
covid help
198198
```
199199

200+
### Local Command Line Tracker in Container
201+
```bash
202+
# Create build file
203+
$ vim covid19-tracker-cli.containerfile
204+
FROM docker.io/library/alpine
205+
RUN apk update
206+
RUN apk add git
207+
RUN apk add npm
208+
RUN git clone https://github.com/warengonzaga/covid19-tracker-cli.git
209+
RUN cd covid19-tracker-cli && npm install && npm link
210+
211+
# Build container
212+
$ podman build -t covid19-tracker-cli --file=covid19-tracker-cli.containerfile
213+
214+
# Run container
215+
$ podman run -it --rm=true localhost/covid19-tracker-cli covid PH
216+
```
217+
200218
## Official Blog
201219

202220
Many people asking me how to properly use my tracker. Here's the blog on [How to Track Coronavirus on Command Line](https://warengonza.ga/covid19-tracker-cli). If you have comments or suggestions please leave it on the comment section of the blog.

0 commit comments

Comments
 (0)