Open brasseld opened 6 years ago
Ok, I was able to make it works better by updating the Dockerfile and adding this part:
RUN groupadd -g 1000 gravitee && \
adduser -u 1000 -g 1000 -d ${GRAVITEEIO_HOME} gravitee
USER 1000
This must be added for both the gateway and the mgmt-api
Is it possible to merge this to master ?
Thanks
Hi @rbriois
It is already part of our docker images.
See https://github.com/gravitee-io/gravitee-docker/commit/0f38bac0e37909b3e7b97a8cef712e1bf0260591
Do you have any other issue?
I've updated your comment to remove customer name.
somehow yes.
I try to deploy gravitee to openshift using this repository.
So when i launch create_all.cmd, the command :
oc new-build ../ --name=management-api --context-dir=images/management-api/ --strategy=docker --build-arg=GRAVITEEIO_VERSION=%GRAVITEEIO_VERSION%
it creates a build on openshift but bind it to this git project, not to gravitee-io/gravitee-docker.
--> Found Docker image d0d8234 (13 days old) from Docker Hub for "graviteeio/java:8"
* An image stream will be created as "java:8" that will track the source image
* A Docker build using source code from https://github.com/gravitee-io/gravitee-openshift.git#master will be created
* The resulting image will be pushed to image stream "management-api:latest"
* Every time "java:8" changes a new build will be triggered
--> Creating resources with label build=management-api ...
buildconfig "management-api" created
--> Success
Build configuration "management-api" created and build triggered.
Run 'oc logs -f bc/management-api' to stream the build progress.
So i don't have last update.
Maybe i'll try something different or make a PR.
And did you set the correct version before running the script ?
(I recognize that the version must be settled to latest by default....)
I'll try some others tests !
for now, i'll just use latest image from docker hub
Edit : Yes, i set a correct version before running
I had a try with Openshift some months ago. Can't tell you if something has been changed since this time...
But if you need help, I will be happy to re-install minishift and have a new try with latest versions of both OS and G.io
Thanks ! Don't bother you for now ! i'll keep you inform
Hi @Emmanuel35,
I had a try with your OS template.
It seems that it does not work properly on my env (minishift). When the gateway is starting, I have a lot of access denied error:
Do you know the cause of such error. Did you change something in your gravitee images ?