Open brolag opened 2 months ago
I am applying to this issue via OnlyDust platform.
I've been working with several projects in the ecosystem, the knowledge acquiredcan be leveraged for good practices and quality for the task.
I will first make sure to setup everything correctly and understand how everything works as a whole. Then I will create the Makefile as requested.
Hey @jbmkahdeksan! Thanks for showing interest. We've created an application for you to contribute to Cofiblocks. Go check it out on OnlyDust!
I am applying to this issue via OnlyDust platform.
I've experience dockerizing applications with Docker/Docker Compose and creating database scripts with seeds data so development can be streamlined and the project portable, easy to setup and to run within a couple of commands.
How I plan on tackling this issue
Hey @rvalenciano! Thanks for showing interest. We've created an application for you to contribute to Cofiblocks. Go check it out on OnlyDust!
@rvalenciano @jbmkahdeksan please team up and work on this.
@brolag have you seen this? TL;DR Starknet Devnet in Python is deprecated. Options are: Starknet Devnet in Rust or Starknet Devnet in JS (wrapper) cc. @rvalenciano
@brolag have you seen this? TL;DR Starknet Devnet in Python is deprecated. Options are: Starknet Devnet in Rust or Starknet Devnet in JS (wrapper) cc. @rvalenciano
Didnt' know it was deprecated. Should we try the JS version?
Didnt' know it was deprecated. Should we try the JS version?
We can, I am investigating about it. I've found that Rust version has an Docker image published, this is not the case for the JS, version. I not a 100% sure, but I think the JS version would run within the app, not as a separate container.
I'm fine with either Starknet Devnet JS or Starknet Devnet Rust, feel comfortable in both languages. @brolag @jbmkahdeksan you can make the call. @jbmkahdeksan even if the JS image doesn't have a proper image, we can dockerize this if we just pull from the Node 18 or whatever version we want base image.
@falconcr hi! glad you joined, I've been studying this docker image that could be a good fit for our Starknet container, I couldn't make it work in my environment thou.
Create a Makefile to automate the Dockerization process for the CofiBlocks application, the local Starknet blockchain, and a MySQL database. This will simplify the setup and execution of the project in a local development environment.
Steps:
Dockerfile
for the CofiBlocks application using Next.js (or the relevant stack).Dockerfile
includes steps for installing dependencies, compiling the project, and exposing the required ports.docker-compose.yml
file to spin up the CofiBlocks app, Starknet local blockchain, and MySQL database in separate containers.starknet-devnet
..env
file support in thedocker-compose.yml
and Makefile for dynamic configuration.Makefile
to automate common tasks such as:make build
).make start
).make stop
).make clean
).README.md
file for setting up the development environment using Docker and Makefile..env
file (provide a sample.env.example
with required variables such as database credentials, Starknet configs).Makefile
.make build
,make start
,make stop
,make clean
)..env.example
:.env.example
file that includes placeholders for database credentials, Starknet local blockchain settings, and other environment-specific configurations.Acceptance Criteria:
Dockerfile
,docker-compose.yml
, andMakefile
are created and allow for a seamless setup of the CofiBlocks application, Starknet local blockchain, and MySQL database.make build
builds the Docker containers for all services.make start
successfully starts the app, local blockchain, and database.make stop
stops all containers.make clean
removes stopped containers and unused volumes.README.md
file is added, explaining the setup process, commands, and troubleshooting tips.Resources: