Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
V
ValUnifer
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Redmine
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
IPIPAN
ValUnifer
Commits
cb45bf4d
Commit
cb45bf4d
authored
1 year ago
by
dcz
Browse files
Options
Downloads
Patches
Plain Diff
Database dir as an argument in docker-compose
parent
7c337331
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
README.md
+11
-5
11 additions, 5 deletions
README.md
docker-compose.yml
+1
-1
1 addition, 1 deletion
docker-compose.yml
docker/scripts/run-docker
+1
-1
1 addition, 1 deletion
docker/scripts/run-docker
with
13 additions
and
7 deletions
README.md
+
11
−
5
View file @
cb45bf4d
...
...
@@ -6,15 +6,21 @@ In order to run the development environment locally:
1.
Make sure you have
[
Docker Desktop
](
https://docs.docker.com/desktop/
)
and
[
Docker Compose
](
https://docs.docker.com/compose/
)
installed.
2.
Build and run the project by executing:
./docker/scripts/run-docker
docker-compose stop backend — bo reset_db.sh nie lubi jak coś się łączy do bazki
docker-compose run backend bash — I w nim ./reset_db.sh
./docker/scripts/run-docker -e DATABASE_DIR=<path to database dir in local file system>
3.
In order to fulfill database execute belove commands
docker-compose stop backend
docker-compose run backend bash
-> run ./reset_db.sh script in interactive bash
-> exit interactive bash by typing ctrl-d
docker-compose start backend
In order to reinstall a database instance a folder specified by the DATABASE_DIR should be removed.
## Working in the development environment
Whenever you need to establish an interactive bash session in the running applica
i
ton container, execute:
Whenever you need to establish an interactive bash session in the running applicat
i
on container, execute:
./docker/scripts/docker-bash
...
...
This diff is collapsed.
Click to expand it.
docker-compose.yml
+
1
−
1
View file @
cb45bf4d
...
...
@@ -17,7 +17,7 @@ services:
networks
:
-
app-tier
volumes
:
-
./.datastore/postgresql
:/var/lib/postgresql/data
-
${DATABASE_DIR}
:/var/lib/postgresql/data
backend
:
#platform: linux/amd64
...
...
This diff is collapsed.
Click to expand it.
docker/scripts/run-docker
+
1
−
1
View file @
cb45bf4d
#!/usr/bin/env bash
set
-e
docker-compose up
--build
docker-compose up
--build
$@
This diff is collapsed.
Click to expand it.
Preview
0%
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