I used the official docker image provided by Akamai in my Jenkins jobs, but:
- downloading the 1.6G docker image takes too much time
- as big as this image is, it does not even include the api-gateway plugin that I needed
- finally, it is unexpectedly slow to start
So this repo aims to provide smaller and faster images available on docker hub based on Alpine Linux and using the last available release of Akamai CLI.
First create your ~/.edgerc
file with your api keys.
Then run:
akamai() { docker run --rm -i $([ -t 0 ] && echo -t) -v "$PWD:$PWD" -w "$PWD" -v $HOME/.edgerc:/root/.edgerc "tophfr/akamai:${1:-all}" "${@:2}"; }
akamai purge invalidate --help
akamai api-gateway list-endpoints
akamai pl lc
akamai cps list
...
- fixing permissions on linux (ok with Docker for Mac)