Giter VIP home page Giter VIP logo

fedora's People

Contributors

gbraad avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

fedora's Issues

Use coder

Create an image devenv/coder that is based on systemd -> dotfiles #11

https://coder.com/docs/code-server/latest/install#fedora-centos-rhel-suse


export VERSION=4.10.0
curl -fOL https://github.com/coder/code-server/releases/download/v$VERSION/code-server-$VERSION-amd64.rpm
sudo rpm -i code-server-$VERSION-amd64.rpm
sudo systemctl enable --now code-server@$USER
# Now visit http://127.0.0.1:8080. Your password is in ~/.config/code-server/config.yaml

Add `tasks.json` for CodeSandbox

{
  "$schema": "https://codesandbox.io/schemas/tasks.json",
  "setupTasks": ["yarn install", "yarn build"],
  "tasks": {
    "install-dependencies": {
      "name": "Install Dependencies",
      "command": "yarn install"
    },
    "start-app": {
      "name": "Run Dev Server",
      "command": "yarn start",
      "runAtStart": true
    }
  }
}

Change dependency chain between dotfiles and systemd

The current systemd image is dependent on the dotfiles image. It might be better to move this around.

  • systemd depends on base
  • dotfiles depends on dotfiles
  • user is added to dotfiles
  • devsys is therefore systemd + dotfiles
  • coder based on dotfiles / systemd #7

Using this as a Toolbox image does not work

Toolbox usage sucks as it is very unclear why it fails:

DEBU Checking if container devbox-fedora38 exists
DEBU Inspecting mounts of container devbox-fedora38
DEBU Starting container devbox-fedora38
DEBU Inspecting entry point of container devbox-fedora38
DEBU Entry point PID is a float64
DEBU Entry point of container devbox-fedora38 is toolbox (PID=0)
Error: invalid entry point PID of container devbox-fedora38

I have tried this with all extra packages as in their toolbox/images and bx-images trepo, but no change. Also, the start pretty much hangs for minutes at:

DEBU toolbox
DEBU --log-level
DEBU debug
DEBU init-container
DEBU --gid
DEBU 1000
DEBU --home
DEBU /home/gbraad
DEBU --shell
DEBU /bin/zsh
DEBU --uid
DEBU 1000
DEBU --user
DEBU gbraad
DEBU --monitor-host

whch makes this an unusable solution. Focus for now on Distrobox.

Add aarch64

On the Ampere server, these images of course will not run:

WARNING: image platform ({amd64 linux  [] }) does not match the expected platform ({arm64 linux  [] })

Make SSH keys part of /usr (read-only on immutable system)

RUN mkdir -p /usr/etc-system/ && \
    echo 'PermitRootLogin prohibit-password' > /etc/ssh/sshd_config.d/35-no-root-pw.conf && \
    echo 'AuthorizedKeysFile /usr/etc-system/%u.keys' >> /etc/ssh/sshd_config.d/30-auth-system.conf && \
    curl https://github.com/gbraad.keys | tee -a /usr/etc-system/root.keys && \
    chmod 0600 /usr/etc-system/*.keys

Add GH Act

dnf copr enable rubemlrm/act-cli
dnf install act-cli
gh extension install https://github.com/nektos/gh-act

Install Glow

to make use of the styling: gbraad/dotfiles#14

echo '[charm]
name=Charm
baseurl=https://repo.charm.sh/yum/
enabled=1
gpgcheck=1
gpgkey=https://repo.charm.sh/yum/gpg.key' | sudo tee /etc/yum.repos.d/charm.repo
sudo yum install glow

Consolidate Docker repository

After initially splitting the repositories, it is best to merge them again as Vagrant is also part of this code repository.

Vagrantfile with libvirt support

  config.vm.provider "libvirt" do |libvirt, override|
    libvirt.cpus = 2
    libvirt.memory = 2048
    libvirt.driver = 'kvm'
    libvirt.nested = true
    libvirt.storage :file, :size => '20G'
  end

Run `tailscaled` as background task with `screen`

Currently, codespaces does not initialize as expected.

It is suggested to move to a background process using screen and checked in a startup look to become responsive. This can be used by both gitpod and codespaces (partially replicate what tailwings does)

run_container consolidation

Consider merging the install.sh and run_container.sh as since consolidation they serve the same purpose, but with an unnecessary involvement of curl.

To allow running X11 applications

as root

$ dnf install -y tigervnc-server

as user

$ echo PREFERRED=i3 | sudo tee /etc/sysconfig/desktop
$ vncserver :0
$ novnc_server

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.