Skip to content

Commit 5f3e059

Browse files
hampfhBlytungdev
andcommitted
fix: Step instructions
Co-authored-by: Melvin Jakobsson <[email protected]>
1 parent cc9277a commit 5f3e059

File tree

3 files changed

+34
-43
lines changed

3 files changed

+34
-43
lines changed
+10-43
Original file line numberDiff line numberDiff line change
@@ -1,50 +1,17 @@
1-
### Single line code blocks can be copied by default
1+
# Containerizing your application
22

3-
`copy me`
3+
- first, create the Dockerfile
44

5-
### It can also be disabled
5+
## Build the Docker file
66

7-
`copying disabled`{{}}
8-
9-
### Execute a command per click
10-
11-
`ls -lh`{{exec}}
12-
13-
### Send Ctrl+c before execute
14-
15-
Run a blocking command:
16-
`sleep 1d`{{exec}}
17-
18-
End it and run another:
19-
`whoami`{{exec interrupt}}
20-
21-
### Copy multiline code block
22-
23-
````
24-
uname -r
25-
pwd
26-
```{{copy}}
27-
28-
### Execute multiline code block
29-
30-
````
31-
32-
uname -r
33-
pwd
34-
35-
```{{exec}}
36-
37-
38-
### Execute multiline code block with Ctrl+c
39-
Run a blocking command:
40-
`sleep 1d`{{exec}}
41-
42-
End it and run others:
7+
```bash
8+
docker build -t myapp .
439
```
4410

45-
uname -r
46-
whoami
47-
48-
```{{exec interrupt}}
11+
## Run the Docker container
4912

13+
```bash
14+
docker run -p 127.0.0.1:80:80/tcp -t executable-tutorial
5015
```
16+
17+
You should now see a message `Listening on port 80`, try to interact with the server! Run `curl http://127.0.0.1:80` to see the response.
+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Creating a git repository
2+
3+
- first, create the Dockerfile
+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Setup Github Actions
2+
3+
- first, create the Dockerfile
4+
5+
```yml
6+
name: Deploy to ghcr.io
7+
8+
on:
9+
workflow_dispatch:
10+
push:
11+
branches: [main]
12+
13+
concurrency:
14+
group: deploy-${{ github.ref }} # This ensures all runs for a branch are grouped
15+
cancel-in-progress: true # Cancels any in-progress runs for this group
16+
17+
jobs:
18+
build:
19+
runs-on: ubuntu-latest
20+
steps: ...
21+
```

0 commit comments

Comments
 (0)