Skip to content

Latest commit

 

History

History
38 lines (26 loc) · 1.75 KB

README.md

File metadata and controls

38 lines (26 loc) · 1.75 KB

Ceph development with Visual Studio Code

Requirements

Users should ensure to have the following programs installed on their system:

  • bash, id, getent

Steps

  1. Clone ceph-vscode project to a local folder
  2. Clone ceph project to a local folder
  3. Copy ceph-vscode's .devcontainer and .vscode directories into ceph project folder
  4. VSCode -> open ceph project folder -> >< (left bottom button) -> Open Folder in Container...

Functionalities

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.

Build

To build the entire Ceph project simply press: ctrl + shift + b

Debug services

radosgw

The configured radosgw debug setting will use the wd_rgw directory as working directory.
Inside that has been placed a configuration file for the s3cmd S3 client that is already configured for the usage with radosgw.
Examples of commands you can use with that have been placed into s3cmd.notes file.