/blih

Easy use Epitech BLIH on all OS and distributions.

Primary LanguageDockerfile

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 firstname.lastname@epitech.eu 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 firstname.lastname@epitech.eu 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 firstname.lastname@epitech.eu repository create
my_repo

Clone repository

git clone git@git.epitech.eu:/{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 firstname.lastname@epitech.eu repository setacl
    my_repo ramassage-tek r

Add in you bashrc

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

You can add -u firstname.lastname@epitech.eu if you want quickly use blih

About

All informations about this container and Blih.

  • Python version: 3.8
  • Blih version: 1.7