This shows you the differences between two versions of the page.
ii:labs:s2:04:tasks:04 [2022/05/18 20:03] radu.ciobanu |
ii:labs:s2:04:tasks:04 [2024/04/11 12:45] (current) radu.ciobanu |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ==== 04. [10p] Administrating a database ==== | + | ==== 04. [30p] Publishing an image ==== |
== Subtasks == | == Subtasks == | ||
- | - go to the Adminer interface on [[http://localhost:8080]] (or see [[ii:labs:s2:03|lab 3]] if you are working on Play with Docker) | + | - create a [[https://hub.docker.com|Docker Hub]] account |
- | - log into the database using the following details: | + | - publish one of your previous images (either the Flask app, or the NodeJS app) to your Docker Hub registry |
- | - System: PostgreSQL | + | - run a container using the image from the registry |
- | - Server: lab4-db | + | |
- | - Username: admin | + | |
- | - Password: admin | + | |
- | - Database: books | + | |
- | - check that you can observe a table called //**books**// and click on it | + | |
- | - click the //**Select data**// button to see the books already in the database (you should see the book you previously added) | + | |
- | - click the //**New item**// button and add a new book (you should only fill in the //**title**// and //**author**// text boxes and then press //**Save**//) | + | |
- | - using Postman, send a //**GET**// request and check that the backend also returns the book you added in Adminer | + | |
- | + | ||
- | == What to upload == | + | |
- | + | ||
- | * print screens from Adminer showing the //**books**// table and the new book you add | + | |
- | * print screens from Postman with the //**GET**// request showing the newly-added book | + |