diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..2ffed06 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,12 @@ +FROM librecores/librecores-ci +LABEL Description="LCCI Python Image" Vendor="LibreCores project" Version="0.1" + +VOLUME /tools + +WORKDIR /home/lcci-python +COPY ./ /home/lcci-python + +RUN python setup.py build +RUN python setup.py install + +COPY lcci.sample.yml /home/lcci-python/lcci.yml diff --git a/README.rst b/README.rst index 4479abf..465ce5b 100644 --- a/README.rst +++ b/README.rst @@ -2,3 +2,24 @@ LibreCores.org CI Tool ====================== This is the tool to administrate LibreCores.org Continuous Integration (lcci) instances. + +### Usage + +TODO: Guidelines will be deployed soon + +### Docker image for deploying tools + +Current image version uses a hardcoded "lcci-tools" volume to deploy tools. +All available tools are listed here: https://github.com/lccitools + +Install a particular tool: + +``` +docker run --rm -e DOCKER_HOST=${DOCKER_HOST} librecores/lcci-python lcci tools install verilator:3.902 +``` + +Install a whole „standard tool package“: + +``` +docker run --rm -e DOCKER_HOST=${DOCKER_HOST} librecores/lcci-python lcci tools install lcci-2017.1 +``` diff --git a/lcci.sample.yml b/lcci.sample.yml new file mode 100644 index 0000000..95a6ca6 --- /dev/null +++ b/lcci.sample.yml @@ -0,0 +1,5 @@ +#main: +# github-api-token: +volumes: + #TODO: Make it confurable via API + tools: lcci-tools