-
Notifications
You must be signed in to change notification settings - Fork 0
Alternative ways to setup On Site WebCSD
If installing On-Site WebCSD on a headless system you can run the installer non-interactively from the command line. There are two approaches to this.
- Specify parameters on the command line. Everything in angle brackets must be replaced by your own details (and the angle brackets removed), and publicURI must resolve to your Docker host.
# Install with automatic database server configuration (recommended)
./OnSiteInstallerExecutable --accept-licenses --confirm-command install --root "<installation directory>" licenseKey="<activation key>" username="<username for CCDC docker container registry>" password="<password for CCDC docker container registry>" publicURI="https://<hostname>:<port>" port="<port>" dbDumpFile="<path to database dump file>" sslCertLoc="<path to pfx cert file>" certPw="<pfx file password>"
# Install an connect to a pre-existing database server
./OnSiteInstallerExecutable --accept-licenses --confirm-command install --root "<installation directory>" licenseKey="<activation key>" publicURI="https://<hostname>:<port>" port="<port>" csdDatabase="csd-database-only-development" identityDatabase="csd-identity-onsite-release-2" sslCertLoc="<path to pfx cert file>" certPw="<pfx file password>" dbConnString="Server:<database server name>;Port:<database server port e.g 5432>;User Id:<database user>;Password:<database password>;"- Create a .env file and copy it into your installation directory. As above, replace everything in angle brackets (Connecting to a pre-existing database server only).
SSL_CERT_LOC=<path to pfx cert file>
CCDC_LICENSING_CONFIGURATION=la-code;<activation key>;
PUBLIC_URI=https://<hostname>
PLATFORM_PORT=<port>
POSTGRES_DUMP_LOC=<path to database dump file>
POSTGRES_DB=csd-database
POSTGRES_PORT=5432
POSTGRES_USER=postgres
POSTGRES_PASSWORD=<test123>
DB_CONNECTIONSTRING=Server=csd-database;Port=5432;User Id=postgres;Password=<test123>;
CSD_DATABASE=csd-database
IDENTITY_DATABASE=csd-identity
Now you can use a shorter command (answer Yes to the initial “Do you want to continue?” question).
./OnSiteInstallerExecutable --accept-licenses --confirm-command install --root <installation directory>The maintenance tool can be run non-interactively from the command line too.
# To uninstall, this will give a Yes/No prompt to confirm the uninstall
./maintenancetool purge
# To upgrade (ensure in-house database have been exported and if using the installer setup postgres server that the database dump file has been replaced with the update in the same location originally specified - can be found in docker-compose.postgres.yml)
./maintenancetool update dbDumpFile="<path to database dump file>" overWriteDb="True"If you want to store the docker images in your own repository follow the below steps:
-
Download and unzip a copy of the source code of the latest release from the Releases page. Change to the
on-site-webcsd-VERSIONfolder containing the docker compose files. -
Run the below command to download the docker images
docker compose pull- For each docker image run "docker tag <oldrepo/service:version> <newrepo/service:version>" e.g.
docker tag ccdcrepository.azurecr.io/webcsd:0.1.6 my.internal.registry/webcsd:0.1.6- Run "docker push <newrepo/service:version>" e.g.
docker push my.internal.registry/webcsd:0.1.6- Create a new docker-compose file to keep your image overrides separate and avoid them being reverted in updates e.g. "docker-compose.service-config.yml". The file will need to contain the new image location for each service copied into a new location. e.g.
version: '3.6'
services:
webcsdbackend:
image: my.internal.registry/webcsdbackend:0.1.6
webcsd:
image: my.internal.registry/webcsd:0.1.6
database-server:
image: my.internal.registry/csd-database:2022.1.0.alpha1
...
etc
- Include the new file in the startup command, so if you are also using local database configurations the command will be:
docker compose -f docker-compose.yml -f docker-compose.db-config.yml -f docker-compose.service-config.yml up -dPlease note that process will need to be repeated to copy further updates to your local repository.
We do not currently offer Kubernetes support; please contact us to discuss your preferred installation options.