🙈 Add docker installation instructions
parent
816caee0e0
commit
f2fbb3ea07
|
@ -2,6 +2,19 @@
|
|||
|
||||
In this chapter, we will build our own web service using the Flask framework.
|
||||
|
||||
## Requirements
|
||||
|
||||
You will need two shells (you can open two terminals or even two ssh sessions), in which one will be as nix-shell and the other as standard bash environment. For now, current hscloud environment doesn't support docker, and you actually need it to build and register image in the registry.
|
||||
|
||||
You can install `docker` with:
|
||||
|
||||
```bash
|
||||
curl -fsSL https://get.docker.com -o get-docker.sh
|
||||
sudo sh get-docker.sh
|
||||
```
|
||||
|
||||
You can actually create, build and register docker image in completely other environment, and just deploy it to kubernetes in hscloud environment.
|
||||
|
||||
## Steps
|
||||
|
||||
We create a directory for our service:
|
||||
|
|
|
@ -2,6 +2,19 @@
|
|||
|
||||
W tym rozdziale zbudujemy własną usługę sieciową przy użyciu frameworka Flask.
|
||||
|
||||
## Wymagania
|
||||
|
||||
Będziesz potrzebować dwóch powłok (możesz nawet otworzyć dwa terminale bądź dwukrotnie zalogować się przez ssh do zdalnego serwera), gdzie w jednej operujesz w powłoce nix (`nix-shell`), druga natomiast jest typowym środowiskiem bashowym Twojego systemu. Bieżące środowisko hscloud nie wspiera dockera, którego jednak potrzebujesz by budować i rejestrować obrazy w rejestrze hscloud.
|
||||
|
||||
Możesz zainstalować `docker` poprzez:
|
||||
|
||||
```bash
|
||||
curl -fsSL https://get.docker.com -o get-docker.sh
|
||||
sudo sh get-docker.sh
|
||||
```
|
||||
|
||||
Dodatkowo - możesz tworzyć, budować i rejestrować obraz dockera w kompletnie osobnym środowisku niż to w którym publikujesz go na kubernetesach w środowisku hscloud.
|
||||
|
||||
## Kroki
|
||||
|
||||
Tworzymy katalog dla naszej usługi:
|
||||
|
|
Loading…
Reference in New Issue