HUB
Sign inSign up

bbvacib/rhel7-atomic-glusterc-node6

By bbvacib

•Updated over 9 years ago

Redhat 7 atomic with dependencies of glusterfs client and Node.js 6

Image
0

211

bbvacib/rhel7-atomic-glusterc-node6 repository overview

--------------- 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:

  • CURL_HOST: The IP of the host where the HTTP server is running on.
  • NODE_VERSION: The complete name of the Node.js version to be used

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:

  • rhel7-atomic-glusterc-node6
  • rhel7-atomic-glusterc-node7
  • rhel7-atomic-glusterc-node8

--------------- CREATE HTTP SERVER --------------------------------------------

Instruction (centos and redhat):

⁠Install http server

sudo yum install httpd -y

⁠Remove SeLinux, edit config and set SELINUX=disabled

sudo vi /etc/selinux/config

⁠Set the firewall

sudo firewall-cmd --permanent --add-port=80/tcp sudo firewall-cmd --permanent --add-port=443/tcp sudo firewall-cmd --reload

⁠Start the service

sudo systemctl start httpd

⁠Copy the files you want to be accesible in /var/www/html

⁠Example:

cp node-v6.11.0-linux-x64.tar /var/www/html

⁠When the image is build, stop the service.

sudo systemctl stop httpd

Tag summary

Content type

Image

Digest

Size

51.7 MB

Last updated

over 9 years ago

docker pull bbvacib/rhel7-atomic-glusterc-node6:1.0.0