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
dockerfile_kernel-0.1.2.tar.gz 7.2 MB Details

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

Release history Release notifications | RSS feed

This release

0.1.2 This release

1 release file

0.1.1

1 release file

0.1.0

1 release file

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