An open API service indexing awesome lists of open source software.

https://github.com/ravi-prakash1907/artificial-intelligence

A repository for Artificial Intelligance (AI) for B.Sc. (H) C.S.
https://github.com/ravi-prakash1907/artificial-intelligence

ai artificial-intelligence bsc college docker dockerfile prolog-programming rm-prolog yml

Last synced: about 18 hours ago
JSON representation

A repository for Artificial Intelligance (AI) for B.Sc. (H) C.S.

Awesome Lists containing this project

README

          

# A repository for Artificial Intelligance (AI)

![banner](./assets/banner.png)
A series of programs implemented in `prolog`

## Practical List
Click here to see the [practical list](Prolog-Programming/src/practicals/LIST%20OF%20PRACTICALS%20SEM%20VI.pdf)

---

### To run Prolog commend line:

#### (A) Without 'docker-compose.yml'
__While using very first time:__

> 1. Navigate to the *Prolog-Programming* directory.
> 2. Run the following command -
> ```
> docker build . -t prolog
> ```
> This command builds an image using the Dockerfile i.e. already present in this directory.
> Here **-t** tags the image i.e. gives an *alternative name to the image* that is being build. It helps it identify the image easily rather than using its id.

__Use the following command to run the prolog on command line:__

> **Once the image is created, we are good to go ahead to run it, whenever needed.**

> ```
> docker run -it --rm prolog
> ```
>

> Here
> **-it** stands for *interactive terminal*

> **--rm** Automatically remove the container when it exits i.e. stops

>

_As: Use comend line to run desired commands._

_Put all the prolog files (**.pl**) file in **src** directory._


#### (B) Using 'docker-compose.yml'
__While using very first time:__
> 1. Navigate to the *Prolog-Programming* directory.
> 2. Run the following command -
> ```
> docker-compose build --no-rm prolog
> ```
> This command builds an image using the Dockerfile i.e. already present in this directory.
> Here **--no-rm** used not to remove the intermediate containers that are also build during creating this image named *prolog-programming_prolog*
>

__Use the following command to run the prolog on command line:__

> **Once the image is created, we are good to go ahead to run it, whenever needed.**

> ```
> docker run -it --rm prolog-programming_prolog
> ```
> Here
> **-it** stands for *interactive terminal*

> **--rm** Automatically remove the container when it exits i.e. stops

>

---

[_visit here_](Prolog-Programming) _for a quick walkthrough with ```prolog```_