-
Get docker and docker-compose running on Amazon Linux 2: https://gist.github.com/npearce/6f3c7826c7499587f00957fee62f8ee9
-
git clone https://github.com/apache/incubator-openwhisk-devtools.git
-
cd incubator-openwhisk-devtools/docker-compose
-
make quick-start
UPDATE (March 2020, thanks @ic): I don't know the exact AMI version but yum install docker
now works on the latest Amazon Linux 2. The instructions below may still be relevant depending on the vintage AMI you are using.
Amazon changed the install in Linux 2. One no-longer using 'yum' See: https://aws.amazon.com/amazon-linux-2/release-notes/
sudo amazon-linux-extras install docker
sudo service docker start
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// using `type -d` and `type -f` to isolate | |
// Change all directories to 775, and ignore files | |
find /home/user -type d -exec chmod 775 {} \; | |
// Change all files to 664, and ignore directories | |
find /home/user -type f -exec chmod 664 {} \; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//NOTE: the source permissions need to be set appropriately, also. | |
// npm i --save targz | |
const targz = require('targz') | |
targz.compress({ | |
src: '/tmp/mydirectory', | |
dest: 'output/filename.tgz', | |
tar: { | |
dmode: 0775, // Directories: rwxrwxr-x |
Updated: August 21, 2018
NOTE: This setup is used as an exporter destination for BigStats: https://npearce.github.io
On the AWS Console:
- In 'Instances', click 'Luanch Instance'.
- Select 'Amazon Linux 2 AMI (HVM), SSD Volume Type'
Updated: August 21, 2018
NOTE: This setup is used as an exporter destination for BigStats: https://npearce.github.io
On the AWS Console:
- In 'Instances', click 'Luanch Instance'.
- Select 'Amazon Linux 2 AMI (HVM), SSD Volume Type'
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Apply the new, or modified, service definition to the BIG-IP | |
* @param {Object} service_def retireved from GitHub repo | |
* | |
* @returns {Object} AS3's declaration processing results | |
*/ | |
MyWorker.prototype.applyServiceDefinition = function (service_def) { | |
return new Promise((resolve, reject) => { |
NewerOlder