Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
fresh
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cubicweb
cubes
fresh
Commits
cc77e09651c2
Commit
cc77e09651c2
authored
5 years ago
by
Nsukami Patrick
Browse files
Options
Downloads
Patches
Plain Diff
Update README file
parent
cb8d771b5375
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.rst
+45
-0
45 additions, 0 deletions
README.rst
with
45 additions
and
0 deletions
README.rst
+
45
−
0
View file @
cc77e096
Expense tracking application built on the CubicWeb framework.
=============================================================
Developping with docker
=======================
Assuming you have a postgresql running on your machine where you can connect
with peer authentication, run "make dev" it will spawn an interactive shell
inside a docker container with the code mounted in develop mode. It mean you
can edit the code locally and run it in the container.
Some useful commands::
* ``cubicweb-ctl db-create -a fresh`` will create and initialize the
database
* ``cubicweb-ctl pyramid -D -l info fresh`` will start the instance on
http://localhost:8080
Deploying on kubernetes
=======================
To create the initial database from an existing empty database::
kubectl run -it fresh-dbcreate \
--env CW_DB_HOST=db \
--env CW_DB_USER=user \
--env CW_DB_PASSWORD=pass \
--env CW_DB_NAME=fresh \
--image=hub.extranet.logilab.fr/logilab/fresh --command -- \
cubicweb-ctl db-create --automatic --create-db=n fresh
kubectl delete deployment fresh-dbcreate
Then generate a secret named "fresh" from where environment variables are set::
kubectl create secret generic fresh-env \
--from-literal CW_DB_HOST=db
--from-literal CW_DB_USER=user \
--from-literal CW_DB_PASSWORD=pass \
--from-literal CW_DB_NAME=fresh \
--from-literal CW_BASE_URL=https://fresh.example.com
Then deploy fresh with::
kubectl apply -f deployment.yaml
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment