This repository has been archived by the owner on Jul 6, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 432
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Docker builds for automated functional tests
Also update the README with the appropriate requirements
- Loading branch information
Luis Pabón
committed
Jun 24, 2016
1 parent
491c63b
commit 0953d2a
Showing
4 changed files
with
59 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 . | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters