Skip to content
This repository has been archived by the owner on Jan 8, 2020. It is now read-only.

topilskiyak/19q4_mocker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mocker: Basic Docker Implementation using Python

Based on Bocker - a basic docker implementation using Bash.

$ mocker help

usage: mocker [-h]
              {init,pull,rmi,images,ps,run,exec,logs,rm,commit,help,clean} ...

Docker Python implementation

optional arguments:
  -h, --help            show this help message and exit

mocker_commands:
  {init,pull,rmi,images,ps,run,exec,logs,rm,commit,help,clean}
    init                create image from directory
    pull                create image from dockerhub image (latest)
    rmi                 remove image
    images              list all image volumes
    ps                  list all container volumes
    run                 run command in isolated container based on image
                        (REQUIRES ROOT)
    exec                enter container and execute command (REQUIRES ROOT)
    logs                print container logs
    rm                  remove container and associated namespaces (REQUIRES
                        ROOT)
    commit              apply changes made in container to image
    help                print help
    clean               run rmi,rm on all images,containers (MAY REQUIRE ROOT)

Includes:

  • Gitlab CI
  • Dockerfile for container environment setup
  • Vagrantfile for vm setup

To launch tests in Vagrant:

$ vagrant up
$ vagrant ssh
$ /vagrant/tests/autotest.sh

About

Basic Docker Implementation

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published