Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Integration of Docker Image Deployment in sbi Package #1056

Open
Ziaeemehr opened this issue Mar 20, 2024 · 1 comment · May be fixed by #1071
Open

Integration of Docker Image Deployment in sbi Package #1056

Ziaeemehr opened this issue Mar 20, 2024 · 1 comment · May be fixed by #1071
Labels
enhancement New feature or request

Comments

@Ziaeemehr
Copy link
Contributor

Docker has emerged as a widely used containerization tool in modern software development, offering portability and scalability advantages.

Key Feature:

Docker Image Generation: Implement functionality within the package to automatically generate Docker images from the application code and dependencies.

Benefits:

  1. Improved Deployment Flexibility: Users can leverage Docker's containerization technology to deploy applications consistently across different environments, including development, testing, and production.

  2. Simplified Development Workflow: Integration of Docker image deployment streamlines the development process by providing a standardized method for packaging and deploying applications.

  3. Enhanced Scalability and Portability: Docker containers offer scalability advantages by enabling applications to be easily scaled up or down based on demand, while also providing portability across various infrastructure environments.

  4. Community Contribution and Collaboration: By incorporating Docker support into the package, it encourages community contributions and collaboration, fostering innovation and improving the overall quality of the software.

Overall, the integration of Docker image deployment capabilities into the [Python Package Name] aims to enhance the package's utility, enabling users to leverage the benefits of containerization for more efficient and scalable application deployment.

@Ziaeemehr Ziaeemehr added the enhancement New feature or request label Mar 20, 2024
@Ziaeemehr Ziaeemehr changed the title Integration of Docker Image Deployment in Python Package Integration of Docker Image Deployment in sbi Package Mar 20, 2024
@Ziaeemehr
Copy link
Contributor Author

FROM graphcore/pytorch-jupyter:latest
RUN pip install --upgrade pip 
RUN pip install jupyterlab
RUN pip install sbi
WORKDIR /sbi 

to build container locally:

docker build -t sbi .

and to run locally:

docker run -v $(pwd)/examples:/sbi -ti sbi /bin/bash

This command runs a Docker container based on the sbi image, with the following options and arguments:

  • -v $(pwd)/examples:/sbi: This mounts the examples directory from your current working directory ($(pwd)) into the /sbi directory within the container. This allows the container to access files and directories from your host machine.

  • -ti: This option allocates a pseudo-TTY (-t) and keeps STDIN open (-i), allowing you to interact with the container's shell.

  • sbi: This is the name of the Docker image that the container is based on.

  • /bin/bash: This specifies the command to run inside the container. In this case, it starts a Bash shell, allowing you to execute commands interactively within the container.

@turnmanh turnmanh linked a pull request Mar 20, 2024 that will close this issue
8 tasks
@turnmanh turnmanh linked a pull request Mar 20, 2024 that will close this issue
8 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant