Comments (1)
I found the solution by myself.
- Create kubernetes config map with spre.SETINIT_TEXT variable
- Put the content of your new SAS license into spre.SETINIT_TEXT.
spre.SETINIT_TEXT: |
PROC SETINIT RELEASE='V03';
SITEINFO NAME='XXXXXXXX'
SITE=123456789 OSNAME='LIN X64' RECREATE WARN=34 GRACE=62
[..]
SAVE; RUN;
- Inside the SPRE container set environment variable SETINIT_TEXT and initialize it with value of spre.SETINIT_TEXT from kubernetes config map.
TIP: you have to modify the manifest starting your SPRE container by putting this section
spec:
containers:
- env:
- name: SETINIT_TEXT
valueFrom:
configMapKeyRef:
key: spre.SETINIT_TEXT
name: spre-config
- entrypoint for the SPRE image need to be modified by putting that code before CAS starts
echo;echo "===== [INFO] : Checking SAS license =====";
if [ ! -z "${SETINIT_TEXT}" ]; then
export SASLICENSEFILE="license.sas"
export SASLICENSEDIR="/sasinside"
echo;echo "===== [INFO] : Found new SAS license! =====";echo;
echo;echo "${SETINIT_TEXT}";echo;
echo;echo "===== [INFO] : Applying new SAS license =====";echo;
echo "${SETINIT_TEXT}" > ${SASLICENSEDIR}/${SASLICENSEFILE}
# Applying license to SAS Foundation
sudo su -s "/bin/sh" -c "/opt/sas/spre/home/SASFoundation/utilities/bin/apply_license ${SASLICENSEDIR}/${SASLICENSEFILE}" sas
# Applying license to CAS
sudo su -s "/bin/sh" -c "ln -sf ${SASLICENSEDIR}/${SASLICENSEFILE} /opt/sas/viya/config/etc/cas/default/sas_license.txt" sas
else
echo;echo "===== [INFO] : No changes, skipping =====";echo;
fi
from sas-container-recipes.
Related Issues (20)
- ingress manifest remove static namespace entry
- Cannot create Kubernetes namespace
- Ansible version check failed HOT 1
- Unable to run SAS code in Docker container-no permission for library SASHELP
- Cannot find inventory.ini section with container names HOT 2
- regexNoSpecialCharacters in order.go does not like a hyphen "-" altough doc says is allowed HOT 2
- panic: runtime error: index out of range HOT 7
- Ansible is not being installed for Centos:7 based microservice images HOT 1
- environment manager not showing the cas worker nodes
- Docker container Image starting as root user
- github.com/docker/docker/client source not working
- Issue with SAS Viya Full deployment HOT 1
- build.sh hangs when docker user has large uid
- build error HOT 1
- On login attempt: "The launch of the server process failed because of an invalid or inaccessible SASUSER library" HOT 1
- getting error with build the container
- rm: cannot remove β/etc/security/limits.d/20-nproc.confβ: No such file or directory HOT 6
- curl#18 - "transfer closed with XXXXXXX bytes remaining to read HOT 2
- SAS Viya - running on a single container - build error - certificates
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sas-container-recipes.