Skip to content

Commit

Permalink
added comment to workflows, fixed spelling
Browse files Browse the repository at this point in the history
  • Loading branch information
minnaheim committed Nov 29, 2024
1 parent 0dd0521 commit ca6b1ea
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 28 deletions.
1 change: 1 addition & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Usage: the gh-pages can also be built via the command `quarto publish gh-pages` in the terminal
# Simple data transformation workflow
name: OECD Unemployment Rate CHE

Expand Down
38 changes: 10 additions & 28 deletions infrastructure.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ use_python("/usr/bin/python3")

# Infrastructure

This set of exercises is meant to test your knowledge of the concepts covered in block 3 of the course. All questions are Multiple Choice!
This set of exercises is meant to test your knowledge of the concepts covered in block 3 of the course. All questions are Multiple Choice.

## GitHub Continuous Integration

Expand Down Expand Up @@ -53,18 +53,18 @@ jobs:
### Exercise 1
What do you think lines 3 accomplishes?
What do you think line 3 accomplishes?
:::{.quiz-multichoice}
- [ ] [When this file is run it executes `git push` ]{hint="x"}
- [X] [Runs the workflow when someone executes `git push` or does a pull request]{hint="o"}
- [X] [Runs the workflow when someone executes `git push`]{hint="o"}
- [ ] [continuously executes `git push` until the action is successful]{hint="x"}
- [ ] [It's just here for our understanding]{hint="x"}
:::

### Exercise 2
<!-- TODO: get line numbering in yml -->
What do you think lines 11-15 does?
What do you think lines 11-15 do?

:::{.quiz-multichoice}
- [X] [Installs R dependencies incl. packages]{hint="o"}
Expand All @@ -84,30 +84,12 @@ What could be a shortcoming of the configuration file shown above?
- [ ] [The document is too short]{hint="x"}
:::

## Shiny Servers

Look at the following `docker-compose.yml` file. Try to interpret what each of the lines means.

```yml
services:
postgres:
container_name: db_container
image: postgres
restart: always
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
ports:
- "1111:5432"
volumes:
- "./pgdata:/var/lib/postgresql/data"
```

## Dynamic vs. Static Hosting
## Dynamic vs. Static Tools

### Exercise 4

Which of the following frameworks are dynamically hosted??
<!-- wording vague... -->
Which of the following frameworks are dynamic?

:::{.quiz-multichoice}
- [ ] [Hugo]{hint="x"}
Expand All @@ -118,13 +100,13 @@ Which of the following frameworks are dynamically hosted??

### Exercise 5

Which of the following tools are hosted statically?
Which of the tools can be used to host a static website?

:::{.quiz-multichoice}
- [X] [Jekyll]{hint="x"}
- [ ] [Kubernetes]{hint="x"}
- [X] [Jekyll]{hint="o"}
- [X] [Github Pages]{hint="o"}
- [X] [Quarto]{hint="o"}
- [X] [Netlify]{hint="o"}
:::


Expand Down

0 comments on commit ca6b1ea

Please sign in to comment.