Understanding best practices as key success in applying and training the DevOps experience. We collected and shared our best practices to anyone to explore the DevOps journey

Support use library on local

Best Practice 1

+Maven with Eclipse

1. Install Eclipse
  • Setup by Setup Wizard.

Install Maven into Eclipse as a Plugin

Go to Eclipse  → Select Help Menu  → Select Install New Software

Figure 2.1. Select plugin settings

Figure 2.2. In the window, select Add.

On the Add Repository window , enter the following information:

Figure 2.3. Enter the repository parameter.

Figure 2.4. select maven packages. Select OK.

Figure 2.5. Setting.

You have successfully installed Maven into eclipse, restarting Eclipse.

2. Configure the Local Maven Repository Server pointer  :
2.1. By default, Maven will transfer to the Internet to repo outside the internet such as:

Since downloading the Java source code package requires Internet access, we need to do  step 2.2 to use the Local Server.

Since downloading the Java source code package requires Internet access, we need to do  step 2.2 to use the Local Server.

2.2 Repository Configuration:

On the  Eclipse  select  Window → Reference …

Figure 2.2.1 Select preferences configuration.

  • Open the Maven configuration section:

  • In User Setting → Select Browser to the folder containing settings.xml file.

Figure 2.2.3. Select Browser to open the Maven configuration file.

  • Open xmlconfiguration file .
    • If this file is not available then you can create a new one.
    • In the mirror urls tag,  change the URL information  to the local repository library  for each site:
Registry Commands
URL Hanoi
URL Da Nang
Ho Chi Minh URL
  • Sample Config File:
<settings xmlns = ” http://maven.apache.org/SETTINGS/1.0.0 “
xmlns: xsi = ” http://www.w3.org/2001/XMLSchema-instance “
xsi: schemaLocation = ” http: / /maven.apache.org/SETTINGS/1.0.0
https://maven.apache.org/xsd/settings-1.0.0.xsd “>
<id> Fsoft-Maven </ id>
< name> Local maven repository </ name>
<url> http://dn-repo.fsoft.com/en/repository/maven/ </ url>
<mirrorOf> * </ mirrorOf>
</ mirror>
</ mirror >
</ settings>
  • Sample photo capture:

Figure 2.2.4. Delete the public repo, switch to the repo Unix-repo

Here the installation of Maven for Eclipse is complete.

3. Build Project:
  • Open the project file or create a new one:
    • Menu Creates New Project

Figure 3.1. Create new project

Figure 3.2. Choose Maven Project

Figure 3.3. Select sample project.

Figure 3.4 Complete, start downloading the package.

Picture 3.5. Enter Group ID and Name Artifact Id.

  • Click Finish to create a new project:

Figure 3.6. New project just created.

  • Install the project.

Figure 3.7. Right-click on Project and select Run → Select Maven Install.

  • Make build successful.

Figure 3.8. Build successful.

Best Practice 2

Maven | With Gradle Tools

This guide configures the gradle to integrate on the command line, Android Studio, or Eclipse.

 Configuring Gradle Tool to download Binary Gradle
  • By default Gradle will connect to the internet to services.gradle.org to download.

Form. Error while configuring local pointers.

Configuration steps
  • Open the folder containing the project
  • Go to the  gradle → Wrapper subdirectory Edit file with Notepad ++.
  • Change domain:  gradle.org
  • to local domain




  • It will look like this:

Form. File after complete configuration.

  • Go to the root directory of the android project.
  • Open the gradle configuration file
  • Revision content:
    • Delete the default repository.
    • Change to repo local as shown in the figure. (Note to edit both Buildscript tags → repositories  and  allprojects → Repositories ):
    • allprojects → Repositories:If you do not edit this, then you will get an error
    • when you build the childproject

