Hi all,

Apologies for keeping this one running, but I'm still thinking about this 
subject. My gut feeling is that I don't want to run a Maven build on a live 
server, for two reasons...


1. Java has always claimed to be a 'Build once, run anywhere' language. So I 
want to build and test elsewhere, then deploy the tested app.

2. I instinctively don't like having development tools on a live server, it 
feels like a dodgy thing to do, although I would struggle to justify that 
statement.


At the moment we only copy the target build directory to our live server, and 
then run 'ant update...' on the live server. But even that feels a bit hacky.


At this point I should stop talking and read up on Tim's Commons Configuration 
work.


Cheers.


Robin Taylor
Main Library
University of Edinburgh


________________________________
From: Tim Donohue <tdono...@duraspace.org>
Sent: 17 August 2015 15:10
To: dspace-devel@lists.sourceforge.net
Subject: Re: [Dspace-devel] DSpace deployment methods

Hi Robin,

I am working to disentangle configuration from Maven & Ant builds in the 
Commons Configuration work (aimed for 6.0).  Once we switch to Commons 
Configuration, we should be able to simply remove all our custom config 
variable interpolation "magic" that Maven & Ant does.  Commons Configuration 
does interpolation on-the-fly, which means Maven and Ant should no longer need 
to touch any of our configs (thought Ant will still need a dspace.dir to 
install to obviously).

See https://github.com/DSpace/DSpace/pull/991 and 
https://jira.duraspace.org/browse/DS-2654 for a bit more info.

- Tim

On 8/17/2015 5:07 AM, TAYLOR Robin wrote:

Hi Terry,


That's really useful, thanks. The main problem for me is that configuration is 
so entwined with both the Maven build and the Ant installation, it makes it 
difficult to find a process that avoids having to do a Maven build on a live 
server, and hack various bits of configuration specific to that server. Sigh 
[??]


Cheers, Robin.


Robin Taylor
Main Library
University of Edinburgh


________________________________
From: Terry Brady 
<terry.br...@georgetown.edu><mailto:terry.br...@georgetown.edu>
Sent: 14 August 2015 23:40
To: TAYLOR Robin
Cc: DSpace Developers
Subject: Re: [Dspace-devel] DSpace deployment methods

Robin,

I have been happy with the process that has evolved for us over time.

Since our repository code is private, we have cloned our github repository on 
our server using an access token.

We have a build folder on each of our servers.  That folder contains a script 
that runs the following steps.

git fetch origin
git checkout ${BRANCH} -f
git pull
mvn clean package
cd dspace/target/dspace-build
ant update
#insert domain specific passwords/overrides into config files using sed
#restart webserver

When "build.properties"  was first introduced, it did not allow us to override 
what we needed to override.  I have not revisited that file to see if it could 
further simplify our build process.

On Thu, Aug 13, 2015 at 7:55 AM, TAYLOR Robin 
<robin.tay...@ed.ac.uk<mailto:robin.tay...@ed.ac.uk>> wrote:
Hi all,

I notice there was a brief discussion about DSpace deployment methods yesterday 
in the developer meeting. I would be very interested to hear what others do, 
what sort of tools they use, what sort of infrastructure they have etc. If 
anyone is willing to share please do reply. For our part we are still stuck in 
a world of 'scp' and shell scripts, so could benefit greatly from a bit of 
modernisation :)

Many thanks, Robin.

Robin Taylor
Main Library
University of Edinburgh
--
The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.


------------------------------------------------------------------------------
_______________________________________________
Dspace-devel mailing list
Dspace-devel@lists.sourceforge.net<mailto:Dspace-devel@lists.sourceforge.net>
https://lists.sourceforge.net/lists/listinfo/dspace-devel



--
Terry Brady
Applications Programmer Analyst
Georgetown University Library Information Technology
https://www.library.georgetown.edu/lit/code
425-298-5498 (Seattle, WA)



The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.




------------------------------------------------------------------------------




_______________________________________________
Dspace-devel mailing list
Dspace-devel@lists.sourceforge.net<mailto:Dspace-devel@lists.sourceforge.net>
https://lists.sourceforge.net/lists/listinfo/dspace-devel


------------------------------------------------------------------------------
_______________________________________________
Dspace-devel mailing list
Dspace-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-devel

Reply via email to