https://rancher.com/ logo
#epinio
Title
# epinio
a

adamant-kite-43734

05/18/2022, 11:00 AM
This message was deleted.
b

broad-dream-81849

05/18/2022, 11:42 AM
that's correct 🙂 you can try with
Copy code
epinio app push --container-image-url "splatform/sample-app" -n sample
b

bulky-church-2468

05/18/2022, 11:49 AM
can I tell it which port to open?
I was able to deploy it this way, but the wrong port is exposed unfortunately
c

cuddly-holiday-9089

05/18/2022, 12:39 PM
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

bulky-church-2468

05/18/2022, 12:40 PM
oh ok, so passing PORT=PORTNUMBER as env variable will do the tricks
got it
thanhks
b

broad-dream-81849

05/18/2022, 12:42 PM
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

bulky-church-2468

05/18/2022, 1:21 PM
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

cuddly-holiday-9089

05/18/2022, 1:22 PM
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

bulky-church-2468

05/18/2022, 1:42 PM
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

cuddly-holiday-9089

05/18/2022, 2:49 PM
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
7 Views