Table. Maven repository changes configuration by domain:aven { url “https://xxx/repository/maven/” }


Current Maven repo includes the following libraries:




Best Practice 3

NPM & NodeJs

1. Install Node.js & npm
  • Setup by Setup Wizard.
  • To check the settings, go to  CMD/  Terminal , type test command:

npm — v

Figure 1.1 Test command to know the installed version

2. Configure the Local NPM Repository Server:
                   2.1. By default NPM will transfer to the internet to the repo outside the internet as:
    • https://github.com/npm
    • https://github.com
    • https://registry.npmjs.com
    • The NPM manager automatically detects the location of the source package on these repositories. Since downloading source code requires Internet, we need to do  step 2.2

      2.2 Configure the Local NPM Repository:
        • In  CMD / terminial, execute the command corresponding to the site you are working on, for example

      npm config set registry  https://xxx/repository/npm/

    • npm config set sass_binary_site = http://xxx/repository/github/sass/node-sass/releases/download/

    • npm config set phantomjs_cdnurl = http: //xxx/en/repository/github/Medium/phantomjs/releases/download/v2.1.1/

    • npm config set chromedriver_cdnurl = http: //xxxxrepository/npm-chromedriver/

    • npm config set electron_mirror = https://xxxx/repository/npm-electron/

    • npm configset strict-ssl= false npmcleancache–force


Figure 2.2.1. Performs internal library registry

3. Install a test package npm javascripts:
  • For example, you need to install the mailpackage  , just type the command:


npm  install mail

  • If the configuration is not correct, the message will be displayed:

Figure 3.1. Still pointing to  npmjs.org . If error then re-configure the repository step

  • The following is OK:

Figure 3.2. Successfully installed 2 packages.



  • Normally NodeJS module / Upgrade will need Internet connection to  org. This command will help to redirect the internet to the local  server.
  • If the connection to the internet but not successful will encounter error


 4.1. Error and how to dress:

node-pre-gyp  WARN Using needle for node-pre-gyp https download

node-pre-GYP  WARN Pre-built binaries for bcrypt@1.0.3 and node@8.9.3 not setting (falling back to source compile with node-GYP)

node-pre-gyp WARN Hit error hang up

gyp  ERR ! stack Error: connect ETIMEDOUT

gyp  ERR ! stack at TCPConnectWrap.afterConnect [as oncomplete] (net.js: 1182: 14)

gyp  ERR ! “/usr/local/lib/node_modules/node-gyp/bin/node-gyp.js” “configure” “–fallback-to-build” “/ usr / local / bin / node”

gyp  ERR ! cwd / home / xxx / node_modules / bcrypt


  • Implementation, by adding the operating system environment variable value:

NODEJS_ORG_MIRROR = https: // xxx/repository/npm-nodejs/


4.2 Configurations on Windows:
  • CMD (Run admin rights) → Type command:
  • Or maybe add to the Windows environment variable.
4.3 Configuration on Linux:

At the Terminal type: NODEJS_ORG_MIRROR = https://xxx/new/repository/npm-nodejs/ export NODEJS_ORG_MIRROR

4 thoughts to “Best Practice of DevOps

  • www.vintagehouserestaurant.com

    I am in fact thankful to the owner of this web page who has
    shared this fantastic paragraph at at this place.

  • Jimmy

    I am sure this post has touched all the internet visitors, its really really nice piece of writing on building up new web site.
    I have been surfing on-line more than three hours today,
    but I by no means found any attention-grabbing article like yours.
    It’s lovely value enough for me. In my view,
    if all web owners and bloggers made good content as you did, the internet might be
    much more helpful than ever before. It’s the best time to make some
    plans for the future and it’s time to be happy. I have read
    this post and if I could I desire to suggest you some interesting things or tips.

    Perhaps you could write next articles referring to this article.

    I desire to read more things about it! http://foxnews.co.uk

  • ankara escort

    I believe this is one of the so much vital information for me.
    And i’m happy reading your article. But want to remark on some general issues,
    The site taste is ideal, the articles is truly nice
    : D. Good activity, cheers

  • ankara escort

    Do you mind if I quote a couple of your articles as long
    as I provide credit and sources back to your weblog?
    My blog site is in the very same niche as yours and my users would really
    benefit from some of the information you present here. Please let
    me know if this okay with you. Thanks!


Leave a comment

Your email address will not be published. Required fields are marked *