aws / amazon-ecs-init

Amazon Elastic Container Service RPM
http://aws.amazon.com/ecs
Apache License 2.0
199 stars 118 forks source link

fix: make work with ubuntu core strict snap #427

Closed stuart-warren closed 2 years ago

stuart-warren commented 3 years ago

Summary

Permits the binary to work within a strictly confined snap

ref: aws/containers-roadmap#1487

Implementation details

add build flag ubuntucore

use DirectoryPrefix in more places

add DockerDirectoryPrefix

add HomeDirectory due to snaps having a different structure

only mount host directories that exist due to read only filesystem

Testing

New tests cover the changes: no

Description for the changelog

Feature: enable functionality within a strictly confined snap

Licensing

This contribution is under the terms of the Apache 2.0 License: yes