Skip to content

Commit 8f19dcd

Browse files
mvp
1 parent 156bd28 commit 8f19dcd

9 files changed

Lines changed: 104 additions & 9 deletions

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ raw/
1010
gitleaks_report*.json
1111
~$*
1212
*.pptx
13+
jupyter_*_config.json
1314

1415
# Byte-compiled / optimized / DLL files
1516
__pycache__/

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ repos:
2323
hooks:
2424
- id: check-yaml
2525
- id: check-added-large-files
26-
args: ['--maxkb=4096']
26+
args: ['--maxkb=10240']
2727
- id: check-docstring-first
2828
exclude: |
2929
(?x)^(

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ services:
44
helloworld:
55
container_name: hello-world
66
platform: linux/amd64 # linux/amd64 / linux/arm64/v8
7-
image: hello-world
7+
image: hello_world
88
tty: true # false for `entrypoint` in Dockerfile
99
stdin_open: true # false for `entrypoint` in Dockerfile
1010
env_file:

docs/docker.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@
4949
docker-compose up --remove-orphans -d
5050
5151
# ssh into container (`exec` is more useful if the entrypoint is running a process/server)
52-
docker attach hello
52+
# docker attach hello-world
53+
docker exec -it hello-world bash
5354
5455
# stop container
5556
docker-compose stop
374 KB
Loading
247 KB
Loading

prez/presentation.ipynb

Lines changed: 93 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
1+
{
2+
"cells": [
3+
{
4+
"cell_type": "markdown",
5+
"id": "1cd4d128-0f39-4d9b-baad-3ca2caaf07f8",
6+
"metadata": {
7+
"jupyter": {
8+
"source_hidden": true
9+
},
10+
"slideshow": {
11+
"slide_type": "slide"
12+
},
13+
"tags": []
14+
},
15+
"source": [
16+
"# Intro to Docker\n",
17+
"\n",
18+
"<!-- ![left, original, 118%](img/whale.png) -->\n",
19+
"<img src=\"img/whale.png\" style=\"width: 118%; height: 118%\" alt=\"\">\n",
20+
"\n",
21+
"<!-- ![right, original, 145%](img/avocado.png) -->\n",
22+
"<img src=\"img/avocado.png\" style=\"width: 80%; height: 80%\" alt=\"\">"
23+
]
24+
},
25+
{
26+
"cell_type": "markdown",
27+
"id": "93f9ac56-5999-4be1-9615-6c9dd4b800c0",
28+
"metadata": {
29+
"slideshow": {
30+
"slide_type": "slide"
31+
},
32+
"tags": []
33+
},
34+
"source": [
35+
"## Intro\n",
36+
"\n",
37+
"**Lance Stephens**\n",
38+
"\n",
39+
"Been in the game for over a decade. Was a DevOps engineer at Greenhouse Software until May 2023 (3.5 years). \n",
40+
"\n",
41+
"Now [#opentowork](https://www.linkedin.com/in/lancestephens/)!\n",
42+
"\n",
43+
"Extracurriculars include community organizing with [Pythonistas](https://www.meetup.com/pythonistas/) (founder) and [Coffee & Code](https://www.meetup.com/okccoffeeandcode/), volunteering with [ReMerge](https://www.remergeok.org/), going to concerts, and travel.\n",
44+
"\n",
45+
"<!-- ![right, 195%](img/me.jpg) -->\n",
46+
"<img src=\"img/me.jpg\" style=\"width: 100%; height: 100%\" alt=\"\">"
47+
]
48+
},
49+
{
50+
"cell_type": "markdown",
51+
"id": "1a68a553",
52+
"metadata": {
53+
"tags": []
54+
},
55+
"source": [
56+
"## Topics\n",
57+
"\n",
58+
"**Covered**\n",
59+
"\n",
60+
"* Brief explanation and history\n",
61+
"* Setup environment\n",
62+
"* Dockerfile\n",
63+
"* Docker Compose\n",
64+
"* Upload to Docker Hub registry\n",
65+
"* Continuous Integration\n",
66+
"\n",
67+
"<!-- ![](img/whale.png) -->\n",
68+
"<img src=\"img/whale.png\" style=\"width: 118%; height: 118%\" alt=\"\">"
69+
]
70+
}
71+
],
72+
"metadata": {
73+
"kernelspec": {
74+
"display_name": "Python 3 (ipykernel)",
75+
"language": "python",
76+
"name": "python3"
77+
},
78+
"language_info": {
79+
"codemirror_mode": {
80+
"name": "ipython",
81+
"version": 3
82+
},
83+
"file_extension": ".py",
84+
"mimetype": "text/x-python",
85+
"name": "python",
86+
"nbconvert_exporter": "python",
87+
"pygments_lexer": "ipython3",
88+
"version": "3.10.11"
89+
}
90+
},
91+
"nbformat": 4,
92+
"nbformat_minor": 5
93+
}

prez/presentation.pdf

2.68 MB
Binary file not shown.
Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1979,7 +1979,7 @@ docker-compose build --no-cache --parallel
19791979
docker-compose up --remove-orphans -d
19801980

19811981
# exec into container
1982-
docker attach hello
1982+
docker exec -it hello-world bash
19831983

19841984
# stop container
19851985
docker-compose stop
@@ -2004,7 +2004,7 @@ docker-compose build --no-cache --parallel
20042004
docker-compose up --remove-orphans -d
20052005

20062006
# exec into container
2007-
docker attach hello
2007+
docker exec -it hello-world bash
20082008

20092009
# stop container
20102010
docker-compose stop
@@ -2029,7 +2029,7 @@ docker-compose build --no-cache --parallel
20292029
docker-compose up --remove-orphans -d
20302030

20312031
# exec into container
2032-
docker attach hello
2032+
docker exec -it hello-world bash
20332033

20342034
# stop container
20352035
docker-compose stop
@@ -2054,7 +2054,7 @@ docker-compose build --no-cache --parallel
20542054
docker-compose up --remove-orphans -d
20552055

20562056
# exec into container
2057-
docker attach hello
2057+
docker exec -it hello-world bash
20582058

20592059
# stop container
20602060
docker-compose stop
@@ -2079,7 +2079,7 @@ docker-compose build --no-cache --parallel
20792079
docker-compose up --remove-orphans -d
20802080

20812081
# exec into container
2082-
docker attach hello
2082+
docker exec -it hello-world bash
20832083

20842084
# stop container
20852085
docker-compose stop
@@ -2104,7 +2104,7 @@ docker-compose build --no-cache --parallel
21042104
docker-compose up --remove-orphans -d
21052105

21062106
# exec into container
2107-
docker attach hello
2107+
docker exec -it hello-world bash
21082108

21092109
# stop container
21102110
docker-compose stop

0 commit comments

Comments
 (0)