Che: shm_size is not supported when creating a stack.

Created on 13 Mar 2018  路  5Comments  路  Source: eclipse/che

Description

When I try to create a custom stack with Oracle Database for multiple machines from the Java-MySQL stack, the "shm_size" parameter is not allowed.

The same is required for the Oracle 11g docker image to work as demonstrated by the docker command:

docker run --name <container name> \
--shm-size=1g \
-p 1521:1521 -p 8080:8080 \
-e ORACLE_PWD=<your database passwords> \
-v [<host mount point>:]/u01/app/oracle/oradata \
oracle/database:11.2.0.2-xe

is there any way this parameter works or is not supported by Eclipse Che?

thanks
OS and version:
Ubuntu 16.04
Docker CE 17
Eclipse Che 6.1.1

kinquestion

All 5 comments

@Daniel-Dos currently there's no way to pass this param to a workspace container.

Hi Daniel. You can contribute this feature to the project and become a member of our Eclipse committers community!
Here is a bit long but not very complex flow on how to contribute it:

  • add the field to compose model. See docs from Compose on how it looks like https://docs.docker.com/compose/compose-file/compose-file-v2/#cpu-and-other-resources
  • add it to Docker container model
  • copy it from Compose model to Docker container config model
  • Add it to Docker client model. Look how ShmSize field looks in Docker API docs
  • copy it from Docker container config model to Docker API client
  • add it to your's workspace compose the recipe

Looking forward seeing you as a contributor!

thanks @eivantsov for the feedback.

@garagatyi ,
I will try to implement this feature, thank you very much for providing the way.

@Daniel-Dos I am going to close this one. Feel free to open a PR or an issue if you have difficulties in implementing it

@eivantsov ,

wonder, thank you very much. As soon as I have a cool time, I'll try the implementation.

Was this page helpful?
0 / 5 - 0 ratings