Skip to content

Fuan200/fibonacci_docker_python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

Fibonacci Docker on Python

This repository contains a Python script that generates the Fibonacci series and runs it within a Docker container.

Prerequisites

Installing

  1. Clone the repository:
git clone git@github.com:Fuan200/fibonacci_docker_python.git
  1. Run the script:
python fibo_docker.py
  1. Enter the value to input_user.

Note: The value input_user only can be a integer.

Getting Started (Docker)

  1. Build the image to the proyect:
docker build -t <name_of_image> .

If you receive an error similar to the following when starting the last command:

permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock:

Run the following command first:

sudo docker build -t <name_of_image> .
  1. Run the container:
docker run -it --name <container_name> fibo_docker
  1. Write a number (this only will works one time)

  2. Start the container:

docker start <container_name>
  1. Exec the container:
docker exec -it <container_name> /bin/bash

You will be on the terminal container.

  1. Run the script:
python fibo_dock.py
  1. To exit to terminal container:
exit

Author

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published