R
Railwayβ€’7mo ago
Felipe Mattos

DockerHub: Custom Start Command

Hi everyone! Greetings from Brazil! πŸ‡§πŸ‡· I've just upgraded to a Hobby Plan. However, I'm having difficulties with Custom Start Commands related to Docker Image at DockerHub. The image is Selenium Standalone Chrome. https://hub.docker.com/r/selenium/standalone-chrome Locally, using docker-compose, I set the following attribute:
services:
selenium:
container_name: chrome-alone
image: selenium/standalone-chrome:latest
**shm_size: 2g**
services:
selenium:
container_name: chrome-alone
image: selenium/standalone-chrome:latest
**shm_size: 2g**
I need to set the same attribute shm_size: 2g at Railway server, otherwise the service wont work properly. But i can't a find a way to do it. Tried to mess around with Custom Star Commands, but it fails to build the image. So far, the prompt is:
java -jar selenium/standalone-chrome.jar -d -p 4444:4444 --shm-size=2g
java -jar selenium/standalone-chrome.jar -d -p 4444:4444 --shm-size=2g
It gives me the error jarfile selenium/standalone-chrome.jar Any help will be appreciated πŸ™
6 Replies
Percy
Percyβ€’7mo ago
Project ID: N/A
Felipe Mattos
Felipe Mattosβ€’7mo ago
N/A
Brody
Brodyβ€’7mo ago
shm_size is not something the end user is able to change at the moment
ThallesComH
ThallesComHβ€’7mo ago
are u using puppeteer (javascript)?
ThallesComH
ThallesComHβ€’7mo ago
btw, do you mind upvoting this community suggestion to bring Railway to Brazil?
Railway Community Forum
Region in Brazil
I want to choose sa-east-1
Felipe Mattos
Felipe Mattosβ€’7mo ago
i guess not. Just linked with the dockerhub image and tried to run it with some modifications
Want results from more Discord servers?
Add your server