An experiment running multiple Rootless containers in podman.
- Option 1: Port-forwarding
- Option 2: Podman Pods
Source Code
// ---------------------------------------------------------------------------- | |
// sprinkles light-mode syntax theme for: https://github.com/corbtastik/yolo | |
// ---------------------------------------------------------------------------- | |
$light-syntax-comment-hashbang: #9e9e9e; | |
$light-syntax-comment-multiline: #9e9e9e; | |
$light-syntax-comment-preproc: #ec417a; | |
$light-syntax-comment-preprocfile: #9e9e9e; | |
$light-syntax-comment-single: #9e9e9e; | |
$light-syntax-comment-special: #9e9e9e; | |
$light-syntax-comment: #9e9e9e; |
// ---------------------------------------------------------------------------- | |
// dracula light-mode syntax theme for: https://github.com/corbtastik/yolo | |
// ---------------------------------------------------------------------------- | |
$light-syntax-comment-hashbang: #6272a4; | |
$light-syntax-comment-multiline: #6272a4; | |
$light-syntax-comment-preproc: #ff79c6; | |
$light-syntax-comment-preprocfile: #ff79c6; | |
$light-syntax-comment-single: #6272a4; | |
$light-syntax-comment-special: #6272a4; | |
$light-syntax-comment: #6272a4; |
// ---------------------------------------------------------------------------- | |
// monokai light-mode syntax theme for: https://github.com/corbtastik/yolo | |
// ---------------------------------------------------------------------------- | |
$light-syntax-comment-hashbang: #75715e; | |
$light-syntax-comment-multiline: #75715e; | |
$light-syntax-comment-preproc: #75715e; | |
$light-syntax-comment-preprocfile: #75715e; | |
$light-syntax-comment-single: #75715e; | |
$light-syntax-comment-special: #75715e; | |
$light-syntax-comment: #75715e; |
# ----------------------------------------------------------------------------- | |
# corbs-bashrc:v1 | |
# ----------------------------------------------------------------------------- | |
# Source global definitions | |
if [ -f /etc/bashrc ]; then | |
. /etc/bashrc | |
fi | |
# User specific environment |
An experiment running multiple Rootless containers in podman.
Source Code
#!/bin/bash | |
# -------------------------------------------------------------------- | |
# [init] Create run dir, env file if they don't exist, then source env | |
# -------------------------------------------------------------------- | |
init() { | |
MINIO_CONTAINER_NAME=$1 | |
MINIO_RUN_DIR=/data1/run/${MINIO_CONTAINER_NAME} | |
MINIO_DATA=${MINIO_RUN_DIR}/data | |
MINIO_CERTS=${MINIO_RUN_DIR}/certs | |
# create run dir for container instance |
#!/bin/bash | |
writeYo() { | |
X_00=`stat -tc %s .` | |
dd if=/dev/zero of=/tmp/diskyo-${X_00} bs=${X_00} count=100k conv=fdatasync,notrunc status=progress | |
X_02=$(( 2*$X_00 )) | |
dd if=/dev/zero of=/tmp/diskyo-${X_02} bs=${X_02} count=100k conv=fdatasync,notrunc status=progress | |
X_04=$(( 4*$X_00 )) | |
dd if=/dev/zero of=/tmp/diskyo-${X_04} bs=${X_04} count=100k conv=fdatasync,notrunc status=progress | |
X_06=$(( 6*$X_00 )) | |
dd if=/dev/zero of=/tmp/diskyo-${X_06} bs=${X_06} count=100k conv=fdatasync,notrunc status=progress |
Create symlink to where VMware Fusion stores VM images, use this symbolic path instead default spacey path. On my OSX dev machine that folder is $HOME/Virtual\ Machines.localized
.
# symlink path $HOME/vms
ln -s Virtual\ Machines.localized vms