Skip to content

Commit

Permalink
Merge pull request #2 from librecores/dockerfile
Browse files Browse the repository at this point in the history
Add support of Building Tools in a Docker image
  • Loading branch information
wallento committed Sep 9, 2017
2 parents 78fdd6a + faf6d9c commit 1139fb2
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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
21 changes: 21 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
```
5 changes: 5 additions & 0 deletions lcci.sample.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#main:
# github-api-token: <TOKEN>
volumes:
#TODO: Make it confurable via API
tools: lcci-tools

0 comments on commit 1139fb2

Please sign in to comment.