Skip to content

Commit

Permalink
Merge pull request #152 from intelowlproject/develop
Browse files Browse the repository at this point in the history
use specific release tags on dockerhub instead of the generic 'latest' tag
  • Loading branch information
eshaan7 committed Aug 17, 2020
2 parents 635e827 + 3bf2eff commit 34ab99d
Show file tree
Hide file tree
Showing 14 changed files with 22 additions and 24 deletions.
2 changes: 2 additions & 0 deletions .env_template → .env
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
### the COMPOSE_FILE variable each seperated with ':'. If you are on windows, replace all ':' with ';'.
### Reference to Docker's official Docs: https://docs.docker.com/compose/reference/envvars/#compose_file#compose_file

INTELOWL_TAG_VERSION=v1.3.1

###### Default (Production) ######

COMPOSE_FILE=docker-compose.yml
Expand Down
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ test_files
env_file_app
env_file_postgres
env_file_integrations
.env
venv/
settings/ldap_config.py
docker-compose-override.yml
2 changes: 1 addition & 1 deletion Dockerfile_nginx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Stage 1: Get build artifacts from intelowl-ng
FROM intelowlproject/intelowl_ng:latest AS angular-prod-build
FROM intelowlproject/intelowl_ng:v1.3.0 AS angular-prod-build

# Stage 2: Inject the build artifacts into nginx container
FROM library/nginx:1.16.1-alpine
Expand Down
6 changes: 3 additions & 3 deletions docker-compose-with-traefik.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ services:
- ./env_file_postgres

uwsgi:
image: intelowlproject/intelowl:latest
image: intelowlproject/intelowl:${INTELOWL_TAG_VERSION}
container_name: intel_owl_uwsgi
volumes:
- ./configuration/intel_owl.ini:/etc/uwsgi/sites/intel_owl.ini
Expand Down Expand Up @@ -74,7 +74,7 @@ services:
container_name: intel_owl_rabbitmq

celery_beat:
image: intelowlproject/intelowl:latest
image: intelowlproject/intelowl:${INTELOWL_TAG_VERSION}
container_name: intel_owl_celery_beat
restart: unless-stopped
command: /usr/local/bin/celery -A intel_owl.celery beat --uid www-data --gid www-data --pidfile=/tmp/celerybeat.pid --schedule=/tmp/celerybeat-schedule
Expand All @@ -89,7 +89,7 @@ services:
- postgres

celery_worker:
image: intelowlproject/intelowl:latest
image: intelowlproject/intelowl:${INTELOWL_TAG_VERSION}
container_name: intel_owl_celery_worker
restart: unless-stopped
stop_grace_period: 3m
Expand Down
6 changes: 3 additions & 3 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ services:
- ./env_file_postgres

uwsgi:
image: intelowlproject/intelowl:latest
image: intelowlproject/intelowl:${INTELOWL_TAG_VERSION}
container_name: intel_owl_uwsgi
volumes:
- ./configuration/intel_owl.ini:/etc/uwsgi/sites/intel_owl.ini
Expand Down Expand Up @@ -49,7 +49,7 @@ services:
container_name: intel_owl_rabbitmq

celery_beat:
image: intelowlproject/intelowl:latest
image: intelowlproject/intelowl:${INTELOWL_TAG_VERSION}
container_name: intel_owl_celery_beat
restart: unless-stopped
command: /usr/local/bin/celery -A intel_owl.celery beat --uid www-data --gid www-data --pidfile=/tmp/celerybeat.pid --schedule=/tmp/celerybeat-schedule
Expand All @@ -64,7 +64,7 @@ services:
- postgres

