or
or
By clicking below, you agree to our terms of service.
New to HackMD? Sign up
Syntax | Example | Reference | |
---|---|---|---|
# Header | Header | 基本排版 | |
- Unordered List |
|
||
1. Ordered List |
|
||
- [ ] Todo List |
|
||
> Blockquote | Blockquote |
||
**Bold font** | Bold font | ||
*Italics font* | Italics font | ||
~~Strikethrough~~ | |||
19^th^ | 19th | ||
H~2~O | H2O | ||
++Inserted text++ | Inserted text | ||
==Marked text== | Marked text | ||
[link text](https:// "title") | Link | ||
 | Image | ||
`Code` | Code |
在筆記中貼入程式碼 | |
```javascript var i = 0; ``` |
|
||
:smile: | ![]() |
Emoji list | |
{%youtube youtube_id %} | Externals | ||
$L^aT_eX$ | LaTeX | ||
:::info This is a alert area. ::: |
This is a alert area. |
On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?
Please give us some advice and help us improve HackMD.
Do you want to remove this version name and description?
Syncing
xxxxxxxxxx
Package testing for Gluster releases using docker
This details using docker to setup gluster containers with CentOS test builds, to validate packages are fine and basic functionality passes.
Setup docker
On a fresh Fedora (26 is what was used), run the following to setup docker:
The above does a few specific things that may not be needed for other installations, these (and reasons for the same) are detailed below,
Prepare base images and networks
NOTE: We work with centos in the examples below. As of this writing centos is the same as centos:7
Explanation of the above command:
NOTE: This is not essential, but working on a separate bridged network can help isolating other containers using the default bridge, further this bridge can be configured with DNS in the future (see notes on editing /etc/hosts file)
Gluster brick container:
Create the gluster brick container
Explanation of the above command:
docker container ps
outputEnter the container
Explanation of the above command:
THOUGHT: When we get into automation, we possibly will not use -it or run bash, but can pass in a bash script to run the rest of the commands
Install the gluster bits that need qualification
NOTE: centos-gluster310-test and glusterfs-server-3.10.5-1.el7 can be considered as the examples in this case, and should change in the future to whichever bits need testing.
The simple test case!
Above series of commands should mostly be self explanatory for Gluster users. Of course, if we are to run different test cases, then those would take over at this point and need coordination between the client and server containers, but this is a simple setup as of now.
Cleaning up the server container
These are done post the client container is prepared and the tests are completed, but left here as they are a part of the server/brick container workflow.
Gluster client container:
Explanation of the above command:
We first install glusterfs, as we have 3.11 versions of the same as well in the centos gluster310 test repositories, and that leads to a clash in packages.
Ideally now would be a good time to cleanup the server container as well.