Closed pedroleaoc closed 3 years ago
@pedroleaoc Did you provide a config file when you try to run this?
Thanks for your answer, @akphi.
What I've done so far:
Populated ./config.properties
with sensible information
./scripts/setup.sh ./config.properties
This creates a tree of directories which I mapped in my docker run
command. Something like this:
docker run -t -i \
-v $BUILD_DIR/ssl:/ssl \
-v $BUILD_DIR/generated-configs/engine:/config \
-v $BUILD_DIR/generated-configs/gitlab:/gitlab-config \
-v $BUILD_DIR/scripts:/scripts \
-v $BUILD_DIR/templates/engine:/templates \
finos/legend-engine-server:2.35.1
Pushed a config.json
file inside the /engine
directory.
Question:
Where is config.json
created? I found a generic one and removed everything related to Mongo - is there a better way to generate/get this file?
The container runs and the service responds to my attempts to connect (by failing)- which is expected since my config.json
is a hack.
Question: Can I run engine without sdlc? Does it make sense Legend-wise?
@pedroleaoc Ah I think I see your problem now. The Dockerfile
for legend-engine
is like this https://github.com/finos/legend-engine/blob/333214b2a439ae751e9caea9035d90958a9d1ab2/legend-engine-server/Dockerfile#L15-L17
The last line, it was looking for the config at the location config/config.json
. So you might want to modify your mounted drive to something like
-v $BUILD_DIR/generated-configs/engine/config:/config \
Or something along that line (since I don't know how you generate the configs in generated-config
but I suppose you get this from the code of our AWS installers), the best way to check is to go inside the container and make sure the path /config/config.json
exists.
Where is
config.json
created? I found a generic one and removed everything related to Mongo - is there a better way to generate/get this file?
We have mentioned in our installation guide that if you don't go the docker-compose
route, you can use this config
Question: Can I run engine without sdlc? Does it make sense Legend-wise?
Yes, in our stack we make sure engine
does not depend on sdlc
.
Ah! Thanks for the pointers, that helped a lot!
I was looking for the (wrong) config file in the wrong place.
Hi folks, I am working on a Charmed Operator for Legend Server and I am trying to understand how the different parts of Legend interact during deployment.
Should I be able to simply
pull
andrun
the Engine image directly from dockerhub?It seems like it's trying to access a volume that is not yet mounted. I know these images were probably design to work with Docker Compose mainly, but am I missing something obvious here (that is probably covered by the Maven install guide)?
Thanks :-)