Tactic Docker images

11 posts / 0 new
Last post
Diego
Diego's picture
Tactic Docker images

I created a couple of docker images for Tactic, I use them for testing and development purposes.
The idea is to easy launch test, modify and explore Tactic on a linux workstation with a few commands and an easy installation.
They run the Tactic application, the apache web server, Postgresql database server and an ssh daemon.

The first image will always contains the latest stable Tactic version, now 4.1.0.v05, versions are tagged to be able to select which one to use.
The docker hub page is here:
https://registry.hub.docker.com/u/diegocortassa/tactic/
The Dockerfile source is located on github:
https://github.com/diegocortassa/docker-tactic

The second image contains development version of Tactic, I set up an automatic build environment that clones the TACTIC-DEV git repository and pushes the new image every week, it is great to have a quick sneak peek on what's going on in tactic development
The docker hub page is here:
https://registry.hub.docker.com/u/diegocortassa/tacticdev/
The Dockerfile source is located on github:
https://github.com/diegocortassa/docker-tacticdev

If you want to try out this images just install docker

on ubuntu 14.04:


sudo apt-get update
sudo apt-get install docker.io
alias docker='sudo docker.io'

and run a container:

docker run -d -p 80:80 -p 2222:22 -e ROOT_PASSWORD="my_secure_root_password" diegocortassa/tactic

or

docker run -d -p 80:80 -p 2222:22 -e ROOT_PASSWORD="my_secure_root_password" diegocortassa/tacticdev

for the dev version.

 

and you are done...

use tactic by pointing your browser to http://localhost and access the container shell with "ssh root@localhost -p 2222"

 

X-jo (not verified)

Hi Diego,
 
I haven't tried this. I am interested in the dev image that you created. When does the push happen? Does it happen on every new commit or is this some weekly/daily push that you have setup?
 
Does this work on windows?
Also is there an online URL for this rather than running it from the docker software within the machine?
 
thanks

Diego
Diego's picture

Hi X-jo,
the image is updated every sunday but I will probably switch the server off from 8 to 31 of august, the build script uses the the master branch from https://github.com/southpawtech/TACTIC-DEV.git
There is a solution to run Docker on windows (I personally never tried it) but the installation is trickier than Linux or MacOS check this out: http://docs.docker.com/installation/windows/
Regarding you question about running it from an online URL, I'm not sure I understand what you mean. You can run Docker on a cloud hoster like Amazon EC2 or Digitalocean but Docker is about providing an easy way to distribute and run an application on different servers without worrying about libraries and os dependencies but you'll need some server machine to run it.
The point is that you can easily install Tactic without worrying about the python version and needed modules...
 

Diego

X-jo (not verified)

Neat, I will try this and let you know.
 
Thanks

Diego
Diego's picture

I just updated the stable docker image to Tactic 4.3.0.v01
The docker hub page is  at https://registry.hub.docker.com/u/diegocortassa/tactic/
The Dockerfile can be found at https://github.com/diegocortassa/docker-tactic

Diego

Diego
Diego's picture

In case anyone wants to test the latest development version without installing it, I just updated the docker image for tacticdev to version 4.5.0.a01
 
Bumped the stable version from 4.3.0.v01 to 4.3.0.v02 too (4.4.0.v02 has an installer bug preventing the automated script to finalize the docker image. I sent a pull request on github with a bugfix)
 
Dockerfiles and build scripts can be downloaded and forked on github: https://github.com/diegocortassa/docker-tacticdev and https://github.com/diegocortassa/docker-tactic
 

Diego

lalamax3d
lalamax3d's picture

thanks, it works great. my question is, how can i change assets directory path to shared storage path ? any ideas

Diego
Diego's picture

Hi lalamax3d,
you should be able to map the /home/apache/assets used by tactic in docker to a path reachable by the server running docker with

docker run -d --volume=/local/path:/home/apache/assets -p 80:80 -p 2222:22 -e ROOT_PASSWORD="my_secure_root_password" diegocortassa/tactic

the filesystem containing /local/path should support unix symlinks...

Diego

lalamax3d
lalamax3d's picture

Hi Diego.
i am on centos 7. the command you mentioned works perfectly. huge thanks for that. i owe you a treat sir. have a good day. regards,haseeb

lalamax3d
lalamax3d's picture

I tested and it worked that day. now i am facing strange problem. any ideas.. it could be because of sym linked location (volume share) or something else.
 

Image: 
Diego
Diego's picture

You can ssh on the docker image using port 2222 on the localhost, once you are in your runing docker image check if you can list and access /home/apache/assets

Diego