Skip to content

Commit

Permalink
Merge pull request ceph#9853 from dx9/wip-alpine-dev-support
Browse files Browse the repository at this point in the history
alpine: add alpine linux dev support
  • Loading branch information
liewegas authored Apr 21, 2017
2 parents 56bff03 + 725962f commit 15e80fa
Show file tree
Hide file tree
Showing 12 changed files with 608 additions and 9 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ core
*.log
/src/td

# alpine abuild things
.abuild/
alpine/APKBUILD

# specific local dir files
/build-doc
/tags
Expand Down
38 changes: 38 additions & 0 deletions README.alpine.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# Alpine Build (Experimental)

## Dev Env Setup

```
apk --update add bash sudo git
git clone https://github.com/ceph/ceph
```

### Build

```
./run-make-check.sh -DWITH_EMBEDDED=OFF -DWITH_SYSTEM_BOOST=ON -DWITH_LTTNG=OFF -DWITH_REENTRANT_STRSIGNAL=ON -DWITH_THREAD_SAFE_RES_QUERY=ON
```

### Packaging

```
./make-apk.sh
```

### Docker

```
cd ceph/src
./test/docker-test.sh --os-type alpine --os-version edge ./make-apk.sh
or
./test/docker-test.sh --os-type alpine --os-version edge -- ./run-make-check.sh -DWITH_EMBEDDED=OFF -DWITH_SYSTEM_BOOST=ON -DWITH_LTTNG=OFF -DWITH_REENTRANT_STRSIGNAL=ON -DWITH_THREAD_SAFE_RES_QUERY=ON
```

## Known Issues

- Uses musl libc malloc because musl does not currently support replacing malloc implementation. see https://bugs.alpinelinux.org/issues/5389
- No backtrace support need to look at libunwind integration
14 changes: 14 additions & 0 deletions alpine/.editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
; This file is for unifying the coding style for different editors and IDEs.
; Plugins are available for notepad++, emacs, vim, gedit,
; textmate, visual studio, and more.
;
; See http://editorconfig.org for details.

# Top-most EditorConfig file.
root = true

[**/APKBUILD*]
indent_style = tab
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
Loading

0 comments on commit 15e80fa

Please sign in to comment.