Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
Z
zkci-bitrix
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Карнаухов Константин
zkci-bitrix
Commits
0a173b3e
Commit
0a173b3e
authored
Oct 21, 2016
by
Тест Карнаухов
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refactor(docker): update configs
parent
6145a2ef
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
7 deletions
+14
-7
.keep
db/.keep
+0
-0
docker-compose.yml
docker-compose.yml
+5
-2
gitlab-ci.yml
gitlab-ci.yml
+9
-5
No files found.
db/.keep
deleted
100644 → 0
View file @
6145a2ef
docker-compose.yml
View file @
0a173b3e
...
...
@@ -6,14 +6,14 @@ services:
environment
:
-
MARIADB_ROOT_PASSWORD=123123rr
volumes
:
-
./db/data:/bitnami/mariadb/data:Z
-
/bitnami/mariadb
tty
:
true
ports
:
-
"
3306"
bitrix
:
container_name
:
DEV-%PROJECT_NUM%
image
:
zolotoykod/bitrix:latest
command
:
/run.sh
command
:
sudo
/run.sh
volumes
:
-
./www:/home/bitrix/www:Z
depends_on
:
...
...
@@ -25,7 +25,10 @@ services:
-
"
22"
environment
:
-
VIRTUAL_HOST=DEV-%PROJECT_NUM%.zolotoykod.ru
-
HOME=/home/bitrix
dns
:
-
8.8.8.8
-
8.8.4.4
tty
:
true
user
:
bitrix
working_dir
:
/home/bitrix/www
gitlab-ci.yml
View file @
0a173b3e
...
...
@@ -4,7 +4,6 @@ stages:
cache
:
untracked
:
true
paths
:
-
db/
-
www/bitrix/
-
www/upload/
-
www/vendor/
...
...
@@ -14,7 +13,12 @@ build:
stage
:
build
script
:
-
docker-compose up -d
-
docker exec -it DEV-%PROJECT_NUM% bash -c 'cd /home/bitrix/www/ && yarn install'
-
docker exec -it DEV-%PROJECT_NUM% bash -c 'cd /home/bitrix/www/ && composer update'
-
docker exec -it DEV-%PROJECT_NUM% bash -c 'cd /home/bitrix/www/ && gulp'
-
docker exec -it DEV-%PROJECT_NUM% bash -c 'cd /home/bitrix/www/ && php migrator migrate'
-
docker exec -i DEV-%PROJECT_NUM% bash -c 'yarn install'
-
docker exec -i DEV-%PROJECT_NUM% bash -c 'composer update'
-
docker exec -i DEV-%PROJECT_NUM% bash -c 'gulp'
migrations
:
stage
:
build
script
:
-
docker exec -i DEV-%PROJECT_NUM% bash -c 'php migrator migrate'
allow_failure
:
true
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment