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

Expose actor id in container when running Docker build #82

Closed
jeanbmar opened this issue Aug 6, 2022 · 1 comment
Closed

Expose actor id in container when running Docker build #82

jeanbmar opened this issue Aug 6, 2022 · 1 comment

Comments

@jeanbmar
Copy link

jeanbmar commented Aug 6, 2022

Hey there,

Not sure this is the right place to create the issue but what I'm asking happens on your servers and is related to Docker :).

I use a monorepo with NPM workspaces, and I have issues deploying my actor because of it.

In order to selectively install my actor using npm install --workspace=my-actor, I would need the actor id to be available in the Dockerfile. Is it something you could add?

This change combined to this one apify/apify-cli#277 would basically enable basic support for NPM workspaces monorepo.

Love the project, keep going 👍

@jeanbmar jeanbmar changed the title Pass actor id to container when running Docker build Expose actor id in container when running Docker build Aug 6, 2022
@jeanbmar
Copy link
Author

jeanbmar commented Aug 6, 2022

Thanks @pocesar for answering this on Discord.

Solution:

  • Tick the Apply environment variables also to build process option in console
  • Store the workspace environment variable in apify.json
  • Declare ARG MY_WORKSPACE in Dockerfile

@jeanbmar jeanbmar closed this as completed Aug 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant