Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
blendb
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Harbor Registry
Model registry
Operate
Environments
Monitor
Incidents
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
C3SL
blendb
Commits
3f59b885
There was a problem fetching the pipeline summary.
Commit
3f59b885
authored
7 years ago
by
Lucas Fernandes de Oliveira
Browse files
Options
Downloads
Plain Diff
Merge branch 'issue/53' into 'master'
Issue
#53
: Add docker-compose.yml with read-only setup See merge request
!50
parents
dcd80665
f6cbbb79
No related branches found
No related tags found
1 merge request
!50
Issue #53: Add docker-compose.yml with read-only setup
Pipeline
#
Changes
3
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
.dockerignore
+2
-0
2 additions, 0 deletions
.dockerignore
.gitlab-ci.yml
+34
-2
34 additions, 2 deletions
.gitlab-ci.yml
docker-compose.yml
+39
-0
39 additions, 0 deletions
docker-compose.yml
with
75 additions
and
2 deletions
.dockerignore
+
2
−
0
View file @
3f59b885
...
...
@@ -10,3 +10,5 @@ nodemon.json
*.swp
*.log
*.swo
*.env
This diff is collapsed.
Click to expand it.
.gitlab-ci.yml
+
34
−
2
View file @
3f59b885
...
...
@@ -7,15 +7,22 @@ variables:
POSTGRES_DB
:
'
blendb_fixture'
POSTGRES_USER
:
'
runner'
POSTGRES_PASSWORD
:
'
'
PKG_VERSION
:
'
latest'
cache
:
paths
:
-
node_modules
before_script
:
-
npm install --silent
stages
:
-
test
-
build
-
deploy
run_tests
:
stage
:
test
before_script
:
-
npm install --silent
script
:
-
mv config/ci_test.yaml.example config/test.yaml
-
mv config/ci_test.env.example config/test.env
...
...
@@ -24,3 +31,28 @@ run_tests:
tags
:
-
node
-
postgres
build
:
stage
:
build
variables
:
PKG_VERSION
:
'
latest'
script
:
-
PKG_VERSION=$(cat package.json | grep \"version\" | cut -f2 -d':'| sed -e 's/"\|,//g' | tr -d ' ')
-
echo ${PKG_VERSION}
-
docker build -t marula.c3sl.ufpr.br:5000/c3sl/blendb:${PKG_VERSION} .
tags
:
-
docker
-
build
deploy
:
stage
:
deploy
variables
:
PKG_VERSION
:
'
latest'
script
:
-
PKG_VERSION=$(cat package.json | grep \"version\" | cut -f2 -d':'| sed -e 's/"\|,//g' | tr -d ' ')
-
docker push marula.c3sl.ufpr.br:5000/c3sl/blendb:${PKG_VERSION} .
tags
:
-
docker
-
build
only
:
-
master
This diff is collapsed.
Click to expand it.
docker-compose.yml
0 → 100644
+
39
−
0
View file @
3f59b885
version
:
'
3.3'
services
:
blendb
:
image
:
marula.c3sl.ufpr.br:5000/c3sl/blendb:latest
build
:
/home/lfo14/c3sl/blendb
container_name
:
blendb
# depends_on:
# - db
environment
:
BLENDB_DB_USER
:
${BLENDB_DB_USER}
BLENDB_DB_PASSWORD
:
${BLENDB_DB_PASSWORD}
BLENDB_DB_NAME
:
${BLENDB_DB_NAME}
BLENDB_DB_HOST
:
${BLENDB_DB_HOST}
BLENDB_DB_PORT
:
${BLENDB_DB_PORT}
BLENDB_ST_CREATE
:
${BLENDB_ST_CREATE}
BLENDB_ST_INSERT
:
${BLENDB_ST_INSERT}
BLENDB_ADAPTER
:
${BLENDB_ADAPTER}
volumes
:
-
type
:
bind
source
:
./config
target
:
/home/node/app/config
-
type
:
tmpfs
target
:
/tmp
restart
:
unless-stopped
read_only
:
'
true'
security_opt
:
-
no-new-privileges
# db:
# image: postgres:9.6
# container_name: db
# ports:
# - "5432"
# restart: unless-stopped
# #read_only: 'true'
# security_opt:
# - no-new-privileges
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