mirror of
https://github.com/ail-project/ail-framework.git
synced 2024-11-22 22:27:17 +00:00
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:
parent
a41c5d55c5
commit
6b43d2a067
2 changed files with 9 additions and 6 deletions
|
@ -7,15 +7,17 @@ RUN mkdir /opt/AIL && apt-get update -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
|
||||
# Installing AIL dependencies
|
||||
ADD . /opt/AIL
|
||||
WORKDIR /opt/AIL
|
||||
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
|
||||
RUN ./update_thirdparty.sh
|
||||
|
||||
WORKDIR /opt/AIL
|
||||
|
||||
CMD bash docker_start.sh
|
||||
|
|
|
@ -60,18 +60,18 @@ apt-get install -y curl
|
|||
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
|
||||
cd 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
|
||||
```
|
||||
|
||||
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
|
||||
```
|
||||
|
@ -82,6 +82,7 @@ docker exec -it CONTAINER_NAME_OR_IDENTIFIER bash
|
|||
cd /opt/ail
|
||||
```
|
||||
|
||||
|
||||
Starting AIL web interface
|
||||
--------------------------
|
||||
|
||||
|
|
Loading…
Reference in a new issue