GithubHelp home page GithubHelp logo

manics / repo2podman Goto Github PK

View Code? Open in Web Editor NEW
5.0 3.0 3.0 183 KB

A repo2docker plugin that lets you use Podman instead of Docker

License: BSD 3-Clause "New" or "Revised" License

Python 94.66% Shell 3.30% Dockerfile 2.04%
jupyter podman jupyterhub repo2docker

repo2podman's Introduction

repo2podman

Build Status Latest PyPI version

repo2podman is a plugin for repo2docker that lets you use Podman instead of Docker.

Requires Podman 3+.

Installation

pip install repo2podman

Running

Simply include --engine podman in the arguments to repo2docker:

repo2docker --engine podman <repository>

Using a different Podman executable

repo2podman uses the podman command line executable, so it should be possible to substitute any other docker/podman compatible command line tool.

For example, nerdctl:

repo2docker --engine podman --PodmanEngine.podman_executable=nerdctl <repository>

podman-remote:

export CONTAINER_HOST=ssh://<user>@<host>/home/<user>/podman.sock
export CONTAINER_SSHKEY=$HOME/.ssh/<ssh-private-key>
repo2docker --engine=podman --PodmanEngine.podman_executable=podman-remote <repository>

repo2podman's People

Contributors

antobiotics avatar dependabot[bot] avatar manics avatar ryanlovett avatar sgaist avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

repo2podman's Issues

short-name-mode="enforcing", unqualified-search-registries

If the repo2docker Dockerfile template is changed, changing /etc/containers/registries.conf shouldn't be necessary for repo2docker/repo2podman, at least:

FROM buildpack-deps:bionic             # short-name
FROM docker.io/buildpack-deps:bionic   # "qulified" name

Tests are hanging

The repo2docker tests are hanging. This is reproducible locally as well as in the GitHub workflow:

git clone --depth 1 --single-branch https://github.com/jupyter/repo2docker tests-repo2docker
for d in ./tests-repo2docker/tests/*/; do
  if [ "${d##*tests/}" != "unit/" ]; then
    cp -a $d tests
  fi
done

pytest -vs tests/base

Support for podman-remote

podman_executable=docker requires json format change

A few command invocations use "--format", "json", however using docker as the podman_executable requires "--format", "{{json .}}". Manually patching this by switching on the executable value enabled repo2podman to work seamlessly with docker as the CLI.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.