Skip to content

Commit

Permalink
Added Docker info to README, fixed image build
Browse files Browse the repository at this point in the history
  • Loading branch information
oskopek committed Sep 27, 2014
1 parent 8fa5bc4 commit a84eaa0
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 2 deletions.
13 changes: 11 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
FROM jboss/wildfly

MAINTAINER Ondrej Skopek "https://github.com/oskopek"

ADD docker/org /opt/wildfly/modules/org/
ADD deployments/ROOT.war /opt/wildfly/standalone/deployments/
ADD docker/add-datasource.sh /opt/wildfly/bin/
RUN /opt/wildfly/bin/add-datasource.sh

ADD docker/add-security-domain.sh /opt/wildfly/bin/
ADD docker/add-mysql-datasource.sh /opt/wildfly/bin/

RUN /opt/wildfly/bin/add-mysql-datasource.sh
RUN /opt/wildfly/bin/add-security-domain.sh

EXPOSE 8080
9 changes: 9 additions & 0 deletions README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,15 @@ link:./docs/howto-setup-environment-windows.adoc[Windows], link:./docs/howto-set
* To *clean*, run: +mvn clean+
* Run a simple link:./docs/core/core-usage.adoc[carcv-core demo]

=== Docker
CarCV is also available as a https://registry.hub.docker.com/u/oskopek/carcv-webapp/[Docker image]:

```
docker pull oskopek/carcv-webapp
docker run -d --name=mariadb fedora/mariadb
docker run -it --rm --link mariadb:mariadb -p 8080:8080 oskopek/carcv-webapp
```

=== Getting help

* Post questions or comments on our Google Groups link:https://groups.google.com/d/forum/carcv[mailing list]
Expand Down
File renamed without changes.
26 changes: 26 additions & 0 deletions docker/add-security-domain.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
#!/usr/bin/augtool -LAsf

#<security-domain name="carcv" cache-type="default">
# <authentication>
# <login-module code="UsersRoles" flag="required">
# <module-option name="usersProperties" value="users.properties" />
# <module-option name="rolesProperties" value="roles.properties" />
# </login-module>
# </authentication>
#</security-domain>

set /augeas/load/Xml/lens Xml.lns
set /augeas/load/Xml/incl[2] /opt/wildfly/standalone/configuration/standalone.xml
load
defvar subsystem "/files/opt/wildfly/standalone/configuration/standalone.xml/server/profile/subsystem[#attribute/xmlns='urn:jboss:domain:security:1.2']"
set $subsystem/security-domains/security-domain[last()+1]/#attribute/name "carcv"
defvar sd $subsystem/security-domains/security-domain[last()]
set $sd/authentication/login-module/#attribute/code "UsersRoles"
set $sd/authentication/login-module/#attribute/flag "required"
set $sd/authentication/login-module/module-option[last()+1]/#attribute/name "usersProperties"
set $sd/authentication/login-module/module-option[last()]/#attribute/value "users.properties"
set $sd/authentication/login-module/module-option[last()+1]/#attribute/name "rolesProperties"
set $sd/authentication/login-module/module-option[last()]/#attribute/value "roles.properties"
save

print /augeas//error

0 comments on commit a84eaa0

Please sign in to comment.