Skip to main content

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

Metadata

Release files for dockerfile-kernel 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dockerfile-kernel 0.1.2
File Size Uploaded Provenance Actions
dockerfile_kernel-0.1.2.tar.gz 7.2 MB Without provenance Details for dockerfile_kernel-0.1.2.tar.gz

Release files / dockerfile_kernel-0.1.2.tar.gz

Download URL dockerfile_kernel-0.1.2.tar.gz
Size 7.2 MB
Tags Source
SHA-256 checksum
How to use checksums
6656b96ba2b319baf2e01725a5ba14e2bca81362fb62860b598757c28cb7d61d
BLAKE2b-256 checksum
How to use checksums
b2a0be494ef2c9ec6dcfaf655a494a6bae0d74b917c7bd271c2db006ce9a33cb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/4.0.2 CPython/3.11.6

Security for dockerfile-kernel 0.1.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.2 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page