Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
ehasa-backend
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
WIMMA Lab 2019
Overflow
ehasa-backend
Commits
aad0ea33
Commit
aad0ea33
authored
5 years ago
by
L4168
Browse files
Options
Downloads
Patches
Plain Diff
removed compose, added init.sh
parent
ea0cfd8a
No related branches found
No related tags found
2 merge requests
!59
Development to master
,
!21
Error handling
Pipeline
#63923
failed
5 years ago
Stage: e2e-test
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitlab-ci.yml
+9
-7
9 additions, 7 deletions
.gitlab-ci.yml
docker-compose.yml
+0
-14
0 additions, 14 deletions
docker-compose.yml
docker/init.sh
+9
-0
9 additions, 0 deletions
docker/init.sh
with
18 additions
and
21 deletions
.gitlab-ci.yml
+
9
−
7
View file @
aad0ea33
...
@@ -2,20 +2,22 @@ stages:
...
@@ -2,20 +2,22 @@ stages:
-
e2e-test
-
e2e-test
e2e-testing
:
e2e-testing
:
image
:
image
:
docker
name
:
docker/compose:1.24.0
entrypoint
:
[
'
/bin/sh'
,
'
-c'
]
services
:
services
:
-
docker:dind
-
docker:dind
stage
:
e2e-test
stage
:
e2e-test
tags
:
[
'
compose
'
]
tags
:
[
'
docker
'
]
only
:
only
:
-
testing
-
testing
before_script
:
before_script
:
-
echo "$DOCKERHUB_PASS" | docker login -u "$DOCKERHUB_USER" --password-stdin
-
echo "$DOCKERHUB_PASS" | docker login -u "$DOCKERHUB_USER" --password-stdin
-
docker stop back
-
docker stop postgis
-
docker rm back
-
docker rm postgis
script
:
script
:
-
docker
image prune -f
-
docker
build -t backend .
-
docker
-compose build --no-cache
-
docker
run --name back -p 8080:5000 -d backend
-
docker
-compose up -d
-
docker
run --name postgis -p 5432:5432 -d -v ./docker:/docker-entrypoint-initdb.d/ mdillon/postgis
after_script
:
after_script
:
-
docker logout
-
docker logout
This diff is collapsed.
Click to expand it.
docker-compose.yml
deleted
100644 → 0
+
0
−
14
View file @
ea0cfd8a
version
:
'
3'
services
:
ehasa-frontend
:
image
:
overflow2019/frontend:test
ports
:
-
80:80
ehasa-backend
:
build
:
.
ports
:
-
8080:5000
postgres
:
image
:
mdillon/postgis
volumes
:
-
./docker:/docker-entrypoint-initdb.d/
\ No newline at end of file
This diff is collapsed.
Click to expand it.
docker/init.sh
0 → 100755
+
9
−
0
View file @
aad0ea33
#!/bin/bash
psql
-U
postgres
<<
EOF
create database ehasa;
\c
ehasa;
create user ehasa;
alter user ehasa with encrypted password 'salasana';
grant all privileges on database ehasa to ehasa;
create extension "uuid-ossp";
EOF
\ No newline at end of file
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