This guide is intended for developers and describes how to set up an Intershop development environment on Mac OS X.
You can either use Oracle or MS SQL Server.
Use the oracle database either in a VM, a docker container or use an external database.
Modify oracleClientDir
in environment.properties according to your environment.
Info
127.0.0.1 localhost <local computer name>.
The following MS SQL docker container can be used:
https://github.com/IntershopCommunicationsAG/mssql-intershop-docker
Azure Data Studio can be used as database tool, see Download and install Azure Data Studio:
CREATE DATABASE intershop COLLATE Latin1_General_100_CI_AS;
Set the following environment.properties:
databaseType=mssql intershop.jdbc.url =jdbc:sqlserver://localhost:1433;database=db intershop.jdbc.user=intershop intershop.jdbc.password=intershop
To set up Intershop Studio on Mac:
If you get an error message regarding org/eclipse/xtend/typesystem/MetaModel, you need to install the Xtend IDE:
Make sure that Eclipse is using the correct JDK by going to About Eclipse | Installation Details | Configuration, check for the -vm
argument.
If the JDK version needs to be changed, follow this:
eclipse.ini
file inside the Eclipse application bundle:eclipse.ini
file in the Contents/MacOS sub-folder and open it with your favorite text editor to edit the command line options.To increase shared memory:
Edit /etc/sysctl.conf:
kern.sysv.shmmax=12582912 kern.sysv.shmall=12582912
or:
#on each reboot sudo sysctl -w kern.sysv.shmmax=12582912 sudo sysctl -w kern.sysv.shmall=12582912
The packages for Mac OS X are now also published in the Intershop Repository under OS-Id darwin and they should be used automatically when deploying with gradle on a Mac:
environment.properties:
platformId = darwin.x86_64
Mac-specific packages:
In gradle_environment.sh the command readlink
is used, which does not exist on Mac OS X by default. However, this can be solved with the help of Homebrew :
Use the following command:
brew install coreutils
Create an alias:
alias readlink=greadlink
To set the java.library.path:
JAVA_OPTS=$JAVA_OPTS\ -Djava.library.path=$IS_HOME/lib
.To start the web server:
cd local/httpd/bin sudo ./apachectl -k start
If you get the error message ./apachectl: line 73: ulimit: open files: cannot modify limit: Invalid argument, you can edit apachectl and replace:
ULIMIT_MAX_FILES="ulimit -S -n `ulimit -H -n`"
with
ULIMIT_MAX_FILES=""
To start the server:
cd server/local/bin . ./environment.sh ./tomcat.sh
To start the application server using Intershop Studio's server view, the run configuration must be extended:
-Djava.library.path="${IS_HOME}/lib"