This repository is used to build Controllable Crowd Caption Correction Docker image.
8080 TCP
- /var/resin
If the container is available in Docker Hub Registry you can run this command to fetch a already built container:
docker pull trace/ccc
Also, you can build the container using the source code of this git repository:
- Clone this repository
git clone https://github.com/gpii-ops/docker-ccc.git
- Clone the source data of CCCC
cd docker-ccc
git clone https://github.com/GPII/controllable-crowd-caption-correction.git data
- Build the container
docker build --rm=true -t trace/ccc .
That commmand will make that the application listens at 8080 port of the local machine:
docker run \
-d \
-p 8080:8080 \
-e "CCC_PASSWORD=secretpassword" \
--name="resin" \
trace/ccc
A Vagrantfile is provided in order to make easier the testing and the development of the application. Vagrant application and Virtualbox are needed to boot a virtual machine with all the stuff inside it.
The application source must be in the "data" directory, and any change made in that directory will be reflected in the running application.
git clone https://github.com/gpii-ops/docker-ccc.git
cd docker-ccc
git clone https://github.com/GPII/controllable-crowd-caption-correction.git data
Once Vagrant is installed to boot up the virtual machine run the following command:
vagrant up
The application is served through the 127.0.0.1:8888 port of the local machine.
The first time that you run this command Vagrant downloads some image files, so this proccess takes some time.
vagrant halt
vagrant ssh
If you need to deploy all the docker containers in the virtual machine run:
vagrant provision
If you want to start from the beggining: destroy the vm and create a new one:
vagrant destroy
vagrant up