Public | Automated Build

Last pushed: a year ago
Short Description
It's more easier for you to run fbctf in dev or prod mode. (Image here is in dev mode)
Full Description

Dockerized image for FBCTF (Multi Containers Version)

This is the Git repo of the dockerized_fbctf:multi_containers image. It's more easier for you to setup fbctf with other orchestration.

Relevant links:
facebook/fbctf |
AlexGaspar/docker-fbctf |
alexgaspar/fbctf |
qazbnm456/dockerized_fbctf


##Table of contents

Quick Start

Thanks


<a name="start"></a>

Quick Start

fbctf needs to be server over https, so by default it would generate a self-signed certificate, if you want to use your own certificate you can turn this off by setting $SSL to false, then fbctf container will only server request over :80, so you can do the SSL termination where ever you prefer.

Using docker-compose

docker-compose up

Step 1. Launch a mysql container

docker run --name fbctf-mysql -d \
    --env MYSQL_ROOT_PASSWORD=root \
    --env MYSQL_DATABASE=fbctf \
    --env MYSQL_USER=fbctf --env MYSQL_PASSWORD=fbctf \
    --volume /opt/docker/fbctf/mysql:/var/lib/mysql \
    mysql:5.5

Step 2. Launch a memcached container

docker run --name fbctf-memcached -d memcached

Step 3. Launch the fbctf container

docker run --name fbctf -d \
    -p 10080:80 \
    --env MYSQL_USER=fbctf \
    --env MYSQL_PASSWORD=fbctf \
    --env MYSQL_PORT=3306 \
    --env MYSQL_DATABASE=fbctf \
    --env MEMCACHED_PORT=11211 \
    --link fbctf-memcached:memcached \
    --link fbctf-mysql:mysql \
    qazbnm456/dockerized_fbctf:multi_containers

<a name="thanks"></a>

Thanks

Due to a great suggestion mentioned here, AlexGaspar and I work together with the concept of splitting the resources into multiple containers. I modify some code to fit my needs here, and you may find original one: AlexGaspar/docker-fbctf.

Docker Pull Command
Owner
qazbnm456
Source Repository

Comments (4)
rollo
a year ago

worked great. thanks for your work.

qazbnm456
a year ago

What problems did you encounter? I tested it on my computers with OS X EL Capitan and Ununtu 14.04 LTS, and it seems everything goes well without any problem.

Could you please provide your system infos or logs perhaps? Thanks for your trying and comments :)

jovonni
a year ago

eventually becomes:

Waiting for mysql to start
Waiting for mysql to start
nc: getaddrinfo: Name or service not known
Waiting for mysql to start
nc: getaddrinfo: Name or service not known
Waiting for mysql to start

jovonni
a year ago

hhvm.mysqli.socket = /var/run/mysqld/mysqld.sock
Waiting for mysql to start

my build process using docker hangs here. I have even checked my port forwarding stuff. This build is not working......