Skip to content

Latest commit

 

History

History
72 lines (49 loc) · 1.67 KB

readme.md

File metadata and controls

72 lines (49 loc) · 1.67 KB

Blih in docker

Project to easy use Epitech BLIH on all OS and distributions.

Blih script was extracted from Epitech repository: Epitech Dump

How to use

Test your container:

    docker run -it gaam1n/blih -u [email protected] whoami

It's extracted from Blih helper:

    Usage: blih.py [options] command ...

    Global Options :
    	-u user | --user=user		-- Run as user
    	-v | --verbose			-- Verbose
    	-b url | --baseurl=url		-- Base URL for BLIH
    	-t | --token			-- Specify token in the cmdline

    Commands :
    	repository			-- Repository management
    	sshkey				-- SSH-KEYS management
    	whoami				-- Print who you are

Upload a new ssh-key

    blih -u [email protected] sshkey upload
    /path/to/your/public/key

With docker you must mount you ssh-key in container with following command: docker run -it -v ~/.ssh:/root/.ssh gaam1n/blih -u {epitech_mail} sshkey upload /root/.ssh/id_rsa.pub

Create a repository

blih -u [email protected] repository create
my_repo

Clone repository

git clone [email protected]:/{epitech_mail}/{repo_name}

If your first login (when you beginning Epitech) it's not your email you must use it.

Give permissions

    blih -u [email protected] repository setacl
    my_repo ramassage-tek r

Add in you bashrc

echo "alias blih="docker run -it gaam1n/blih" >> ~/.bashrc

You can add -u [email protected] if you want quickly use blih

About

All informations about this container and Blih.

  • Python version: 3.8
  • Blih version: 1.7