Comments (9)
Yeah, --env
is strictly for environment variables. --command
is planned for the next release as I mentioned above.
from fargatecli.
Hmm, you should be able to do something like this:
fargate task run <task name> --image <image uri> --env S3_PATH=s3://bucket/key
Was there an issue with that beyond the need to pass --env
?
from fargatecli.
Just the S3 path like you describe would work perfectly as long as it gets set within the Fargate task. I will test this and share my results.
from fargatecli.
Ok so another issue. Apparently Docker images don't support the standard init runlevel process, so executing the various bits of functionality needed to process the passed S3_PATH environment string is not possible.
I looked a the documentation for fargate task run but didn't see any option to specify a command with the Fargate task launch. Without support for the init process. how do you launch programs within the container using fargate task run? I am trying to avoid ENTRYPOINT or CMD as the image I am using has been modified heavily from a Docker hub pull and not built from a Dockerfile.
from fargatecli.
I'm going to be adding a --command flag in the next release as per this feature request: #7.
from fargatecli.
It looks like ECS supports passing COMMAND or ENTRYPOINT:
But it looks like maybe fargate cli has implemented just the --env option as an equivalent docker run --env?
Could CMD or ENTRYPOINT JSON be passed with --env, or is that implemented strictly for environment variables only per docker run --env?
from fargatecli.
Cool, thanks for the info. Back to building from a Dockerfile it is then.
from fargatecli.
Needs --command
so badly as well
from fargatecli.
Thanks @kwent! I will be adding this in the next release. I have a fair amount of refactoring to complete to get 0.3.0 done, and I will get it out as soon as I can.
from fargatecli.
Related Issues (20)
- Link to CircleCi build is broken HOT 1
- Question: Support for running multiple containers within a single task? HOT 4
- Create lb with http and https HOT 1
- On going project development & support HOT 5
- ECS Fargate support for EFS HOT 2
- Ability to stop service task by id
- fargatecli to support the China region HOT 1
- Circle CI tag at master readme does not render
- fargate service list is not show the result when it has more 20 services.
- Fargate cli not working
- Fargate CLI versus Copilot CLI? HOT 2
- Allow passing arguments to docker HOT 1
- Env variables cannot contain comma in the value HOT 1
- version 0.3.1 returning v0.3.0 with --version HOT 3
- `fargate service env set` triggers a deploy HOT 1
- service deploy deletes secrets array values
- default region cannot be changed HOT 1
- Create new release automation
- Create new documentation page HOT 1
- New install instructions needed HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fargatecli.