From 04f2747198db115eebb8731a01e5c7e497cbec2a Mon Sep 17 00:00:00 2001 From: Rafael Benevides Date: Fri, 6 Feb 2015 14:38:37 -0500 Subject: [PATCH] Update Dockerfile commands I had permission issues with the centos image running on MacOS/Boot2Docker 1.4.1. It cause the javaee6angularjs.war to be copied using root ownership and 740 permission. That caused WildFly to throw a FileNotFoundException. The proposed changes fix that issue by placing the file under wildfly ownership. There's a docker issue opened about that issue: https://github.com/docker/docker/issues/6119 --- readme.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/readme.md b/readme.md index d6c291c..01cfb48 100644 --- a/readme.md +++ b/readme.md @@ -286,12 +286,13 @@ You can create the directory from within the boot2docker-vm with the following c ![Alt text](/screenshots/dockerfile_windows_explorer.png?raw=true "Windows Explorer Dockerfile") -3. Edit the newly created `Dockerfile` and add the following two lines: +3. Edit the newly created `Dockerfile` and add the following four lines: ```` FROM centos/wildfly - ADD javaee6angularjs.war /opt/wildfly/standalone/deployments/ + USER root + RUN chown wildfly:wildfly /opt/wildfly/standalone/deployments/javaee6angularjs.war ```` > The trailing "/" does matter