[incubator-dlab] branch DLAB-657 updated: fixes

2019-06-06 Thread ioleksandr
This is an automated email from the ASF dual-hosted git repository.

ioleksandr pushed a commit to branch DLAB-657
in repository https://gitbox.apache.org/repos/asf/incubator-dlab.git


The following commit(s) were added to refs/heads/DLAB-657 by this push:
 new aa35372  fixes
aa35372 is described below

commit aa3537275c59f46a8221c3a457c5c8c8adf5e17a
Author: Oleksandr_Isniuk 
AuthorDate: Thu Jun 6 11:54:21 2019 +0300

fixes
---
 infrastructure-provisioning/src/ssn/scripts/configure_mongo.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/infrastructure-provisioning/src/ssn/scripts/configure_mongo.py 
b/infrastructure-provisioning/src/ssn/scripts/configure_mongo.py
index ee792d8..1a0cbab 100644
--- a/infrastructure-provisioning/src/ssn/scripts/configure_mongo.py
+++ b/infrastructure-provisioning/src/ssn/scripts/configure_mongo.py
@@ -86,7 +86,7 @@ if __name__ == "__main__":
  .format(args.dlab_path, args.cloud_provider))
 local("mkdir -p /opt/mongo_vol")
 local("docker run --name dlab-mongo -p 27017:27017 -v 
/opt/mongo_vol:/data/db -d docker.dlab-mongo --smallfiles")
-local("docker exec dlab-mongo sh -c 'mongo < /root/create_db.js'")
+local("sleep 10; docker exec dlab-mongo sh -c 'mongo < 
/root/create_db.js'")
 local("docker exec dlab-mongo sh -c 'mongoimport --jsonArray --db 
dlabdb --collection roles --file /root/mongo_roles.json'")
 else:
 try:


-
To unsubscribe, e-mail: commits-unsubscr...@dlab.apache.org
For additional commands, e-mail: commits-h...@dlab.apache.org



[incubator-dlab] branch DLAB-657 updated: fixes

2019-06-06 Thread ioleksandr
This is an automated email from the ASF dual-hosted git repository.

ioleksandr pushed a commit to branch DLAB-657
in repository https://gitbox.apache.org/repos/asf/incubator-dlab.git


The following commit(s) were added to refs/heads/DLAB-657 by this push:
 new d8a683b  fixes
d8a683b is described below

commit d8a683b133de2e4b3866d862246c0ba3f64fa16a
Author: Oleksandr_Isniuk 
AuthorDate: Thu Jun 6 11:21:51 2019 +0300

fixes
---
 infrastructure-provisioning/src/ssn/files/os/mongo_Dockerfile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/infrastructure-provisioning/src/ssn/files/os/mongo_Dockerfile 
b/infrastructure-provisioning/src/ssn/files/os/mongo_Dockerfile
index e0d7ff2..9c2a6b5 100644
--- a/infrastructure-provisioning/src/ssn/files/os/mongo_Dockerfile
+++ b/infrastructure-provisioning/src/ssn/files/os/mongo_Dockerfile
@@ -29,7 +29,7 @@ COPY ssn/files/${CLOUD_PROVIDER}/mongo_roles.json /root/
 RUN mv /root/mongodb.conf /etc/mongodb.conf
 
 RUN mkdir -p /data/logs \
-chown -R mongodb:mongodb /data/logs
+&& chown -R mongodb:mongodb /data/logs
 
 CMD ["mongod", "--config", "/etc/mongodb.conf"]
 


-
To unsubscribe, e-mail: commits-unsubscr...@dlab.apache.org
For additional commands, e-mail: commits-h...@dlab.apache.org



[incubator-dlab] branch DLAB-657 updated: fixes

2019-06-05 Thread ioleksandr
This is an automated email from the ASF dual-hosted git repository.

ioleksandr pushed a commit to branch DLAB-657
in repository https://gitbox.apache.org/repos/asf/incubator-dlab.git


The following commit(s) were added to refs/heads/DLAB-657 by this push:
 new be97067  fixes
be97067 is described below

commit be9706770f35afbbc92cbdb591f38f0c37c3ffae
Author: Oleksandr_Isniuk 
AuthorDate: Wed Jun 5 18:27:41 2019 +0300

fixes
---
 infrastructure-provisioning/src/ssn/files/os/mongo_Dockerfile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/infrastructure-provisioning/src/ssn/files/os/mongo_Dockerfile 
b/infrastructure-provisioning/src/ssn/files/os/mongo_Dockerfile
index a558c77..e0d7ff2 100644
--- a/infrastructure-provisioning/src/ssn/files/os/mongo_Dockerfile
+++ b/infrastructure-provisioning/src/ssn/files/os/mongo_Dockerfile
@@ -28,7 +28,7 @@ COPY ssn/files/os/mongodb.conf /root/
 COPY ssn/files/${CLOUD_PROVIDER}/mongo_roles.json /root/
 RUN mv /root/mongodb.conf /etc/mongodb.conf
 
-RUN chown -R mongodb:mongodb /data/db2 && \
+RUN mkdir -p /data/logs \
 chown -R mongodb:mongodb /data/logs
 
 CMD ["mongod", "--config", "/etc/mongodb.conf"]


-
To unsubscribe, e-mail: commits-unsubscr...@dlab.apache.org
For additional commands, e-mail: commits-h...@dlab.apache.org



[incubator-dlab] branch DLAB-657 updated: fixes

2019-06-05 Thread ioleksandr
This is an automated email from the ASF dual-hosted git repository.

ioleksandr pushed a commit to branch DLAB-657
in repository https://gitbox.apache.org/repos/asf/incubator-dlab.git


The following commit(s) were added to refs/heads/DLAB-657 by this push:
 new 690efb0  fixes
690efb0 is described below

commit 690efb0e5a96b58fdd12cacfa5ea57a4f607865b
Author: Oleksandr_Isniuk 
AuthorDate: Wed Jun 5 17:51:43 2019 +0300

fixes
---
 infrastructure-provisioning/src/ssn/files/os/mongo_Dockerfile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/infrastructure-provisioning/src/ssn/files/os/mongo_Dockerfile 
b/infrastructure-provisioning/src/ssn/files/os/mongo_Dockerfile
index e254491..a558c77 100644
--- a/infrastructure-provisioning/src/ssn/files/os/mongo_Dockerfile
+++ b/infrastructure-provisioning/src/ssn/files/os/mongo_Dockerfile
@@ -28,7 +28,7 @@ COPY ssn/files/os/mongodb.conf /root/
 COPY ssn/files/${CLOUD_PROVIDER}/mongo_roles.json /root/
 RUN mv /root/mongodb.conf /etc/mongodb.conf
 
-RUN && chown -R mongodb:mongodb /data/db2 && \
+RUN chown -R mongodb:mongodb /data/db2 && \
 chown -R mongodb:mongodb /data/logs
 
 CMD ["mongod", "--config", "/etc/mongodb.conf"]


-
To unsubscribe, e-mail: commits-unsubscr...@dlab.apache.org
For additional commands, e-mail: commits-h...@dlab.apache.org



[incubator-dlab] branch DLAB-657 updated: fixes

2019-06-05 Thread ioleksandr
This is an automated email from the ASF dual-hosted git repository.

ioleksandr pushed a commit to branch DLAB-657
in repository https://gitbox.apache.org/repos/asf/incubator-dlab.git


The following commit(s) were added to refs/heads/DLAB-657 by this push:
 new 796e295  fixes
796e295 is described below

commit 796e2953448c239ae2f4b7197d9dfb496be58525
Author: Oleksandr_Isniuk 
AuthorDate: Wed Jun 5 17:33:20 2019 +0300

fixes
---
 infrastructure-provisioning/src/ssn/files/os/mongo_Dockerfile  | 4 +---
 infrastructure-provisioning/src/ssn/scripts/configure_mongo.py | 4 ++--
 2 files changed, 3 insertions(+), 5 deletions(-)

diff --git a/infrastructure-provisioning/src/ssn/files/os/mongo_Dockerfile 
b/infrastructure-provisioning/src/ssn/files/os/mongo_Dockerfile
index 994adfd..e254491 100644
--- a/infrastructure-provisioning/src/ssn/files/os/mongo_Dockerfile
+++ b/infrastructure-provisioning/src/ssn/files/os/mongo_Dockerfile
@@ -28,9 +28,7 @@ COPY ssn/files/os/mongodb.conf /root/
 COPY ssn/files/${CLOUD_PROVIDER}/mongo_roles.json /root/
 RUN mv /root/mongodb.conf /etc/mongodb.conf
 
-RUN mkdir -p /data/db2 \
-&& mkdir -p /data/logs \
-&& chown -R mongodb:mongodb /data/db2 && \
+RUN && chown -R mongodb:mongodb /data/db2 && \
 chown -R mongodb:mongodb /data/logs
 
 CMD ["mongod", "--config", "/etc/mongodb.conf"]
diff --git a/infrastructure-provisioning/src/ssn/scripts/configure_mongo.py 
b/infrastructure-provisioning/src/ssn/scripts/configure_mongo.py
index 9ab678a..ee792d8 100644
--- a/infrastructure-provisioning/src/ssn/scripts/configure_mongo.py
+++ b/infrastructure-provisioning/src/ssn/scripts/configure_mongo.py
@@ -84,8 +84,8 @@ if __name__ == "__main__":
 if args.kuber:
 local("cd {}sources/infrastructure-provisioning/src/; docker build 
--build-arg CLOUD_PROVIDER={} --file ssn/files/os/mongo_Dockerfile -t 
docker.dlab-mongo ."
  .format(args.dlab_path, args.cloud_provider))
-local("mkdir -p /opt/mongo-vol")
-local("docker run --name dlab-mongo -p 27017:27017 -v 
/opt/mongo_vol:/data/db2 -d docker.dlab-mongo")
+local("mkdir -p /opt/mongo_vol")
+local("docker run --name dlab-mongo -p 27017:27017 -v 
/opt/mongo_vol:/data/db -d docker.dlab-mongo --smallfiles")
 local("docker exec dlab-mongo sh -c 'mongo < /root/create_db.js'")
 local("docker exec dlab-mongo sh -c 'mongoimport --jsonArray --db 
dlabdb --collection roles --file /root/mongo_roles.json'")
 else:


-
To unsubscribe, e-mail: commits-unsubscr...@dlab.apache.org
For additional commands, e-mail: commits-h...@dlab.apache.org