diff --git a/motech-centos/README b/motech-centos/README index 0f4d7ab..062d2ab 100644 --- a/motech-centos/README +++ b/motech-centos/README @@ -4,13 +4,14 @@ 2. Copy to destination folder with Dockerfile and run.sh script: * /motech/packaging/rpm/target/rpm/motech-base/RPMS/noarch/*.rpm (rename on motech-base.rpm) * /motech/target/rpm/motech/RPMS/noarch/*.rpm (rename on motech.rpm) -3. sudo docker build -t motech/motech:centos ./detination_folder +3. sudo docker build -t motech/motech:centos ./destination_folder #Starting motech from motech-centos image 4. Run image (sudo docker run -d motech/motech:centos) -5. If rpm's were correct you should have bootstrap motech on (IP from point 6) ip:8080 -6. Use suggestions for inputs -7. SQL Username: mysql SQL Password: password -8. Verify and start motech +5. Check container's IP (ifconfig) +6. If rpm's were correct you should have bootstrap motech on (IP from point 5) ip:8080 +7. Use suggestions for inputs +8. SQL Username: mysql SQL Password: password +9. Verify and start motech diff --git a/motech-deb/Dockerfile b/motech-deb/Dockerfile new file mode 100644 index 0000000..3f429c0 --- /dev/null +++ b/motech-deb/Dockerfile @@ -0,0 +1,25 @@ +FROM ubuntu:15.04 + +RUN apt-get update + +#Install simple tool for installing deb files +RUN apt-get install gdebi-core -y + +#Install mysql-server and set password to 'password' +RUN echo "mysql-server mysql-server/root_password password password" | debconf-set-selections +RUN echo "mysql-server mysql-server/root_password_again password password" | debconf-set-selections +RUN apt-get install -y mysql-server + +#Install motech DEB with dependencies +ADD /motech-base.deb /motech-base.deb +RUN gdebi --non-interactive motech-base.deb +ADD /motech.deb /motech.deb +RUN gdebi --non-interactive motech.deb + +EXPOSE 8080 + +ADD run.sh /run.sh +RUN chmod a+x /run.sh + +CMD ["/run.sh"] + diff --git a/motech-deb/README b/motech-deb/README new file mode 100644 index 0000000..f0f9ec3 --- /dev/null +++ b/motech-deb/README @@ -0,0 +1,16 @@ +#Building motech-deb image based on deb. + +1. Install docker-machine : https://docs.docker.com/engine/installation/linux/ubuntulinux/ +2. Copy to destination folder with Dockerfile and run.sh script: +* /motech/packaging/deb/target/motech-base_xxx.deb (rename on motech-base.deb) +* /motech/packaging/deb/target/motech_xxx.deb (rename on motech.deb) +3. sudo docker build -t motech/motech:deb ./destination_folder + +#Starting motech from motech-deb image + +4. Run image (sudo docker run -d motech/motech:deb) +5. Check container's IP (ifconfig) +6. If container is running properly, motech instance will be available on ip:8080 (IP from point 5) +7. SQL Username: root, SQL Password: password +8. Verify and start motech + diff --git a/motech-deb/run.sh b/motech-deb/run.sh new file mode 100644 index 0000000..ed7f0f1 --- /dev/null +++ b/motech-deb/run.sh @@ -0,0 +1,18 @@ +#!/bin/bash + +# Run activemq +ln -s /etc/activemq/instances-available/main /etc/activemq/instances-enabled/main +sed -e 's/