Public | Automated Build

Last pushed: 2 years ago
Short Description
Short description is empty for this repo.
Full Description

Usage

build

docker built -t fishcried/stacktach .

create docker

# stackstah need connect to mysql server, so you can run a docker with mysql.
docker run -d -e MYSQL_ROOT_PASSWORD=password mysql

docker run -d -p 8000:8000 -p 2222:22 --link mysql:db_host --name stacktach -e ROOT_PASS="root" fishcried/stacktach

login the docker and run stacktach

ssh root@hostip -p 2222
cd stacktack

# modify the variables in run.sh, maybe like this

DB_HOST=db_host
DB_USERNAME=root
DB_PASSWORD=password
RABBIT_HOST=192.168.250.12
RABBIT_USER=rabbit
RABBIT_PASSWORD=rabbit

./run.sh

Dockerfile vs Dockerfile.china

--- Dockerfile    2014-09-12 15:40:47.302831938 +0800
+++ Dockerfile.china    2014-09-12 15:34:29.890836180 +0800
@@ -1,6 +1,12 @@
 FROM tutum/ubuntu:trusty
 MAINTAINER fishcried

+RUN echo 'deb http://cn.archive.ubuntu.com//ubuntu trusty main restricted universe multiverse' > /etc/apt/sources.list
+RUN echo 'deb http://cn.archive.ubuntu.com//ubuntu trusty-updates main restricted universe multiverse' >> /etc/apt/sources.list
+RUN echo 'deb http://cn.archive.ubuntu.com//ubuntu trusty-security main restricted universe multiverse' >> /etc/apt/sources.list
+
+RUN echo 'Acquire::HTTP::Proxy "http://192.168.252.1:8000/";' > /etc/apt/apt.conf.d/90curtin-aptproxy
+
 RUN apt-get -y update 
 RUN apt-get install -y unzip 
 RUN apt-get install -y python-pip

Dockerfile.china use softwares' server in china and a local proxy to speed up building.

Docker Pull Command
Owner
fishcried
Source Repository

Comments (0)