JiscMail Logo
Email discussion lists for the UK Education and Research communities

Help for SYNERBI-DEVEL Archives


SYNERBI-DEVEL Archives

SYNERBI-DEVEL Archives


SYNERBI-DEVEL@JISCMAIL.AC.UK


View:

Message:

[

First

|

Previous

|

Next

|

Last

]

By Topic:

[

First

|

Previous

|

Next

|

Last

]

By Author:

[

First

|

Previous

|

Next

|

Last

]

Font:

Proportional Font

LISTSERV Archives

LISTSERV Archives

SYNERBI-DEVEL Home

SYNERBI-DEVEL Home

SYNERBI-DEVEL  December 2016

SYNERBI-DEVEL December 2016

Options

Subscribe or Unsubscribe

Subscribe or Unsubscribe

Log In

Log In

Get Password

Get Password

Subject:

Re: CCPPETMR_VM

From:

David Volgyes <[log in to unmask]>

Reply-To:

David Volgyes <[log in to unmask]>

Date:

Fri, 9 Dec 2016 08:56:21 +0100

Content-Type:

text/plain

Parts/Attachments:

Parts/Attachments

text/plain (167 lines)

Hi,

One argument for docker images (next to speed): they can be
automatically generated when a git repository gets a new commit.
With proper commiting policy (e.g. developments in branches, master
branch is always the latest recommended version),
this could work quite well.
However, if the development is distributed in several git
repositories, then this workflow does not work properly.
What you can do is this: create a git repository for your docker
recipe, and manually trigger image building, when it is necessary.

I highly recommend a unified script, where both the VM and the docker
code compilation is made from the same script.
(Or two scripts: setting up the bare minimum VM/Docker environment,
and a unified for the git checkout, compilation, etc.)
(I also recommend the same base operating system for the VM and for
the docker image, e.g. Ubuntu LTS or Fedora, etc.)

Update script(s), etc.: in my opinion, it is best to keep it in a
version control system (git), and updating it is just a git update.
The actual update could be just a shell alias, e.g.
alias update="git checkout repository && repository/update_vm.sh "
or
alias update="sudo apt-get update && sudo apt-get dist-upgrade && git
checkout repository && repository/update_vm.sh "

I would add a shell message, like at the end of the .bashrc (.zshrc, whatever):
echo "To update this image/VM/... please use this command: update"

In my opinion, the initial setup is one of the most important barrier
for the end users, and it takes the most time
as "customer support". So in the beginning of the development it might
be a bit complicated to get the most streamlined workflow,
but on longer term it is worth the effort.

Best,
  David



