This message was deleted.
# epinio
a
This message was deleted.
b
that's correct 🙂 you can try with
Copy code
epinio app push --container-image-url "splatform/sample-app" -n sample
b
can I tell it which port to open?
I was able to deploy it this way, but the wrong port is exposed unfortunately
c
the ports are hardcoded in the default application helm chart (see the link) but there is a
PORT
environment variable available that you can use to tell the app to listen there
b
oh ok, so passing PORT=PORTNUMBER as env variable will do the tricks
got it
thanhks
b
no, the other way around. So your app should start listening to the
PORT
env var. In your code you should have something like
os.GetEnv("PORT")
or similar
b
hmmm I see, I can’t change the port, it’s exposed in the docker image, would be better if we could configure the port mapping on the service somehow
c
even if we made it configurable in the application helm chart, it would still require this story to configure it: https://github.com/epinio/epinio/issues/1252
in the meantime, you can clone the application helm chart, make a hardcoded change to the desired port and create a custom application chart with your new version. Let me send you some links
this should be enough I think. You will be able to use your custom app chart then with that application
b
seems doable, coming from rio, I miss that riofile features where I could enjoy rio default values and merge my own
seems more adventurous here, submitting another application chart and assigning it to a specific app
could not find anything in the docs pointing to that solution
c
Well what I suggested is a temporary hack to unblock you. The actual solution is the open issue I sent above (1252)
There you would be able to pass values and merge them with the defaults from the chart