wallneradam / docker-flatcar-toolbox-ubuntu Goto Github PK
View Code? Open in Web Editor NEWUbuntu (server) Linux based toolbox for Flatcar Container Linux
License: GNU General Public License v3.0
Ubuntu (server) Linux based toolbox for Flatcar Container Linux
License: GNU General Public License v3.0
Master branch (the only branch at this date)
CoreOS-stable-1185.5.0 (ami-b5e5e3a2)
.tooboxrc
with contents from this projecttoolbox
Once the container has downloaded (and in subsequent invocations) you will receive the error:
Failed to parse --bind(-ro)= argument : Invalid argument
Hey, cool script you got here. Found this repo after trying some things on my own; installed tmux inside a brand new ubuntu toolbox, detached, and was not able to get back in. machinectl list
shows nothing as well. (I also tried apt install -y systemd dbus
as per this issue).
I thought perhaps your use of toolbox tmux
and toolbox tmux attach -t 0
might work (as oppsed to launched tmux from inside a toolbox shell as I was first doing), but I still cannot reattach:
Failed to allocate scope: Unit toolbox-ubuntu.scope already exists.
Also, I do not know how to use nsenter
to "get back in" to the container. I am wondering if the machinectl
issues are CoreOS specific.
Any ideas? Are you still using this without issue, on latest stable? (atm, 1745.7.0)
FWIW, I have found an alternate solution which is to use statically built binaries (or AppImage's), and the following container linux config works:
storage:
files:
- path: /opt/bin/neofetch
filesystem: root
mode: 0555
contents:
remote:
url: https://github.com/dylanaraps/neofetch/releases/download/5.0.0/neofetch
verification:
hash:
function: sha512
sum: d17d1b541b5f55d6614e3cee07205a23059245343a1b8fdc76d4ecc9c6ba900445aa39d4a6be29f8771225b51e3c292c2d94cb03f17fa84278e4046fd8009ad8
- path: /opt/installers/nvim.sh
filesystem: root
mode: 0544
contents:
inline: |
#!/bin/bash
cmd=$(command -v nvim)
[ ! -z "$cmd" ] && echo "nvim already installed at $cmd" | systemd-cat && exit 0
BASE_URL=https://github.com/neovim/neovim/releases/download
VERSION=0.3.0
wget --quiet $BASE_URL/v$VERSION/nvim.appimage
chmod +x nvim.appimage
# No FUSE, so need --appimage-extract
./nvim.appimage --appimage-extract > /dev/null 2>&1
rm nvim.appimage
mv squashfs-root /opt/nvim
chmod 755 -R /opt/nvim
ln -s /opt/nvim/usr/bin/nvim /opt/bin/nvim
# TODO these minos installers can be generalized
- path: /opt/installers/tmux.sh
filesystem: root
mode: 0544
contents:
inline: |
#!/bin/bash
cmd=$(command -v tmux)
[ ! -z "$cmd" ] && echo "tmux already installed at $cmd" && exit 0
PACKAGE=tmux-1.9a.tar.xz
wget --quiet http://s.minos.io/archive/morpheus/x86_64/$PACKAGE
tar -C /opt -xf $PACKAGE
rm $PACKAGE
- path: /opt/installers/htop.sh
filesystem: root
mode: 0544
contents:
inline: |
#!/bin/bash
cmd=$(command -v htop)
[ ! -z "$cmd" ] && echo "htop already installed at $cmd" && exit 0
PACKAGE=htop-1.0.3.tar.xz
wget --quiet http://s.minos.io/archive/morpheus/x86_64/$PACKAGE
tar -C /opt -xf $PACKAGE
rm $PACKAGE
systemd:
units:
- name: install-scripts.service
enabled: true
contents: |
[Unit]
Description=idempotent scripts to install statically linked programs
[Service]
Type=oneshot
ExecStart=/opt/installers/tmux.sh
ExecStart=/opt/installers/nvim.sh
ExecStart=/opt/installers/htop.sh
[Install]
WantedBy=multi-user.target
Which, just for fun :D, looks like:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.