Redhat 7 atomic with dependencies of glusterfs client and Node.js 6
211
--------------- HOW TO BUILD --------------------------------------------------
In order to reduce the number of docker layers we are using curl instead of copy to add files into docker.
You need an HTTP server with the files you want to copy using curl.
The curl IP cannot be localhost, use the real machine IP
There are many tutorials on how to create an HTTP server:
https://devops.profitbricks.com/tutorials/how-to-set-up-apache-web-server-on-centos-7/
--------------- BUILDING WITH ARGUMENTS ---------------------------------------
This Dockerfile will accept the following arguments:
The name of the image must end with '-node'.
Example:
docker build --build-arg CURL_HOST=20.1.67.21 --build-arg NODE_VERSION=node-v6.11.0-linux-x64 -t nova/rhel7-atomic-glusterc-node6:1.0.0 .
A image must be created for each supporte Node.js. They will be called:
--------------- CREATE HTTP SERVER --------------------------------------------
Instruction (centos and redhat):
sudo yum install httpd -y
sudo vi /etc/selinux/config
sudo firewall-cmd --permanent --add-port=80/tcp sudo firewall-cmd --permanent --add-port=443/tcp sudo firewall-cmd --reload
sudo systemctl start httpd
cp node-v6.11.0-linux-x64.tar /var/www/html
sudo systemctl stop httpd
Content type
Image
Digest
Size
51.7 MB
Last updated
over 9 years ago
docker pull bbvacib/rhel7-atomic-glusterc-node6:1.0.0