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

Initial improvement for Archivista contributors #114

Merged
merged 4 commits into from
Dec 12, 2023

Conversation

kairoaraujo
Copy link
Collaborator

@kairoaraujo kairoaraujo commented Dec 11, 2023

This PR includes a Makefile and the contributors with a "feature" for new contributors.

First, add a small refactoring that changes. changes compose.psql.yml to compose-psql.yml as the
double extension can be confusing for some tools.

Then simplifies the development routing using containers and shortcuts using Makefile.

The user can start the development environment using the command make run-dev command to create and start all the
containers required for Archivista. The significant advantage is that the user wants to test the container, so it is not necessary to build Archivista, rebuild the container and run it. It is done automatically by CompileDaemon.

This command also includes:
make stop to stop all container
make clean to clean all Archivista containers

Added a shortcut to run the Archivista tests
make tests

This strategy is inspired by

It also includes the CONTRIBUTING.md seed.
The initial content shares how to start contributing, the requirements, and how to quick-start the development environment.

Related #105
Closes #106
Closes #107

This commit changes `compose.psql.yml` to `compose-psql.yml` as the
double extension can be confusing for some tools.

Signed-off-by: Kairo de Araujo <[email protected]>
@kairoaraujo kairoaraujo force-pushed the include_makefile_contributing branch 2 times, most recently from 1a21cbb to 35eb0e4 Compare December 11, 2023 18:15
This commit simplifies the development routing using containers and
shortcuts using Makefile.

The user can start the development environment using the command
`make run-dev` command, which will create and start all the
containers required for Archivista. The significant advantage is that
the user wants to test the container, so it is not necessary to build
Archivista, rebuild the container, and run it. It is done
automatically by CompileDaemon.

This command also includes:
`make stop` to stop all container
`make clean` to clean all Archivista containers

Added a shortcut to run the Archivista tests
`make tests`

This strategy is inspired by
- Warehouse development: https://warehouse.pypa.io/development/getting-started.html#running-the-warehouse-container-and-services
- RSTUF development: https://github.com/repository-service-tuf/repository-service-tuf-api#running-api-development

Signed-off-by: Kairo de Araujo <[email protected]>
This commit includes the CONTRIBUTING.md seed.
The initial content shares how to start contributing, the
requirements, and how to quick-start the development environment.

Signed-off-by: Kairo de Araujo <[email protected]>
@kairoaraujo
Copy link
Collaborator Author

I rebased to update the Dockerfile-dev with the latest Golang base image hash.

mikhailswift
mikhailswift previously approved these changes Dec 12, 2023
Copy link
Member

@mikhailswift mikhailswift left a comment

Choose a reason for hiding this comment

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

These changes looks great!

Copy link
Member

@jkjell jkjell left a comment

Choose a reason for hiding this comment

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

Great stuff!

@jkjell jkjell merged commit 98d3f3b into in-toto:main Dec 12, 2023
10 checks passed
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.

Include CONTRIBUTING.md Create a Makefile
4 participants