mirror of
https://github.com/ceph/go-ceph
synced 2025-02-01 02:51:50 +00:00
ecf9a99249
This commit adds the following cephfs functions: * Unmount // Unmounting is necessary to cleanup mounts * Release // Release destroys the cmount ~ end of transaction * RemoveDir // inverse of MakeDir * Chown // change ownership of file or directory * Chmod // change permissions of file or directory Tests are included for each function. In addition to these changes modifications to: .travis.yml, Dockerfile, and Makefile were made to accomodate tests to mount the ceph volume. Tests use fuse to mount the volume which requires adding: --device /dev/fuse --cap-add SYS_ADMIN --security-opt \ apparmor:unconfined to the docker container (alternatively --privileged works but adds additional permissions). Changes to README add the above docker changes as well as point users to the necessary ceph development libraries.
15 lines
398 B
Makefile
15 lines
398 B
Makefile
DOCKER_CI_IMAGE = go-ceph-ci
|
|
build:
|
|
go build -v
|
|
fmt:
|
|
go fmt ./...
|
|
test:
|
|
go test -v ./...
|
|
|
|
test-docker: .build-docker
|
|
docker run --device /dev/fuse --cap-add SYS_ADMIN --security-opt apparmor:unconfined --rm -it -v $(CURDIR):/go/src/github.com/ceph/go-ceph $(DOCKER_CI_IMAGE)
|
|
|
|
.build-docker:
|
|
docker build -t $(DOCKER_CI_IMAGE) .
|
|
@docker inspect -f '{{.Id}}' $(DOCKER_CI_IMAGE) > .build-docker
|