Skip to main content

A Jupyter kernel that interprets Dockerfiles

Project description

dockerfile-kernel

This implements a JupyterLab kernel to interpret Dockerfiles.

Features

  • Line-based execution of Dockerfiles in JupyterLab
  • Conveniently launch shell sessions running in a container created from the current image by clicking on a button.
  • Command auto-completion
  • Syntax Highlighting
  • Help text integration with the ? operation
  • Export and Import from Dockerfiles
  • Custom magics for e.g.
    • Tag the current Docker image with %tag myimage:latest
    • Easily follow best practices of installation with %install apt <packagename> (will expand to a RUN command doing all the required setup and cleanup). Also implemented for pip and npm.
    • Manipulate build arguments with %arg
    • Get an overview of existing build stages with %stages
    • Manipulate the build context with %context

Prerequisites

  • Currently, only Linux is supported
  • Docker needs to be installed
  • The user needs to be in the docker group (see e.g. here)
  • JupyterLab >= 4.0.0 needs to be installed

Installation

With pip:

python -m pip install dockerfile-kernel
python -m dockerfile_kernel.install

With conda:

conda install -c conda-forge dockerfile-kernel

Execution

jupyter lab

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dockerfile_kernel-0.1.2.tar.gz (7.2 MB view details)

Uploaded Source

File details

Details for the file dockerfile_kernel-0.1.2.tar.gz.

File metadata

  • Download URL: dockerfile_kernel-0.1.2.tar.gz
  • Upload date:
  • Size: 7.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.6

File hashes

Hashes for dockerfile_kernel-0.1.2.tar.gz
Algorithm Hash digest
SHA256 6656b96ba2b319baf2e01725a5ba14e2bca81362fb62860b598757c28cb7d61d
MD5 b72a02b5a967ffd548ac2bddb9bd5f86
BLAKE2b-256 b2a0be494ef2c9ec6dcfaf655a494a6bae0d74b917c7bd271c2db006ce9a33cb

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page