Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support of Building Tools in a Docker image #2

Merged
merged 1 commit into from
Sep 9, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be replaced by LCCI Tools Base later. Just wanted to have an image with ready python bits

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
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ideally I should add a parameter to the tool for that

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It should also be an absolute path, right?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No need. Such definition will create a new named docker volume or write to an existing one if it exists.