Public Repository

Last pushed: 2 years ago
Short Description
Anahita Social Framework added @ Ubuntu 14.04 Trusty
Full Description

#Step1 : Create the data container

docker run -d -v /var/lib/mysql --name myanahitadb -p 22:22 tutum/ubuntu-trusty

#Step2 : Check data persistency (e.g., create the database anahitatest, add yourself as a user and stop/start the container)

docker run --volumes-from myanahitadb -p 3306:3306 -d tutum/mysql

docker logs $containerID

mysql -uadmin -p$MYSQL_PASS -h$LOCALHOST -P3306

#Step3 : Create your own Anahita image :

FROM barbaracollignon/ubuntu-anahita

MAINTAINER Barbara Collignon

EXPOSE 80 3306

VOLUME ["myanahitadb"]

RUN mysql -uadmin -p$MYSQL_PASS -h$LOCALHOST -P3306 anahitatest

RUN mysql -uadmin -p$MYSQL_PASS -h$LOCALHOST -P3306 --execute="GRANT ALL ON . TO '$MYNAME'@'%' IDENTIFIED BY '$MYPASS'"

WORKDIR /app/vendor/anahita/anahita

RUN php anahita site:init --database-name="anahita" --database-user="$MYNAME" --database-password="$MYPASS" --database-host="$LOCALHOST" --database-port="3306" --database-prefix="jos_"

RUN mysql -u$MYNAME -p$MYPASS -h$LOCALHOST -P3306 --execute="SHOW TABLES FROM anahita"

#Step4 : Create your own Anahita container

docker run --volumes-from myanahitadb -p 80:80 -p 3306:3306 -d ubuntu-anahita

#Step5 : Go to URL or curl ($boot2docker ip)/www

Docker Pull Command
Owner
barbaracollignon