Skip to content

burmilla/console

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 

Repository files navigation

About

BurmillaOS type of console for Flatcar Container Linux

SSH with user "core" ends up to normal Flatcar console.

SSH with user "rancher" ends up inside of console container.

Usage

Ignition

variant: flatcar
version: 1.0.0
passwd:
  groups:
    - name: rancher
  users:
    - name: core
      ssh_authorized_keys:
        - ssh-ed25519 <removed>
    - name: rancher
      ssh_authorized_keys:
        - ssh-ed25519 <removed>
      primary_group: rancher
      groups:
        - docker
        - sudo
      shell: /opt/bin/enter-console.sh
storage:
  files:
    - path: /opt/bin/enter-console.sh
      mode: 0755
      contents:
        inline: |
          #!/bin/bash
          /usr/bin/docker exec -it console /bin/bash

Starting console container

docker run -it --rm \
  --name console\
  --privileged \
  --cgroupns=host \
  --net=host \
  --uts=host \
  -v /sys/fs/cgroup:/sys/fs/cgroup:ro \
  -v /:/host \
  -v /etc/passwd:/etc/passwd \
  -v /etc/group:/etc/group \
  -v /etc/shadow:/etc/shadow \
  -v /usr/share/baselayout/sudoers:/etc/sudoers \
  -v /var/run/docker.sock:/var/run/docker.sock \
  --user 1000:1000 \
  --group-add 233 \
  --oom-score-adj -100 \
  burmilla/console:dev6

TODO

  • Enable console colors
  • Use SSH from console instead of host

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published