Skip to content
This repository has been archived by the owner on Jul 6, 2023. It is now read-only.

Commit

Permalink
Merge pull request #397 from lpabon/dockerci
Browse files Browse the repository at this point in the history
Docker builds for automated functional tests
  • Loading branch information
Luis Pabón committed Jun 24, 2016
2 parents 491c63b + 0953d2a commit 2fa1b2e
Show file tree
Hide file tree
Showing 4 changed files with 59 additions and 1 deletion.
19 changes: 19 additions & 0 deletions extras/docker/ci/Dockerfile
@@ -0,0 +1,19 @@
# set author and base
FROM centos
MAINTAINER Luis Pabón <lpabon@redhat.com>

LABEL version="1.0"
LABEL description="CI Development build"

# post install config and volume setup
ADD ./heketi /usr/bin/heketi
ADD ./heketi.json /etc/heketi/heketi.json

RUN mkdir /var/lib/heketi
VOLUME /var/lib/heketi

# expose port, set user and set entrypoint with config option
ENTRYPOINT ["/usr/bin/heketi"]
EXPOSE 8080

CMD ["-config=/etc/heketi/heketi.json"]
8 changes: 8 additions & 0 deletions extras/docker/ci/README.md
@@ -0,0 +1,8 @@
# Overview
Dockerfile to build using code from this repo and test in a CI system

# Build
First build binaries and copy to this directory

# docker build --rm --tag heketi/heketi:ci .

29 changes: 29 additions & 0 deletions extras/docker/ci/heketi.json
@@ -0,0 +1,29 @@
{
"_port_comment": "Heketi Server Port Number",
"port" : "8080",

"_use_auth": "Enable JWT authorization. Please enable for deployment",
"use_auth" : false,

"_jwt" : "Private keys for access",
"jwt" : {
"_admin" : "Admin has access to all APIs",
"admin" : {
"key" : "My Secret"
},
"_user" : "User only has access to /volumes endpoint",
"user" : {
"key" : "My Secret"
}
},

"_glusterfs_comment": "GlusterFS Configuration",
"glusterfs" : {

"_executor_comment": "Execute plugin. Possible choices: mock, ssh",
"executor" : "mock",

"_db_comment": "Database file name",
"db" : "/var/lib/heketi/heketi.db"
}
}
4 changes: 3 additions & 1 deletion tests/functional/README.md
Expand Up @@ -6,10 +6,12 @@ You will need a system with at least 16G of ram. If you only have 8G, you can a
### Packages

```
# dnf -y install libvirt qemu-kvm \
# dnf -y install docker libvirt qemu-kvm \
ansible vagrant vagrant-libvirt go git make
```

Make sure docker and libvirt deamons are running

### User

The user running the tests must have password-less sudo access
Expand Down

0 comments on commit 2fa1b2e

Please sign in to comment.