Start learning locker v2 project with docker and docker-compose.
- Docker https://docs.docker.com/engine/install/
- Taskfile https://taskfile.dev/
Setup is first time process when you are configuring project first time.
-
If you are asked to change any think in default.env then create new .env file and add those new env variables to override from default.env. Else start with next steps
-
Create .env.learninglocker and .env.xapi file
cp .env.learninglocker.example .env.learninglocker
cp .env.xapi.example .env.xapi- Build project containers
task dev:build- Start containers
task dev:up- Run database migrations
task run -- yarn migrate- Create site admin user
task run -- node cli/dist/server createSiteAdmin <email> <organisation> <password>
# Example:
task run -- node cli/dist/server createSiteAdmin admin@example.org admin Admin@123456- Stop containers
task dev:down- Start project
# If you want to build containers again and then start project
task dev:up -- --build
# Or else don't want to build new since there are no new changes in containers
# docker files
task dev:up
# OR
task dev:start
# Both are same commands start is just alias for up here- Stop project
task dev:down
# OR
task dev:stop
# Both are same commands stop is just alias for down here- Stop project and delete database
# Beware this delete all database files
task cleantask restart