mirror of https://github.com/01-edu/public.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
73 lines
3.3 KiB
73 lines
3.3 KiB
5 years ago
|
#### Functional
|
||
5 years ago
|
|
||
5 years ago
|
###### Has the requirement for the allowed packages been respected? (Reminder for this project: (only [standard packages](https://golang.org/pkg/)
|
||
|
|
||
5 years ago
|
###### Does the project have a DockerFile?
|
||
5 years ago
|
|
||
5 years ago
|
##### Try running the [command](https://docs.docker.com/engine/reference/commandline/image_build/) `"docker image build [OPTIONS] PATH | URL | -"` to build the image using the project Dockerfile. (example : `"docker image build -f Dockerfile -t <name_of_the_image> ."`).
|
||
5 years ago
|
|
||
5 years ago
|
```
|
||
|
student$ docker images
|
||
|
REPOSITORY TAG IMAGE ID CREATED SIZE
|
||
|
<name of the image> latest 85a65d66ca39 7 seconds ago 795MB
|
||
|
```
|
||
5 years ago
|
|
||
5 years ago
|
###### Run the command `"docker images"` to see all images. Does the docker image build as above?
|
||
5 years ago
|
|
||
5 years ago
|
##### Try running the [command](https://docs.docker.com/engine/reference/commandline/container_run/) `"docker container run [OPTIONS] IMAGE [COMMAND] [ARG...]"` to start the container using the image just created. (example : `"docker container run -p <port_you_what_to_run> --detach --name <name_of_the_container> <name_of_the_image>"`)
|
||
5 years ago
|
|
||
5 years ago
|
```
|
||
|
student$ docker ps -a
|
||
|
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
|
||
|
cc8f5dcf760f ascii-art-web-docker "./server" 6 seconds ago Up 6 seconds 0.0.0.0:8080->8080/tcp ascii-art-web
|
||
|
```
|
||
5 years ago
|
|
||
5 years ago
|
###### Run the command `"docker ps -a"` to see all containers. Is the docker container running as above?
|
||
5 years ago
|
|
||
5 years ago
|
##### Try running the [command](https://docs.docker.com/engine/reference/commandline/exec/) `"docker exec [OPTIONS] CONTAINER COMMAND [ARG...]"`. (example : `"docker exec -it <container_name> /bin/bash"`) and do a `"ls -l"` to see the file system.
|
||
5 years ago
|
|
||
5 years ago
|
```
|
||
|
student$ docker exec -it postgres /bin/bash
|
||
|
I have no name!@51c2efe2d366:/$ ls -l
|
||
|
drwxr-xr-x 1 root root 4096 Dec 28 15:31 bin
|
||
|
-rwxr-xr-x 2 root root 4096 Sep 8 10:51 server.go
|
||
|
drwxr-xr-x 2 root root 4096 Sep 8 10:51 templates
|
||
|
I have no name!@51c2efe2d366:/$ exit
|
||
|
exit
|
||
5 years ago
|
student$
|
||
5 years ago
|
```
|
||
5 years ago
|
|
||
5 years ago
|
###### Is the file system for the containers well organized?
|
||
|
|
||
|
###### Does the DockerFile contain some [metadata](https://docs.docker.com/config/labels-custom-metadata/) applied to the docker object?
|
||
|
|
||
|
###### Does the project present no [unused object](https://docs.docker.com/config/pruning/)?
|
||
|
|
||
5 years ago
|
###### As an auditor, is this project up to every standard? If not, why are you failing the project?(Empty Work, Incomplete Work, Invalid compilation, Cheating, Crashing, Leaks)
|
||
|
|
||
5 years ago
|
#### General
|
||
5 years ago
|
|
||
|
###### +Does the project present a script to build the images and containers? (using a script to simplify the build)
|
||
|
|
||
|
#### Basic
|
||
|
|
||
|
###### +Does the server run quickly and effectively? (Favoring recursive, no unnecessary data requests, etc)
|
||
5 years ago
|
|
||
5 years ago
|
###### +Does the code obey the [good practices](https://public.01-edu.org/subjects/good-practices.en)?
|
||
5 years ago
|
|
||
|
###### +Is there a test file for this code?
|
||
5 years ago
|
|
||
5 years ago
|
###### +Are the tests checking each possible case?
|
||
|
|
||
|
###### +Are the instructions in the website clear?
|
||
5 years ago
|
|
||
5 years ago
|
###### +Does the project run using an API?
|
||
|
|
||
|
#### Social
|
||
|
|
||
|
###### +Did you learn anything from this project?
|
||
5 years ago
|
|
||
5 years ago
|
###### +Can it be open-sourced / be used for other sources?
|
||
5 years ago
|
|
||
5 years ago
|
###### +Would you recommend/nominate this program as an example for the rest of the school?
|