Skip to content

Commit

Permalink
fixed access to use ESRF profile
Browse files Browse the repository at this point in the history
  • Loading branch information
drnasmith committed Aug 21, 2018
1 parent 548ad38 commit f013730
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
11 changes: 10 additions & 1 deletion README
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,20 @@ Once deployed you will need to login to the VM (vagrant ssh) and build the softw

If all goes well the depdendencies will be created for the vagrant user. If not go to /opt/ispyb/dependencies and run 'mvn initialize'.

Suggest initially using the ESRF profile (the active profile is defined in ~/.m2/settings.xml).
In ispyb-ejb/pom.xml, change the authentication type to SIMPLE to get started (this uses the roles and users properties files).
There are two users defined 'guest' and 'boaty'.
You can add your own profile but it will need code changes to work properly.

To build go to /opt/ispyb and run 'mvn package'. This builds the web services, database layer and the ui all bundled into an ear.

## Deploy to Wildfly
cp /opt/ispyb/ispyb-ear/target/ispyb.ear /opt/wildfly-10.1.0.Final/standalone/deployments

Then run the wildfly server (the bind makes sure it runs on the external ip address):
cd /opt/wildfly-10.1.0/
./bin/standalone.sh -Djboss.bind.address=192.168.30.11
./bin/standalone.sh -Djboss.bind.address=192.168.30.11

On your host access ISPyB UI through http://192.168.30.11:8080

you should be able to login however until there is test data in the database your access will be limited.
2 changes: 1 addition & 1 deletion playbooks/roles/webserver/files/settings.xml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ under the License.
| List of profiles that are active for all builds.
| -->
<activeProfiles>
<activeProfile>DLS</activeProfile>
<activeProfile>ESRF</activeProfile>
</activeProfiles>

</settings>

0 comments on commit f013730

Please sign in to comment.