Overview
Create a service from scratch when you want complete control over your codebase. Start with an empty project, write your code, and define exactly how your application builds and runs.When to use this: Building custom applications, APIs, or services where you want to write all the code yourself or have Cerebrum help you build from a blank slate.
Why Start Empty
Full control
You decide everything — language, framework, dependencies, and architecture.
Clean slate
No legacy code or opinions. Build exactly what you need.
Cerebrum-powered
Let Cerebrum write your code, or do it yourself. Your choice.
Any language
Python, Node.js, Go, Rust, Java — anything that runs in a container.
Before You Start
You'll need a Dockerfile
You'll need a Dockerfile
Empty services require a
Dockerfile in the project root to deploy. You can edit and test code on Personal Computer before writing one.Know your stack
Know your stack
Decide on your programming language and framework before starting. This helps Cerebrum assist you more effectively.
Develop on Personal Computer
Develop on Personal Computer
Use Computer for files, terminal commands, dependency installation, and tests. Creating a service does not create a separate development container.
Choose your Git source
Choose your Git source
Commit and push to the repository and branch used by your service. Automatic conversion of an internal service repository to GitHub is currently unavailable; import an existing GitHub repository if that is your intended source.
How to create
- 1. Add Service
- 2. Service Created

Project Structure
An empty service should start with a minimal structure. Here’s how to organize your code:- Python
- Node.js
- Go
Adding Your First Code
Step 1: Open the Code Editor
Open your service repository on Personal Computer and check out the intended environment branch. Use the code editor to create your main application file.Step 2: Write Your Application
Here’s a minimal “Hello World” for common languages:- Python (Flask)
- Node.js (Express)
- Go
app.pyrequirements.txt
Dockerfile Setup
Create aDockerfile in your project root for deployments:
- Python
- Node.js
- Go
Dockerfile Requirements
Your Dockerfile must:
- EXPOSE the port your app listens on
- CMD or ENTRYPOINT to start your application
- Read
PORTfrom environment variable for flexibility
Test, Commit, and Deploy
Install dependencies and run your application or tests in the Computer terminal from the project directory. Configure test variables and secret access for that process separately from service deployment settings. Commit and push your application, dependency files, andDockerfile to the Git repository and branch used by Ardor. A build reads Git source; files saved only on Computer are not included. Use an Ardor merge request to promote changes between environments, then start a deployment to apply them to running services.
Best Practices
Start on Personal Computer
Start on Personal Computer
Use the terminal to prototype and test before writing the Dockerfile. Check that your dependency files also reproduce that setup in the build.
Use environment variables
Use environment variables
Never hardcode configuration. Use
os.environ (Python), process.env (Node.js), or os.Getenv (Go).Keep images small
Keep images small
Use slim/alpine base images. Multi-stage builds reduce final image size significantly.
Pin dependency versions
Pin dependency versions
Lock versions in
requirements.txt, package-lock.json, or go.sum for reproducible builds.Add health checks
Add health checks
Implement a
/health endpoint for monitoring. Ardor uses this to verify your service is running.Troubleshooting
Dockerfile not found
Dockerfile not found
Cause: Missing
Dockerfile in project root.Solution: Create a Dockerfile (case-sensitive) in the root directory, not in a subdirectory.Build fails with dependency errors
Build fails with dependency errors
Cause: Missing or incompatible dependencies.Solution:
- Verify your dependency file exists (
requirements.txt,package.json, etc.) - Test dependency installation on Computer first, and commit and push the dependency files used by the build
- Check for version conflicts
App not accessible after deploy
App not accessible after deploy
Cause: Port mismatch or binding to localhost.Solution:
- Ensure your app reads the
PORTenvironment variable - Bind to
0.0.0.0, notlocalhost - Verify the
EXPOSEport matches your app’s port
Changes not reflected in tests or deployment
Changes not reflected in tests or deployment
Cause: The test process or deployment is using older code or dependencies.Solution:
- On Computer: Install updated dependencies and restart your app or test process if needed
- For deployment: Verify the changes are committed and pushed to the build’s repository and branch, then deploy
- Some frameworks support hot reload — configure them for faster iteration
What’s Next
Connect to GitHub
Version control your code and enable local development with your IDE
Add Environment Variables
Configure secrets and environment-specific settings
Networking
Configure public/private access and connect to other services
Variables & Secrets
Store API keys, passwords, and configuration securely


