Code Monkey home page Code Monkey logo

docker-fbctf's Introduction

Introduction

Dockerfile to build a facebook CTF container image.

Contributing

If you find this image useful here's how you can help:

  • Send a Pull Request with your awesome new features and bug fixes
  • Help new users with Issues they may encounter

Quick Start

The quickest way to get started is using docker-compose.

Using docker-compose

docker-compose up

Alternatively, you can manually launch the fbctl container and the supporting mysql and memcached containers by following this three step guide.

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 \
    --link fbctf-memcached:memcached --link fbctf-mysql:mysql \
    --publish 10080:80 \
    --env MYSQL_USER=fbctf --env MYSQL_PASSWORD=fbctf \
    --env MYSQL_PORT=3306 --env MYSQL_DATABASE=fbctf \
    --env MEMCACHED_PORT=11211 \
    alexgaspar/fbctf:latest

Configuration

SSL

fbctf requires you to server the application over HTTPS (otherwise the sessions will not work properly). By default docker-fbctf will generate self signed certificate to meet this requirement, in this configuration, any requests made over the plain http protocol will automatically be redirected to use the https protocol. If you know your way arround SSL certificate, you can disable it by setting SSL_SELF_SIGNED to false.

docker-fbctf's People

Contributors

alexgaspar avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.