Parent folder

Create a parent folder that will contain your Mage project code:

mkdir data_monorepo

Change directory into the parent folder:

cd data_monorepo

Create a Dockerfile

Create an empty Dockerfile:

echo "" > Dockerfile

Paste the contents from this Dockerfile into the Dockerfile you just created.

Create a .gitignore file

Create an empty .gitignore file:

echo "" > .gitignore

Paste the following contents into the .gitignore file you just created:

.DS_Store
.file_versions
.gitkeep
.log
.logs/
.mage_temp_profiles
.preferences.yaml
.variables/
__pycache__/
docker-compose.override.yml
logs/
mage-ai.db
mage_data/
secrets/

Create Mage project

Follow these instructions to create a Mage project in your current directory. If you named your project demo_project, your current folder structure will look like this:

data_monorepo/
|-- demo_project/
|-- .gitignore
|-- Dockerfile

Was this page helpful?