Skip to content
This repository was archived by the owner on Jul 2, 2024. It is now read-only.

Customer notes | exDee

Sebastian Probst Eide edited this page Nov 22, 2017 · 1 revision

Installation

They have two servers:

Both VMs hosted on Azure. Postgres for air is a managed Azure service.

Configs are stored in /aircloak/{air, cloak}/config/ respectively. Both servers have a script in the /aircloak folder to upgrade the system: /aircloak/upgrade-{air,cloak}.sh.

All commands need to be prefixed with sudo as nothing works otherwise.

Notes:

  • 17nd of October: installed upgrade scripts and set up cron for automatic daily upgrades. But cron doesn't run so the scripts need to be manually invoked.

Installation scripts

The upgrade scripts were written by @sebastian and as of the 22nd of November 2017 are:

upgrade-cloak.sh:

#!/usr/bin/env bash

# Update script written in collaboration with Aircloak
# - 2017-10-17: Initial version of the script written

set -e

echo "Upgrading Aircloak Insights - Cloak"
echo "... getting latest version"
docker pull quay.io/aircloak/nightly_cloak:latest

echo
echo "... stopping container"
docker stop cloak

echo
echo "... removing previous version"
docker rm cloak

echo
echo "... starting new version"
docker run -d --name cloak \
  -v /aircloak/cloak/config:/runtime_config \
  --restart=unless-stopped \
  quay.io/aircloak/nightly_cloak:latest

echo
echo "Upgrade complete."

upgrade-air.sh:

#!/usr/bin/env bash

# Update script written in collaboration with Aircloak
# - 2017-10-17: Initial version of the script written

set -e

echo "Upgrading Aircloak Insights - Air"
echo "... getting latest version"
docker pull quay.io/aircloak/nightly_air:latest

echo
echo "... stopping container"
docker stop air

echo
echo "... removing previous version"
docker rm air

echo
echo "... starting new version"
docker run -d --name air \
  -v /aircloak/air/config:/runtime_config \
  -p 8080:8080 \
  -p 8443:8443 \
  -p 8432:8432 \
  -p 8081:8081 \
  --restart=unless-stopped \
  quay.io/aircloak/nightly_air:latest

echo
echo "Upgrade complete."
Clone this wiki locally