On Fri, Dec 9, 2016 at 8:18 AM, Thielemans, Kris <[log in to unmask]> wrote:
>
>
> Hi Christoph
>
>
>
> I’ve just downloaded the VM again and started from scratch. ‘update_VM.sh’
> worked for me, as suggested by Evgueni. You probably got confused by the
> scripts in the home directory, which shouldn’t have been there.
>
>
>
> Kris
>
>
>
> PS: the reason for the 2 scripts is that update_VM.sh get a new version of
> UPDATE.sh, which actually does the work. This way, we can modify UPDATE.sh
> as necessary after people have downloaded the VM.
>
>
>
> PS: first time, update_VM.sh will take a long time now, as it needs to get
> and build updates to Gadgetron and STIR. Next time it should be faster
> again.
>
> From: CCP-PETMR Developers list [mailto:[log in to unmask]] On
> Behalf Of Evgueni Ovtchinnikov
> Sent: 08 December 2016 12:54
>
>
> To: [log in to unmask]
> Subject: Re: CCPPETMR_VM
>
>
>
> The shell script update_VM.sh is in /usr/local/bin, which is in VM path
> (type echo $PATH to see it).
>
>
>
> So, no matter in which folder you type ‘update_VM.sh’, it should work.
>
>
>
> If it does not, please send me the outputs that you get when you type ‘echo
> $PATH’ and ‘update_VM.sh’.
>
>
>
> From: CCP-PETMR Developers list [mailto:[log in to unmask]] On
> Behalf Of Christoph Kolbitsch
> Sent: 08 December 2016 12:41
> To: [log in to unmask]
> Subject: Re: CCPPETMR_VM
>
>
>
> Could you please update the instructions for the CCPETMR_VM on the github
> site which one needs to be used and in what order? The instructions say:
>
>         4. Double-click on the LXTerminal icon to open a terminal. Type
>
>         update_VM.sh
>
> but this does not work because the LXTerminal opens where UPDATE.sh is
> located and not update_VM.sh.
>
>
> --
> Dr. Christoph Kolbitsch
> Medical Physics and Metrological Information Technologies
> Physikalisch-Technische Bundesanstalt
> Abbestr. 2-12
> 10587 Berlin, Germany
> phone: +49 30 3481 7761
>
>
>
> Von:        Evgueni Ovtchinnikov <[log in to unmask]>
> An:        [log in to unmask]
> Datum:        08.12.2016 13:08
> Betreff:        Re: CCPPETMR_VM
> Gesendet von:        CCP-PETMR Developers list
> <[log in to unmask]>
>
> ________________________________
>
>
>
>
> No, update_VM.sh is not the same as UPDATE.sh (you can see for yourself –
> see /usr/local/bin/update_VM.sh).
>
> From: CCP-PETMR Developers list [mailto:[log in to unmask]] On
> Behalf Of Christoph Kolbitsch
> Sent: 07 December 2016 20:39
> To: [log in to unmask]
> Subject: CCPPETMR_VM
>
> Hello,
>
>
> I downloaded the VM from http://www.ccppetmr.ac.uk/downloads and I ran the
> "UPDATE.sh" script. (In the manual it is refered to "update_VM.sh and it had
> to be made executable at first use).
>
> I received the following error during "Updating your STIR installation":
>
> create mode 100644 src/recon_test/recontest.cxx
> create mode 100644 src/scatter_buildblock/CreateTailMaskFromACFs.cxx
> create mode 100644 src/test/test_export_array.cxx
> ./UPDATE.sh: line 47: cd: /home/stir/devel/build/STIR/Release: No such file
> or directory
>
> I created the directory "/home/stir/devel/build/STIR/Release" and ran
> "UPDATE.sh" again but then I receive the error:
> Updating your STIR installation
> Already up-to-date.
> make: *** No rule to make target 'install'. Stop.
>
> Has anyone had a similar problem before?
> Kind regards,
> Christoph

Top of Message | Previous Page | Permalink

JiscMail Tools


RSS Feeds and Sharing


Advanced Options


Archives

May 2024
April 2024
March 2024
February 2024
January 2024
December 2023
November 2023
October 2023
September 2023
August 2023
July 2023
June 2023
May 2023
April 2023
March 2023
February 2023
January 2023
December 2022
November 2022
October 2022
September 2022
August 2022
July 2022
June 2022
May 2022
April 2022
March 2022
February 2022
January 2022
December 2021
November 2021
October 2021
September 2021
August 2021
July 2021
June 2021
May 2021
April 2021
March 2021
February 2021
January 2021
December 2020
November 2020
October 2020
September 2020
August 2020
July 2020
June 2020
May 2020
April 2020
March 2020
February 2020
January 2020
December 2019
November 2019
October 2019
September 2019
August 2019
July 2019
June 2019
May 2019
April 2019
March 2019
February 2019
January 2019
December 2018
November 2018
October 2018
September 2018
August 2018
July 2018
June 2018
May 2018
April 2018
March 2018
February 2018
January 2018
December 2017
November 2017
October 2017
September 2017
August 2017
July 2017
June 2017
May 2017
April 2017
March 2017
February 2017
January 2017
December 2016
November 2016
October 2016
September 2016
August 2016
July 2016
June 2016
May 2016
April 2016
March 2016
February 2016
January 2016
November 2015


JiscMail is a Jisc service.

View our service policies at https://www.jiscmail.ac.uk/policyandsecurity/ and Jisc's privacy policy at https://www.jisc.ac.uk/website/privacy-notice

For help and support help@jisc.ac.uk

Secured by F-Secure Anti-Virus CataList Email List Search Powered by the LISTSERV Email List Manager