Giter Site home page Giter Site logo

Comments (10)

nikicat avatar nikicat commented on August 19, 2024

๐Ÿ‘

from fleet.

jsdir avatar jsdir commented on August 19, 2024

๐Ÿ‘

from fleet.

skorfmann avatar skorfmann commented on August 19, 2024

๐Ÿ‘

from fleet.

skorfmann avatar skorfmann commented on August 19, 2024

Is there any workaround to pass arguments to the units file?

from fleet.

bcwaldon avatar bcwaldon commented on August 19, 2024

@skorfmann Currently, no. I was hoping we could use the @ syntax without the unit deduplication, but something isn't working correctly:

$ cat foo\@1.service
[Service]
ExecStart=/usr/bin/echo foo %i
$ fleetctl start foo\@1.service
$ fleetctl list-units
UNIT        LOAD    ACTIVE  SUB DESC    MACHINE
[email protected]   -   -   -   -   -
$ systemctl status foo\@1.service
[email protected]
   Loaded: loaded (/run/systemd/system/[email protected]; enabled-runtime)
   Active: inactive (dead)

Mar 27 14:10:41 core-01 systemd[1]: Starting [email protected]...
Mar 27 14:10:41 core-01 systemd[1]: Started [email protected].
Mar 27 14:10:41 core-01 echo[3061]: foo 1

So fleet is getting as far as starting the units, but apparently there's an issue getting the state updates over DBus.

from fleet.

skorfmann avatar skorfmann commented on August 19, 2024

@bcwaldon thanks, however I'm looking more for the syntax @oremj was using:

fleetctl submit [email protected]
fleetctl start [email protected]
open [email protected]: no such file or directory

Here's my use-case:

I'm going to build and tag a docker container with the short-ref of a git commit.

docker build -t bar/foo:48bd4b3 .

I want to pass this git ref to the unit file as argument like this:

fleetctl start [email protected]

This works with systemd. However, when I can't get this to work I would just fallback to generate & submit new unit files on each deployment.

Other ideas?

from fleet.

bcwaldon avatar bcwaldon commented on August 19, 2024

@skorfmann I understand what you're looking for. Trust me, I want it to. I was trying to illustrate what I had hoped was possible today.

from fleet.

skorfmann avatar skorfmann commented on August 19, 2024

I was trying to illustrate what I had hoped was possible today.

Oh, alright then :)

from fleet.

bcwaldon avatar bcwaldon commented on August 19, 2024

Working on this here: #244

from fleet.

bcwaldon avatar bcwaldon commented on August 19, 2024

Closed in favor of #303

from fleet.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.