Skip to content

Container environment variables do not bite in container #822

Closed

Description

@troglobit

Current Behavior

When first adding environment variables to a container they show up:

admin@infix:/> configure 
admin@infix:/config/> edit container system 
admin@infix:/config/container/system/> set env FOO value bar
admin@infix:/config/container/system/> leave
admin@infix:/> container shell system 
root@sys0:/# set |grep FOO
FOO='bar'
root@sys0:/# 

However, changing the environment, or adding a new variable, does not "take" unless the container upgrade command is run:

admin@infix:/> configure 
admin@infix:/config/> set container system env FOO value "grok it"
admin@infix:/config/> leave
admin@infix:/> container shell system 
root@sys0:/# set |grep FOO
FOO='bar'
root@sys0:/# 
admin@infix:/> 
admin@infix:/> container upgrade system 
>> Stopping ... system
>> Trying to pull ghcr.io/kernelkit/curios:edge...
Getting image source signatures
Copying blob 15adbdbf57fc skipped: already exists  
Copying config 49639ab9de done  
Writing manifest to image destination
Storing signatures
49639ab9de610f4046b154d4d6313d7111f7d1f61f6efd5221a8f55b708c537d
>> Starting system ...
e2cadcd09f98a505056adf240d58e8f7b0becb6e116f727e81179c7ce88e668e
>> Done.
admin@infix:/> container shell system 
root@sys0:/# set |grep FOO
FOO='grok it'
root@sys0:/# 

Expected Behavior

Changes to a container's configuration should always be applied, and other changes to Infix running-config should not affect an already running container.

Steps To Reproduce

see above

Additional information

No response

Activity

  1. added
    bugSomething isn't working
    triagePending investigation & classification (CCB)
    and removed
    triagePending investigation & classification (CCB)
    on Nov 13, 2024
  2. self-assigned this
    on Nov 13, 2024
  3. added this to the Infix v24.11 milestone on Nov 13, 2024
  4. moved this to In progress in Infix & C:oon Nov 13, 2024
  5. added 3 commits that reference this issue on Nov 16, 2024
    702636d
    7be17d4
    021767c
  6. moved this from In progress to Done in Infix & C:oon Nov 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

Projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions