Skip to content

Commit

Permalink
Adding dockerfile, docker ignore
Browse files Browse the repository at this point in the history
  • Loading branch information
Hunter, Kirsten committed May 24, 2017
1 parent 47c0b22 commit 14cfc94
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 2 deletions.
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules
14 changes: 14 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
FROM node:4-onbuild
MAINTAINER Kirsten Hunter ([email protected])
RUN apt-get update
RUN apt-get install -y curl patch gawk g++ gcc make libc6-dev patch libreadline6-dev zlib1g-dev libssl-dev libyaml-dev autoconf libgdbm-dev libncurses5-dev automake libtool bison pkg-config libffi-dev
RUN apt-get install -y -q libssl-dev python-all wget vim
ADD . /opt
RUN npm install
RUN npm install -g n; n 5.0.0
RUN git clone https://github.com/akamai-open/api-kickstart
RUN git clone https://github.com/stedolan/jq.git
RUN cd jq
RUN autoreconf -i
RUN ./configure --disable-maintainer-mode
RUN make install
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -206,4 +206,5 @@ The Akamai CLI is a new tool and as such we have made some design choices worth
* Edge Hostnames - if not specified, the system will select an edge hostname from the account to use. Watch the output to know what host to point your DNS at
* CPCodes - there is currently a fairly strict limitation on creation of CPCodes. To work around this, pass in a specific CPCode to use. Your account team can create a bunch of CPCodes which you could then use with your properties.
* Credentials - the tool expects your credentials to be stored under a 'papi' section in your ~/.edgerc file. If you are unfamiliar with the authentication and provisioning for OPEN APIs, see the "Get Started" section of https://developer.akamai.com
* Activations - there is currently an intermittent issue with activations not working. It should resolve after another try, and there is an existing internal issue to resolve this.
* Activations - there is currently an intermittent issue with activations not working. It should resolve after another try, and there is an existing internal issue to resolve this.
* Move - in order to perform move functions, the credentials must have both property manager and user admin grants.
2 changes: 1 addition & 1 deletion src/website.js
Original file line number Diff line number Diff line change
Expand Up @@ -1042,7 +1042,6 @@ class WebSite {
for (let entry of assetIds) {
if (entry.assetName == propertyName) {
assetId = entry.assetId;
break;
}
}

Expand All @@ -1067,6 +1066,7 @@ class WebSite {
if (!response) {
reject();
} else if (response.statusCode == 204) {
console.log("Successfully moved " + propertyName + " to group " + destGroup)
resolve();
} else if (response.statusCode >= 200 && response.statusCode <= 400) {
resolve(response.body);
Expand Down

0 comments on commit 14cfc94

Please sign in to comment.