Skip to content

Commit

Permalink
Update Dockerfile commands
Browse files Browse the repository at this point in the history
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: moby/moby#6119
  • Loading branch information
Rafael Benevides committed Feb 6, 2015
1 parent bef48f3 commit 04f2747
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions readme.md
Expand Up @@ -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
Expand Down

0 comments on commit 04f2747

Please sign in to comment.