This guide explains how to deploy Aether using Docker for easier deployment and environment consistency.
- Docker Engine installed on your server
- Docker Compose installed on your server
- Access to an OpenStack environment with admin privileges (for data collection)
- Clone the repository:
git clone https://github.com/Pepryan/openstack-resource.git aether
cd aether- Build and start the Docker container:
docker-compose up -d- Access the application at
http://your-server-ip:5005
The Docker setup includes:
- Dockerfile: Defines the container image with all dependencies
- docker-compose.yml: Configures the application service with volumes and networking
- docker-entrypoint.sh: Initializes the container environment
- docker-data-collector.sh: Collects data from OpenStack and transfers it to the container
When using Docker, the data collection process is slightly different:
- On your OpenStack server, run the data collection script:
# Make the script executable
chmod +x docker-data-collector.sh
# Run the script
./docker-data-collector.sh- The script will:
- Collect data from OpenStack using the standard collection scripts
- Transfer the data directly to the Docker container
- No need to manually restart the application
# View application logs
docker logs openstack-resource
# Follow logs in real-time
docker logs -f openstack-resource# Restart the container
docker-compose restart# Pull the latest changes
git pull
# Rebuild and restart the container
docker-compose up -d --buildThe Docker setup uses volumes to persist data:
- ./data:/app/data: Stores all data files
- ./static/results:/app/static/results: Stores generated charts and visualizations
Check the Docker logs:
docker logs openstack-resourceVerify the volumes are properly mounted:
docker inspect openstack-resourceIf the data collection script fails:
- Check if the container is running:
docker ps | grep openstack-resource-
Verify the container name in the script matches your actual container name
-
Try running the data collection manually:
# Copy a file directly to the container
docker cp data/aio.csv openstack-resource:/app/data/If you encounter permission issues:
# Fix permissions on the host
chmod -R 755 data
chmod -R 755 static/results
# Restart the container
docker-compose restart