celery_worker:
image: intelowlproject/intelowl:latest
image: intelowlproject/intelowl:${INTELOWL_TAG_VERSION}
container_name: intel_owl_celery_worker
restart: unless-stopped
stop_grace_period: 3m
Expand Down
3 changes: 1 addition & 2 deletions docs/source/Advanced-Usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,7 @@ table, th, td {
</tr>
</table>

In the project, you can find template files named `.env_template` and `.env_file_integrations_template`.
You have to create new files named `.env` and `env_file_integrations` from these two templates.
In the project, you can find template file `.env_file_integrations_template`. You have to create new file named `env_file_integrations` from this.

Docker services defined in the compose files added in `COMPOSE_FILE` variable present in the `.env` file are ran on `docker-compose up`. So, modify it to include only the analyzers you wish to use.
Such compose files are available under `integrations/`.
2 changes: 1 addition & 1 deletion docs/source/Contribute.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ which can be queried from the main Django API.
* The dockerfile should be placed at `./integrations/<analyzer_name>/Dockerfile`.
* A docker-compose file should be placed under `./integrations` with the name `docker-compose.<analyzer_name>.yml`
* If your docker-image uses any environment variables, add them in the [`env_file_integrations_template`](https://github.com/intelowlproject/IntelOwl/blob/develop/env_file_integrations_template)
* Ultimately, append the name of your docker-compose file in the `COMPOSE_FILE` variables specified in [`.env_template`](https://github.com/intelowlproject/IntelOwl/blob/develop/env_file_integrations_template). The reason for doing this is so that this service remains optional to the end-user.
* Ultimately, append the name of your docker-compose file in the `COMPOSE_FILE` variables specified in [`.env`](https://github.com/intelowlproject/IntelOwl/blob/develop/.env). The reason for doing this is so that this service remains optional to the end-user.
* Rest of the steps remain same as given under "How to add a new analyzer".

### Create a pull request
Expand Down
12 changes: 5 additions & 7 deletions docs/source/Installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ cp env_file_app_template env_file_app
# (optional) enable all docker-based analyzers
cp env_file_app_integrations_template env_file_app_integrations
cp .env_template .env
# in .env file comment line 10 and uncomment line 13
# in `.env` file comment line 12 and uncomment line 15
# start the app
docker-compose up -d
Expand Down Expand Up @@ -221,14 +220,13 @@ Then you can add other users directly from the Django Admin Interface after havi
To update the project with the most recent available code you have to follow these steps:

```bash
docker pull intelowlproject/intelowl_ng:latest -> updates the webclient
cd <your_intel_owl_directory> && git pull -> updates the project
docker-compose down && docker-compose up -d -> restart the IntelOwl application
cd <your_intel_owl_directory> && git pull -> updates the project
docker-compose down && docker-compose up --build -d -> restart the IntelOwl application
```

#### Updating to v1.3.0 from any prior version
#### Updating to >v1.3.x from any prior version

If you are updating to [v1.3.0](https://github.com/intelowlproject/IntelOwl/releases/tag/v1.3.0) from any prior version, you need to execute a helper script so that the old data present in the database doesn't break.
If you are updating to >[v1.3.0](https://github.com/intelowlproject/IntelOwl/releases/tag/v1.3.0) from any prior version, you need to execute a helper script so that the old data present in the database doesn't break.

1. Follow the above updation steps, once the docker containers are up and running execute the following in a new terminal

Expand Down
2 changes: 1 addition & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
author = "Matteo Lodi"

# The full version, including alpha/beta/rc tags
release = "1.3.0"
release = "1.3.1"


# -- General configuration ---------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion integrations/docker-compose.apk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ version: '3'

services:
apk_analyzers:
image: intelowlproject/intelowl_apk_analyzers
image: intelowlproject/intelowl_apk_analyzers:${INTELOWL_TAG_VERSION}
container_name: intelowl_apk_analyzers
restart: unless-stopped
expose:
Expand Down
2 changes: 1 addition & 1 deletion integrations/docker-compose.boxjs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ version: '3'

services:
boxjs:
image: intelowlproject/intelowl_boxjs
image: intelowlproject/intelowl_boxjs:${INTELOWL_TAG_VERSION}
container_name: intelowl_boxjs
restart: unless-stopped
expose:
Expand Down
2 changes: 1 addition & 1 deletion integrations/docker-compose.capa.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ version: '3'

services:
capa:
image: intelowlproject/intelowl_capa
image: intelowlproject/intelowl_capa:${INTELOWL_TAG_VERSION}
container_name: intelowl_capa
restart: unless-stopped
expose:
Expand Down
2 changes: 1 addition & 1 deletion integrations/docker-compose.peframe.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ version: '3'

services:
peframe:
image: intelowlproject/intelowl_peframe
image: intelowlproject/intelowl_peframe:${INTELOWL_TAG_VERSION}
container_name: intelowl_peframe
restart: unless-stopped
expose:
Expand Down
2 changes: 1 addition & 1 deletion integrations/docker-compose.thug.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ version: '3'

services:
thug:
image: intelowlproject/intelowl_thug
image: intelowlproject/intelowl_thug:${INTELOWL_TAG_VERSION}
container_name: intelowl_thug
restart: unless-stopped
expose:
Expand Down

0 comments on commit 34ab99d

Please sign in to comment.