- A Linux host
- Docker
- Visual Studio Code
Users should ensure to have the following programs installed on their system:
bash
,id
,getent
- Clone
ceph-vscode
project to a local folder - Clone
ceph
project to a local folder - Copy
ceph-vscode
's.devcontainer
and.vscode
directories intoceph
project folder - VSCode -> open
ceph
project folder ->><
(left bottom button) -> Open Folder in Container...
Users can build, develop and test Ceph inside a Docker container without being forced to install or configure anything on their own machine.
Visual Studio Code can take care of automatically download and build a developer Docker image.
Host's user will match UID
and GID
with the user inside the container.
This ensures that every modification from inside the container will be completely transparent from the host's perspective.
Moreover, host's user ~/.ssh
directory will be mounted on the container's user ~/.ssh
directory. This is especially convenient if an ssh authentication type is configured to work with GitHub.
From inside the container, users will be able to access the host's Docker engine as if they were just in a regular host's shell.
To build radosgw, simply press: ctrl + shift + b
and choose an option.
Typically, for an upstream build of radosgw you want to execute in sequence these tasks:
cmake-upstream
build [radosgw]
If you are developing the radosgw in the context of s3gw project, you can execute:
cmake-s3gw
build [radosgw]
Some tasks have been defined for building certain unit tests, for example:
build [unittest_rgw_sfs_sfs_bucket]
You can use these templates to define other build configurations.
radosgw
has debug configurations set up to use dbstore
and sfs
SAL backends with wd_dbstore
and wd_sfs
directories as working directories.