Updated Dockerfile

- Migrated Dockerfile to Ubuntu 16.04 LTS
- Fixed dependency to "sudo"
- Fixed AIL Web dependencies installation
- Added Docker documentation
This commit is contained in:
Simon Tran 2017-10-01 02:29:56 +02:00
parent a41c5d55c5
commit 6b43d2a067
2 changed files with 9 additions and 6 deletions

View file

@ -7,15 +7,17 @@ RUN mkdir /opt/AIL && apt-get update -y \
# Adding sudo command # Adding sudo command
RUN useradd -m docker && echo "docker:docker" | chpasswd && adduser docker sudo RUN useradd -m docker && echo "docker:docker" | chpasswd && adduser docker sudo
RUN echo "root ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers RUN echo "root ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
#RUN echo "docker ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
#USER docker # Installing AIL dependencies
ADD . /opt/AIL ADD . /opt/AIL
WORKDIR /opt/AIL WORKDIR /opt/AIL
RUN ./installing_deps.sh RUN ./installing_deps.sh
WORKDIR /opt/AIL
# Installing Web dependencies,
# remove all the parts below if you dont need the Web UI
WORKDIR /opt/AIL/var/www WORKDIR /opt/AIL/var/www
RUN ./update_thirdparty.sh RUN ./update_thirdparty.sh
WORKDIR /opt/AIL WORKDIR /opt/AIL
CMD bash docker_start.sh CMD bash docker_start.sh

View file

@ -60,18 +60,18 @@ apt-get install -y curl
curl https://get.docker.com | /bin/bash curl https://get.docker.com | /bin/bash
``` ```
2. Type these commands to build the Docker image 2. Type these commands to build the Docker image:
``` ```
git clone https://github.com/CIRCL/ail-framework git clone https://github.com/CIRCL/ail-framework
cd AIL-framework cd AIL-framework
docker build -t ail-framework docker build -t ail-framework
``` ```
3. To start AIL on port 7000, type the following command below. 3. To start AIL on port 7000, type the following command below:
``` ```
docker run -p 7000:7000 ail-framework docker run -p 7000:7000 ail-framework
``` ```
To debug the running container, type the following command and note the container name or identifier 4. To debug the running container, type the following command and note the container name or identifier:
``` ```
docker ps docker ps
``` ```
@ -82,6 +82,7 @@ docker exec -it CONTAINER_NAME_OR_IDENTIFIER bash
cd /opt/ail cd /opt/ail
``` ```
Starting AIL web interface Starting AIL web interface
-------------------------- --------------------------