Skip to content

Instantly share code, notes, and snippets.

@cstamas
Last active February 23, 2016 15:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cstamas/871ae8582689fc302be9 to your computer and use it in GitHub Desktop.
Save cstamas/871ae8582689fc302be9 to your computer and use it in GitHub Desktop.
NX Docker testing
[cstamas@Slartibartfast ssl]$ keytool -keystore keystore.jks -alias jetty -genkey -keyalg RSA -ext san=ip:192.168.5.82                       
Enter keystore password:  
Re-enter new password: 
What is your first and last name?
  [Unknown]:  localhost
What is the name of your organizational unit?
  [Unknown]:  HQ
What is the name of your organization?
  [Unknown]:  Flat White Ltd
What is the name of your City or Locality?
  [Unknown]:  Szeged
What is the name of your State or Province?
  [Unknown]:  Csongrad
What is the two-letter country code for this unit?
  [Unknown]:  HU
Is CN=localhost, OU=HQ, O=Flat White Ltd, L=Szeged, ST=Csongrad, C=HU correct?
  [no]:  yes

Enter key password for <jetty>
	(RETURN if same as keystore password):  
[cstamas@Slartibartfast ssl]$ 
docker-machine create -d virtualbox \
    --engine-env HTTP_PROXY=http://192.168.5.82:8888 \
    --engine-env HTTPS_PROXY=https://192.168.5.82:8888 \
    --engine-env NO_PROXY=.docker.io,.cloudfront.net \
    --engine-opt disable-legacy-registry \
    --tls-san 192.168.5.82,localhost \
    --engine-insecure-registry 192.168.5.82:18082 \
    --engine-insecure-registry 192.168.5.82:18079 \
    --engine-insecure-registry 192.168.5.82:18075 \
    default

With DNS

  1. create DNS entry `nx3.docker.com' that points to IP whenre your test NX3 runs
  2. use command:
docker-machine create -d virtualbox \
    --engine-opt disable-legacy-registry \
    default
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment