AnsweredAssumed Answered

Gateway in Docker

Question asked by MarijaOmniSecure on Jun 1, 2018
Latest reply on Jun 6, 2018 by MarijaOmniSecure

HI,

 

I am train to run a container whit the image that I have downloaded from the Docker Hub, but when I do so i get an error like this:

sudo docker run caapim/gateway
ERROR - License not accepted (environment variable ACCEPT_LICENSE=)

 

even after I have run the command export SSG_LICENSE="$(cat /c/my-license/LICENSE.xml | gzip | base64)"  with my license , it is still not working.

my docker-compose.yml file looks like this:

 

ssg:
image: caapim/gateway:latest
mem_limit: 2048m
expose:
- "8777"
ports:
- "8080:8080"
- "8443:8443"
- "9443:9443"
environment:
ACCEPT_LICENSE: "true"
SSG_CLUSTER_COMMAND: "create"
SSG_CLUSTER_HOST: "localhost"
SSG_CLUSTER_PASSWORD: "7layer"
SSG_DATABASE_TYPE: "mysql"
SSG_DATABASE_HOST: "mysql"
SSG_DATABASE_PORT: "3306"
SSG_DATABASE_NAME: "ssg"
SSG_DATABASE_USER: "gateway"
SSG_DATABASE_PASSWORD: "7layer"
SSG_DATABASE_ADMIN_USER: "root"
SSG_DATABASE_ADMIN_PASS: "7layer"
SSG_ADMIN_USER: "pmadmin"
SSG_ADMIN_PASS: "7layer"
SSG_LICENSE:
SSG_INTERNAL_SERVICES: "restman wsman"
links:
- mysql
mysql:
image: mysql:5.7
mem_limit: 512m
# volumes:
# - ./mysqlconf:/etc/mysql/conf.d
# - /root/mysqldatadir:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=7layer

 

Am I missing something?

Outcomes