-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Use Dockerfile file paths when using Sync #1581
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
+1 ref #1166 |
Hi,
Have you got a file called azurewebsites.jks? I think the default in OL the
file is called key.jks. does it work if you swap azurewebsites.jks for
key.jks in the keytool command?
Cheers
…On Sat, 27 Apr 2019, 21:43 ketaanhshah, ***@***.***> wrote:
Hey guys, I am building a Docker container with Open Liberty and I used
the following in my DockerFile to copy the Azure Cert for HTTPS.
Add the Azure Certificate for Redis to enable HTTPS connection.
COPY azurewebsites.cer /opt/ol/wlp/output/defaultServer/resources/security/
WORKDIR /opt/ol/wlp/output/defaultServer/resources/security/
RUN keytool -noprompt -importcert -file azurewebsites.cer -alias
azureazurewebsites -keystore azurewebsites.jks -storepass Liberty
-storetype jks
but I am getting this error:-
Step 6/6 : RUN keytool -noprompt -importcert -file azurewebsites.cer
-alias azurewebsites -keystore azurewebsites.jks -storepass Liberty
-storetype jks
---> Running in 8acb3a438510
Certificate was added to keystore
keytool error (likely untranslated): java.io.FileNotFoundException:
azurewebsites.jks (Permission denied)
The command '/bin/sh -c keytool -noprompt -importc
Anyone know how I can fix this error so I can generate my docker.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#1581 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AA2SGTVMVJSEATG263VOL6TPSS3ILANCNFSM4GTZOT5Q>
.
|
Thank you Alex, No I only downloaded the Azurewebsites.cer (as Base64) from browser and then thought running the following should help me generate the .jks file and I thought I can give it a name Azurewebsites.jsk. Am I doing something completely wrong here? I am trying to generate an Open Liberty Docker container and using it in Azure web-app and whcih has to talk to another Azure web api (https) and it is failing currently with error of (ROR ] CWPKI0022E: SSL HANDSHAKE FAILURE: A signer with SubjectDN CN=*.azurewebsites.net was sent from the target host. The signer might need to be added to local trust store /opt/ol/wlp/output/defaultServer/resources/security/key.p12). While searching all places I came across your post and I thought this was it how I can import the Azurewebsites cer to my docker container I am building for OL. |
hey Alex, |
Great, glad it worked!
Just in case it helps and as this doesn't really have anything to do with
Skaffold, you'd probably be best asking questions on either the Openliberty
Google Group or their Stackoverflow: https://openliberty.io/support/
Cheers
…On Sat, 27 Apr 2019 at 23:00, ketaanhshah ***@***.***> wrote:
hey Alex,
I think that was it I had to use key.jks and it resolved my issue, Thank
you !
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#1581 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AA2SGTQCX5OP32PZYFPLOW3PSTEHBANCNFSM4GTZOT5Q>
.
|
Thank you Alex, your POST above was GREAT HELP to me! I will make sure to post questions on appropriate forums but your DOCKER FILE post above helped me tons! Have a great weekend! |
@alewis001 this is be fixed now with #2088 and #1812 Can you please verify? |
Sure, I will attempt to verify this as soon as I can. |
Desired Behavior
Files matching the sync pattern are copied to their locations as defined in the Dockerfile.
E.g.
Dockerfile
:In my particular case, as OpenLiberty supports dynamic updates of the
server.xml
and any wars deployed to it, I believe it would be useful to have the sync feature be able to copy those files to the active container based on their location as specified in the Dockerfile rather than having to duplicate the "config" in two places.I'm able to get the functionality I'm looking for with Skaffold 0.22.0 but I currently need to:
WORKDIR /
at the end of the file.skaffold.yaml
to be the same paths as defined in the Dockerfile.The text was updated successfully, but these errors were encountered: