mirror of https://github.com/CIRCL/AIL-framework
Migrated Dockerfile to Ubuntu 16.04 LTS
Fixed AIL Web dependencies installation Added Docker documentationpull/142/head
parent
a25fc828e3
commit
a41c5d55c5
18
Dockerfile
18
Dockerfile
|
@ -1,9 +1,21 @@
|
|||
FROM ubuntu:14.04
|
||||
FROM ubuntu:16.04
|
||||
|
||||
RUN mkdir /opt/AIL && apt-get update -y \
|
||||
&& apt-get install git python-dev build-essential \
|
||||
libffi-dev libssl-dev libfuzzy-dev wget -y
|
||||
libffi-dev libssl-dev libfuzzy-dev wget sudo -y
|
||||
|
||||
# Adding sudo command
|
||||
RUN useradd -m docker && echo "docker:docker" | chpasswd && adduser docker sudo
|
||||
RUN echo "root ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
|
||||
#RUN echo "docker ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
|
||||
|
||||
#USER docker
|
||||
ADD . /opt/AIL
|
||||
WORKDIR /opt/AIL
|
||||
RUN ./installing_deps.sh && cd var/www/ && ./update_thirdparty.sh
|
||||
RUN ./installing_deps.sh
|
||||
WORKDIR /opt/AIL/var/www
|
||||
RUN ./update_thirdparty.sh
|
||||
|
||||
WORKDIR /opt/AIL
|
||||
|
||||
CMD bash docker_start.sh
|
||||
|
|
30
README.md
30
README.md
|
@ -51,6 +51,36 @@ linux based distributions, you can replace it with [installing_deps_archlinux.sh
|
|||
|
||||
There is also a [Travis file](.travis.yml) used for automating the installation that can be used to build and install AIL on other systems.
|
||||
|
||||
Docker Quick Start (Ubuntu 16.04 LTS)
|
||||
------------
|
||||
1. Install Docker
|
||||
```
|
||||
sudo su
|
||||
apt-get install -y curl
|
||||
curl https://get.docker.com | /bin/bash
|
||||
```
|
||||
|
||||
2. Type these commands to build the Docker image
|
||||
```
|
||||
git clone https://github.com/CIRCL/ail-framework
|
||||
cd AIL-framework
|
||||
docker build -t ail-framework
|
||||
```
|
||||
3. To start AIL on port 7000, type the following command below.
|
||||
```
|
||||
docker run -p 7000:7000 ail-framework
|
||||
```
|
||||
|
||||
To debug the running container, type the following command and note the container name or identifier
|
||||
```
|
||||
docker ps
|
||||
```
|
||||
|
||||
After getting the name or identifier type the following commands:
|
||||
```
|
||||
docker exec -it CONTAINER_NAME_OR_IDENTIFIER bash
|
||||
cd /opt/ail
|
||||
```
|
||||
|
||||
Starting AIL web interface
|
||||
--------------------------
|
||||
|
|
|
@ -48,7 +48,7 @@ wget http://omnipotent.net/jquery.sparkline/2.1.2/jquery.sparkline.min.js -O ./s
|
|||
mkdir temp
|
||||
wget http://canvasjs.com/fdm/chart/ -O temp/canvasjs.zip
|
||||
unzip temp/canvasjs.zip -d temp/
|
||||
mv temp/jquery.canvasjs.min.js ./static/js/jquery.canvasjs.min.js
|
||||
mv temp/canvasjs-1.9.10-stable/jquery.canvasjs.min.js ./static/js/jquery.canvasjs.min.js
|
||||
|
||||
wget https://jqueryui.com/resources/download/jquery-ui-1.12.0.zip -O temp/jquery-ui.zip
|
||||
unzip temp/jquery-ui.zip -d temp/
|
||||
|
|
Loading…
Reference in New Issue