Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Building Ptolemy II installers is complex #327

Open
cxbrooks opened this issue Jun 15, 2018 · 0 comments
Open

Building Ptolemy II installers is complex #327

cxbrooks opened this issue Jun 15, 2018 · 0 comments

Comments

@cxbrooks
Copy link
Member

The preferred method to use Ptolemy II is to install via Git and then set up Eclipse.

However, we provide installers for people who are not comfortable with Git and/or Eclipse and to also provide a snapshot of a known good working version of Ptolemy II.

One possibility would be to provide a docker image, but users that are not comfortable with Git and Eclipse are not likely to be comfortable with docker. Also, the installers are standalone and do not rely on versions of tools that may or may not be accessible via the Internet in the future.

The Ptolemy II installers are built at least daily via the ptII Travis-ci job, (see also https://wiki.eecs.berkeley.edu/ptexternal/Main/Travis) One of the Travis targets invokes $PTII/bin/ptIITravisBuild.sh, which runs a test in $PTII/adm/installers/test/. That test runs make in $PTII/adm/gen-11.0.

The makefile creates a temporary release in $PTII/adm/dists. The makefile uses IzPack to create installers.

Under Windows and Mac, the installers include a JRE. The reason to include a JRE is to insulate the user from updates to the system JRE that are not backward compatible.

The installer also creates symbolic links via IzpackSetup.java for accessors:

bash-3.2$ ls -l $PTII/org/terraswarm/accessor/accessors/web/node_modules/
total 0
lrwxr-xr-x  1 cxh  staff   8 Jun  6 15:06 @accessors-hosts -> ../hosts
lrwxr-xr-x  1 cxh  staff  23 Jun  6 15:06 @accessors-modules -> ../hosts/common/modules
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant