Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support builder & deploy settings for the service #7

Open
matifali opened this issue Jul 10, 2023 · 9 comments
Open

Support builder & deploy settings for the service #7

matifali opened this issue Jul 10, 2023 · 9 comments
Labels
C: service Context: Service D2: medium Difficulty: Medium to implement T: feature Type: Feature request U3: maybe Urgency: Maybe

Comments

@matifali
Copy link

matifali commented Jul 10, 2023

I want to create a new railway project running a single service from a Dockerfile.
How could this be achieved given the project and service are to be created from the terraform?
I also want to modify the enrtypoint of the Dockerfile.

Funding

  • You can sponsor this specific effort via a Polar.sh pledge below
  • We receive the pledge once the issue is completed & verified
Fund with Polar
@pksunkara
Copy link
Contributor

Not enough info.

@pksunkara pksunkara closed this as not planned Won't fix, can't repro, duplicate, stale Jul 10, 2023
@matifali
Copy link
Author

Hi @pksunkara, I added more details to see if it helps.

@pksunkara
Copy link
Contributor

pksunkara commented Jul 10, 2023

You use the Railway config file. https://docs.railway.app/deploy/config-as-code

Example:

{
  "$schema": "https://railway.app/railway.schema.json",
  "build": {
    "builder": "DOCKERFILE",
    "dockerfilePath": "packages/api/Dockerfile",
    "watchPatterns": ["packages/api"]
  }
}

Please ask railway support if you have more questions.

@matifali
Copy link
Author

But I am looking to achieve this using the terraform provider
I see that we have resources for both service and project.

@pksunkara pksunkara reopened this Jul 10, 2023
@pksunkara pksunkara changed the title how to start a new service with my custom provided Dockerfile? Support service instance settings Jul 10, 2023
@pksunkara pksunkara added D2: medium Difficulty: Medium to implement T: feature Type: Feature request U2: nice to have Urgency: Nice to have C: instance Context: Service instance labels Jul 10, 2023
@pksunkara pksunkara added C: service Context: Service and removed C: instance Context: Service instance labels Jul 21, 2023
@pksunkara pksunkara changed the title Support service instance settings Support builder & deploy settings for the service Jul 21, 2023
@pksunkara pksunkara added U3: maybe Urgency: Maybe and removed U2: nice to have Urgency: Nice to have labels Jul 21, 2023
@matifali
Copy link
Author

matifali commented Jan 4, 2024

@pksunkara I guess this fork is doing exactly this.

@pksunkara
Copy link
Contributor

Yes, and I would happily work with anyone (@mrbandler or you) to integrate those changes. After all, open source is about pooling efforts.

@mrbandler
Copy link

Yes, and I would happily work with anyone (@mrbandler or you) to integrate those changes. After all, open source is about pooling efforts.

Hi there, @pksunkara & @matifali; I am more than happy to implement changes to align with the current GraphQL API exposed by Railway.

It will just be a while since unfortunately, my company and my position there only allows me to do open-source work in between projects and when I find the time to do it.

Although, I fully intended to do it since I want to use Terraform and Railway for my side projects as well.

If any other culprits need fixing or features to be implemented, please open other issues so I am aware of them.

Many thanks to @pksunkara for the initial bootstrapping of the project!

@matifali
Copy link
Author

@mrbandler Sounds great. Whenever you find time. It would be nice to have your changes consolidated here. 🌮

@wertlex
Copy link
Contributor

wertlex commented Jun 19, 2024

Hey!
I added num_replicas and region here: #27

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C: service Context: Service D2: medium Difficulty: Medium to implement T: feature Type: Feature request U3: maybe Urgency: Maybe
Development

No branches or pull requests

4 participants