From 8de7650b536387d1b5180cd0901768fc02ceb169 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Sun, 26 May 2024 15:42:26 -0700 Subject: [PATCH] We dont need the starter concept --- README.md | 4 ---- install.sh | 3 --- install/docker.sh | 3 +++ start/containers.sh | 2 -- 4 files changed, 3 insertions(+), 9 deletions(-) delete mode 100644 start/containers.sh diff --git a/README.md b/README.md index b74b99a..96ded64 100644 --- a/README.md +++ b/README.md @@ -12,10 +12,6 @@ Ubuntu has a great pair of package managers in apt and snap, but many of the too Half the battle of getting a great development experience going on Linux lies in the dotfiles that control the configuration. Linux gets great power from how customizable it is, but that also presents a paradox of choice and a tall learning curve. Having good, curated defaults that integrate all the many tools in a coherent feel and look can help more developers acquire a taste for Linux, which they may then later inspire a fully bespoke setup (or not!). -## Starters - -Many developers need to work with multiple versions of services like MySQL or Redis. There's a ton of different ways to solve that problem, but one easy one is use Docker, so that's what Omakub does. Instead of installing these services directly on the operating system, we run them as containers that can easily be swapped or run concurrently in different versions. - ## The Omakase Spirit Nothing in Omakub provides solutions to problems you couldn't also solve a million other ways. The main benefit is in The Omakase Spirit. The idea that an entire setup experience can benefit from being tailored upfront by someone with strong opinions about what works and looks good together. diff --git a/install.sh b/install.sh index b2f5e4e..c4030d1 100644 --- a/install.sh +++ b/install.sh @@ -21,6 +21,3 @@ sudo snap install code --classic # Installers echo -e "\e[32mRUNNING CUSTOM INSTALLERSe[0m" for script in ~/.omakub/install/*.sh; do source $script; done - -# Start services -for script in ~/.omakub/start/*.sh; do source $script; done diff --git a/install/docker.sh b/install/docker.sh index 5c912c5..56b0950 100644 --- a/install/docker.sh +++ b/install/docker.sh @@ -6,3 +6,6 @@ DOCKER_CONFIG=${DOCKER_CONFIG:-$HOME/.docker} mkdir -p $DOCKER_CONFIG/cli-plugins curl -SL https://github.com/docker/compose/releases/download/v$DOCKER_COMPOSE_VERSION/docker-compose-linux-x86_64 -o $DOCKER_CONFIG/cli-plugins/docker-compose chmod +x $DOCKER_CONFIG/cli-plugins/docker-compose + +sudo docker create -d --restart unless-stopped -p 3306:3306 --name=mysql8 -e MYSQL_ROOT_PASSWORD= -e MYSQL_ALLOW_EMPTY_PASSWORD=true mysql:8 +sudo docker create -d --restart unless-stopped -p 6379:6379 --name=redis redis diff --git a/start/containers.sh b/start/containers.sh deleted file mode 100644 index c873e99..0000000 --- a/start/containers.sh +++ /dev/null @@ -1,2 +0,0 @@ -docker create -d --restart unless-stopped -p 3306:3306 --name=mysql8 -e MYSQL_ROOT_PASSWORD= -e MYSQL_ALLOW_EMPTY_PASSWORD=true mysql:8 -docker create -d --restart unless-stopped -p 6379:6379 --name=redis redis