Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added dockerfile + docker-compose script dev setup #1665

Merged
merged 7 commits into from
Jan 14, 2022

Conversation

kamoltat
Copy link
Member

@kamoltat kamoltat commented Aug 4, 2021

The purpose of this PR is to allow developers to set up a dev environment for Teuthology. This includes setting up the containers for Postgres, Paddles, Pulpito, Beanstalk, Teuthology. For now, this dev-setup will rely on sepia lab cluster
for test nodes.

The changes include:

  1. Adding a Docker file for Teuthology
  2. README.md file for the setup guide
  3. Adding a docker-compose.yml for building containers
  4. start.sh script for automating the processing of cloning repositories, building Docker Images and executing docker-compose.

Signed-off-by: Kamoltat Sirivadhna [email protected]

@kamoltat kamoltat requested a review from jdurgin August 4, 2021 19:10
@kamoltat kamoltat self-assigned this Aug 4, 2021
Copy link
Member

@zmc zmc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm having problems getting this to work. Oddly enough, if I run docker compose up --build from the project root, everything starts up (but no jobs are scheduled). If I run start.sh or just docker-compose build from docs/docker-compose, I end up with this error message:
failed to solve: rpc error: code = Unknown desc = failed to solve with frontend dockerfile.v0: failed to read dockerfile: open /var/lib/docker/tmp/buildkit-mount136320793/Dockerfile: no such file or directory

docs/docker-compose/start.sh Outdated Show resolved Hide resolved
docs/docker-compose/start.sh Outdated Show resolved Hide resolved
Dockerfile Outdated Show resolved Hide resolved
Dockerfile Outdated Show resolved Hide resolved
@kamoltat kamoltat force-pushed the wip-ksirivad-docker-compose-script branch 2 times, most recently from 48fada5 to e8e2eac Compare September 17, 2021 03:02
Developers can now use start.sh to build the images
and set up postgresql, paddles, pulpito and teuthology
for development.

This PR is also pending for:
#1650
ceph/paddles#94

to be merged, as currently we use these branches
as images for paddles and pulpito.

Signed-off-by: Kamoltat Sirivadhna <[email protected]>
Signed-off-by: Kamoltat Sirivadhna <[email protected]>
@kamoltat kamoltat force-pushed the wip-ksirivad-docker-compose-script branch from e8e2eac to 18c9dca Compare January 14, 2022 16:34
Compose teuthology version that uses beanstalk.

Signed-off-by: Kamoltat Sirivadhna <[email protected]>
@kamoltat kamoltat force-pushed the wip-ksirivad-docker-compose-script branch from 18c9dca to f8e8550 Compare January 14, 2022 18:36
update README file as we change back to beanstalk
as queue.

Signed-off-by: Kamoltat Sirivadhna <[email protected]>
Moved docker file to:

docs/docker-compose/Dockerfile

Signed-off-by: Kamoltat Sirivadhna <[email protected]>
Signed-off-by: Kamoltat Sirivadhna <[email protected]>
Copy link
Member

@zmc zmc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the updates @kamoltat!

This gets us a lot closer to being able to test changes to the full teuthology stack locally. As you know I've got some work in progress on top of this, so I'll merge this PR as-is now and we can follow-up on it next week.

@zmc zmc merged commit 3ff86a5 into master Jan 14, 2022
@zmc zmc deleted the wip-ksirivad-docker-compose-script branch January 14, 2022 22:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants